🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Marc Shewring Sat, 10 Feb 1996 00:00
Automating news pickup...
#4817
Author: Marc Shewring
Date: Sat, 10 Feb 1996 00:00
14 lines
966 bytes
Greetings All,

I am trying to set up an automated news article pick-up using INN, 
SOlaris 2.5 etc.

At the moment I am using suck which does not compile very well under gcc 
and 2.5 (Anyone have a version that does?)..

I would be interested in cron files, bits and pieces and anyones 
informed ideas on wheteher there is a better way?

Regards Marc

Re: Automating news pickup...
#4825
Author: Carlos Castro
Date: Sun, 11 Feb 1996 00:00
107 lines
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


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads