Article View: news.software.nntp
Article #4825Re: Automating news pickup...
From: Carlos Castro
Date: Sun, 11 Feb 1996 00:00
Date: Sun, 11 Feb 1996 00:00
107 lines
3349 bytes
3349 bytes
In article <311C5337.1CA7@p085.aone.net.au>, Marc Shewring <Marc.Shewring@p085.aone.net.au> writes:
Bv> Greetings All,
Bv>
Bv> I am trying to set up an automated news article pick-up using INN,
Bv> SOlaris 2.5 etc.
Bv>
Bv> At the moment I am using suck which does not compile very well under gcc
Bv> and 2.5 (Anyone have a version that does?)..
Bv>
Bv> I would be interested in cron files, bits and pieces and anyones
Bv> informed ideas on wheteher there is a better way?
Bv>
Bv> Regards Marc
I have made some mods to the makefile for suck2.5 and it seems to
compile nicely.....
'SHELL = /bin/sh
.SUFFIXES:
.SUFFIXES: .c .o
INSTALLDIR = /opt/src/suck-2.5 # change this to the location for the executables
MANDIR=/usr/man/man1 # change this to the location for the man pages
#XXGDB=1 # uncomment this to get it ready for use by xxgdb or gdb
ifdef XXGDB
CFLAGS=-g
LDFLAGS=-g
else
CFLAGS=-O2
LDFLAGS=-s
endif
CC=gcc
LINK = $(CC)
LIBS = -lm -lw -lresolv -lsocket -lnsl -liberty
OPTS = $(CFLAGS) $(GCC_FLAGS)
INSTALL = install
VERSION=2.5
TARGETS = suck rpost testhost
MANPGS = suck.1 rpost.1 testhost.1
LPOST_TARGET = lpost
LPOST_MANPGS = lpost.1
GCC_FLAGS = -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wtraditional -Wshadow\
-Waggregate-return -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes
# -Wconversion
all: $(TARGETS)
@echo make done.
suck: suck.o both.o killfile.o timer.o chkhistory.o
$(LINK) suck.o both.o killfile.o timer.o chkhistory.o $(LIBS) $(LDFLAGS) -o $@
lpost: lpost.o
$(LINK) lpost.o $(LIBS) $(LDFLAGS) -o $@
rpost: rpost.o both.o
$(LINK) rpost.o both.o $(LIBS) $(LDFLAGS) -o $@
testhost: testhost.o both.o
$(LINK) testhost.o both.o $(LIBS) $(LDFLAGS) -o $@
install: $(TARGETS) installman
mkdir -p $(INSTALLDIR)
$(INSTALL) -m 755 $(TARGETS) $(INSTALLDIR)
installman: $(MANPGS)
$(INSTALL) -m 644 $(MANPGS) $(MANDIR)
installall: install lpost
$(INSTALL) -m 755 $(LPOST_TARGET) $(INSTALLDIR)
$(INSTALL) -m 644 $(LPOST_MAGPGS) $(MANDIR)
clean:
rm -f *.o *[~%] core
cleanrun:
rm -rf Msgs
rm -f suck.newrc suck.index suck.sorted suck.restart suck.lock suck.killlog debug.*
distclean: clean cleanrun
rm -f suck rpost lpost testhost sucknewsrc suckkillfile suckothermsgs batch
maketar: distclean
tar -czv -f ../suck-${VERSION}.tar.gz -C .. suck-${VERSION}
# One of these days I have to get this to work without any error msgs
#depend:
# makedepend $(SRC)
.c.o: config.h Makefile
$(CC) $(OPTS) -c $<
--
-----
The early bird who catches the worm works for someone who comes in late
and owns the worm farm.
-- Travis McGee
----------------------| News Administrator internetMCI
J. Carlos Castro | carlos@mci.net
Technical Details
Message-ID:
<4fk6v3$kgh@news.internetmci.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<311C5337.1CA7@p085.aone.net.au>Show Full Headers
Complete Article Headers
Message-ID: <4fk6v3$kgh@news.internetmci.com> Subject: Re: Automating news pickup... Date: Sun, 11 Feb 1996 00:00:00 +0000 From: carlos@mci.net (Carlos Castro) References: <311C5337.1CA7@p085.aone.net.au> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 138889735 Organization: InternetMCI Server Operations Newsgroups: news.software.nntp