Index: head/news/suck/Makefile =================================================================== --- head/news/suck/Makefile (revision 489498) +++ head/news/suck/Makefile (revision 489499) @@ -1,89 +1,89 @@ # Created by: Noritaka Ishizumi # $FreeBSD$ PORTNAME= suck -PORTVERSION= 4.3.2 -PORTREVISION= 5 -CATEGORIES= news -#MASTER_SITES= http://www.sucknews.org/ -MASTER_SITES= http://home.comcast.net/~bobyetman/ \ - LOCAL/dinoex +PORTVERSION= 4.3.4 +CATEGORIES= news ipv6 PKGNAMESUFFIX?= ${CNEWS_SUFFIX}${PKGNAMESUFFIX2} MAINTAINER= dinoex@FreeBSD.org COMMENT= Receives/sends news to/from localhost via NNTP +LICENSE= PD + CONFLICTS?= suckblow-1.* -USES= gmake shebangfix +USES= autoreconf gmake shebangfix SHEBANG_FILES= sample/post_filter.pl GNU_CONFIGURE= yes MAKE_ENV= CHKHISTORY=chkhistory_db.o +USE_GITHUB= yes +GH_ACCOUNT= lazarus-pkgs EX_SCRIPTS= get.news.generic get.news.inn perl_kill.pl perl_xover.pl \ post_filter.pl put.news put.news.pl put.news.sm put.news.sm.pl EX_DATA= suckkillfile.sample sucknewsrc.sample suckothermsgs.sample OPTIONS_DEFINE= SSL EXAMPLES OPTIONS_SINGLE= NEWS OPTIONS_SINGLE_NEWS= INN CNEWS OPTIONS_DEFAULT?= SSL INN INN_DESC= Build for local inn news server CNEWS_DESC= Build for local cnews news server VARBASE?= /var NEWSBIN?= ${LOCALBASE}/libexec/cnews NEWSCTL?= ${VARBASE}/lib/news .include .if ${PORT_OPTIONS:MCNEWS} CNEWS_PORT?= news/cnews CNEWS_SUFFIX= -cnews MAKE_ENV+= DB_TYPE=-DUSE_DBZ DB_LIB=-lcnews MAKE_ENV+= DB_LIB_LOC=-L${LOCALBASE}/lib MAKE_ENV+= INCDIR2=-I${LOCALBASE}/include BUILD_DEPENDS+= ${LOCALBASE}/lib/libcnews.a:${CNEWS_PORT} CONFLICTS+= suck-4.* .endif .if ${PORT_OPTIONS:MINN} CFLAGS+= -DNO_CONFIGDATA -I${LOCALBASE}/include/inn MAKE_ENV+= DB_TYPE="-DUSE_INN23 -DDO_TAGGED_HASH" MAKE_ENV+= DB_LIB="-linn -lstorage -linnhist" MAKE_ENV+= DB_LIB_LOC=-L${LOCALBASE}/news/lib MAKE_ENV+= DB_INC_LOC="-I${LOCALBASE}/news/include -I${LOCALBASE}/news/include/inn" MAKE_ENV+= INCDIR2=-I${LOCALBASE}/include BUILD_DEPENDS+= ${LOCALBASE}/news/lib/libinn.a:news/inn CONFLICTS+= suck-cnews-4.* .endif .if ${PORT_OPTIONS:MSSL} USES+= ssl MAKE_ENV+= SSL_LIB="-lssl -lcrypto" MAKE_ENV+= SSL_DEFS="-I${OPENSSLINC} -DHAVE_LIBSSL" MAKE_ENV+= SSL_LIB_LOC="-L${OPENSSLLIB}" .endif pre-configure: .if ${PORT_OPTIONS:MCNEWS} ${REINPLACE_CMD} -e "s=/usr/news/db=${NEWSCTL}=" \ -e "s=/usr/lib/news/rnews=${NEWSBIN}/rnews=" \ -e "s=/usr/local/lib/suck=${PREFIX}/lib/suck=" \ ${WRKSRC}/suck_config.h .endif .if ${PORT_OPTIONS:MINN} ${REINPLACE_CMD} -e "s=/usr/news/db=${LOCALBASE}/news/lib=" \ -e "s=/usr/lib/news/rnews=${LOCALBASE}/libexec/news/bin/rnews=" \ -e "s=/usr/local/lib/suck=${PREFIX}/lib/suck=" \ ${WRKSRC}/suck_config.h .endif .if ${PORT_OPTIONS:MEXAMPLES} post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_SCRIPT} ${EX_SCRIPTS:S=^=${WRKSRC}/sample/=} ${STAGEDIR}${EXAMPLESDIR}/ ${INSTALL_DATA} ${EX_DATA:S=^=${WRKSRC}/sample/=} ${STAGEDIR}${EXAMPLESDIR}/ .endif .include Index: head/news/suck/distinfo =================================================================== --- head/news/suck/distinfo (revision 489498) +++ head/news/suck/distinfo (revision 489499) @@ -1,2 +1,3 @@ -SHA256 (suck-4.3.2.tar.gz) = c98dd04d1fe6914867fa509821243d5e63d1159a238f38f6c01e19e266b51788 -SIZE (suck-4.3.2.tar.gz) = 187560 +TIMESTAMP = 1546372949 +SHA256 (lazarus-pkgs-suck-4.3.4_GH0.tar.gz) = 26ce11b00fb2c5bbd71391eac237e217ffce058b75e942d38c2d6670be637c93 +SIZE (lazarus-pkgs-suck-4.3.4_GH0.tar.gz) = 153774 Index: head/news/suck/files/patch-Makefile.in =================================================================== --- head/news/suck/files/patch-Makefile.in (revision 489498) +++ head/news/suck/files/patch-Makefile.in (revision 489499) @@ -1,98 +1,69 @@ ---- Makefile.in.orig 2003-03-28 20:22:38.000000000 +0100 -+++ Makefile.in 2013-12-19 08:04:14.000000000 +0100 -@@ -6,7 +6,7 @@ +--- Makefile.in.orig 2018-08-01 13:54:24 UTC ++++ Makefile.in +@@ -6,7 +6,7 @@ SHELL=/bin/sh ############################################################################ # Step 1: Define ONE of the CHKHISTORY -CHKHISTORY=@HISTORY@ +#CHKHISTORY=@HISTORY@ #CHKHISTORY=chkhistory.o # use flat file history routine #CHKHISTORY=chkhistory_db.o # use DB history routine, if you use # DBM, GDBM, NDBM, or DBZ -@@ -17,7 +17,7 @@ +@@ -17,7 +17,7 @@ CHKHISTORY=@HISTORY@ # If you are using flat file, you can skip the rest, they don't matter # Step 2: Define ONE of the Database Types -DB_TYPE=@DB_TYPE@ +#DB_TYPE=@DB_TYPE@ #DB_TYPE=-DUSE_DBM #DB_TYPE=-DUSE_GDBM #DB_TYPE=-DUSE_NDBM -@@ -29,18 +29,20 @@ +@@ -29,18 +29,20 @@ DB_TYPE=@DB_TYPE@ # If you are using INN-2.X, and the compiler complains # about Undefined Symbols QIOclose QIOopen QIOread # Use the DB_LIB that includes -lstorage -DB_LIB=@DB_LIB@ +#DB_LIB=@DB_LIB@ #DB_LIB=-ldbm #DB_LIB=-lgdbm #DB_LIB=-lndbm #DB_LIB=-ldbz #DB_LIB=-linn -lstorage # see note above #DB_LIB=-linn # INN puts DBZ code in here +#DB_LIB=-lcnews # cnews puts DBZ code in here # Step 4: IF your DB Library/Includes are in a non-standard place, # define These #DB_INC_LOC=-I/usr/src/inn-2.3.4/include #DB_LIB_LOC=-L/usr/src/inn-2.3.4/lib +#DB_LIB_LOC=-L/usr/local/lib # Step 5: If you want to use embedded PERL functions as kill routines # define these. -@@ -67,8 +69,8 @@ +@@ -67,8 +69,8 @@ PERL_DEFS=-D_REENTRANT -D_GNU_SOURCE #OS2_DEFS=-DEMX # Step 7: If compiling with SSL uncomment the following -SSL_LIB=@SSL_LIB@ -SSL_DEFS=@SSL_DEFS@ +#SSL_LIB=@SSL_LIB@ +#SSL_DEFS=@SSL_DEFS@ #SSL_LIB=-lssl -lcrypto #SSL_DEFS=-I/usr/local/ssl/include -DHAVE_LIBSSL #SSL_LIB_LOC=-L/usr/local/ssl/lib -@@ -110,16 +112,16 @@ +@@ -110,7 +112,7 @@ CC = @CC@ @SET_MAKE@ CFLAGS = @CFLAGS@ -CPPFLAGS = -I. -I$(srcdir) @CPPFLAGS@ +CPPFLAGS = -I. -I$(srcdir) $(INCDIR2) @CPPFLAGS@ LDFLAGS = @LDFLAGS@ $(DMALLOC_LD) $(OS2_LD) DEFS = @DEFS@ -DSUCK_VERSION=\"$(VERSION)\" $(DMALLOC_DEFS) $(OS2_DEFS) $(DMALLOC_INC) LIBS = @LIBS@ $(DMALLOC_LIB) - - prefix = @prefix@ - exec_prefix = @exec_prefix@ --bindir = @bindir@ -+bindir = ${DESTDIR}@bindir@ - manext = 1 --mandir = @mandir@/man$(manext) -+mandir = ${DESTDIR}@mandir@/man$(manext) - srcdir = @srcdir@ - MAN = $(srcdir)/man - SMAN= $(srcdir)/Spanish.docs -@@ -177,7 +179,7 @@ - - install_bin: suck rpost testhost lmove - - mkdir -p $(bindir) -- - strip -s suck rpost testhost lmove -+ - strip -x suck rpost testhost lmove - $(INSTALL_PROGRAM) suck $(bindir)/suck - $(INSTALL_PROGRAM) rpost $(bindir)/rpost - $(INSTALL_PROGRAM) testhost $(bindir)/testhost -@@ -195,7 +197,7 @@ - # $(MAKE) -C $(SMAN) - - install_lpost: lpost $(MAN)/lpost.1 -- - strip -s lpost -+ - strip -x lpost - $(INSTALL_PROGRAM) lpost $(bindir)/lpost - $(INSTALL_DATA) $(MAN)/lpost.1 $(mandir)/lpost.$(manext) - -@@ -295,3 +297,6 @@ +@@ -293,3 +295,6 @@ makerpm: maketar rm -rf /tmp/suck* # now generate the .sig files #pgps -b ~/suck*.rpm ~/suck*.tar.gz + +# Add missing dependency to allow parallel (-jX) builds +active.o batch.o both.o chkhistory.o chkhistory_db.o db.o dedupe.o killfile.o killprg.o lmove.o rpost.o suck.o suckutils.o testhost.o timer.o xover.o: phrases.h Index: head/news/suck/files/patch-killfile.c =================================================================== --- head/news/suck/files/patch-killfile.c (revision 489498) +++ head/news/suck/files/patch-killfile.c (revision 489499) @@ -1,10 +1,10 @@ ---- killfile.c.orig Tue Aug 28 01:55:03 2001 -+++ killfile.c Sun Oct 14 20:03:03 2001 -@@ -55,7 +55,6 @@ +--- killfile.c.orig 2018-08-01 13:54:24 UTC ++++ killfile.c +@@ -55,7 +55,6 @@ int check_a_group(PMaster, POneKill, cha void print_debug(PKillStruct, const char *); void debug_one_kill(POneKill); void add_to_linkedlist(pmy_regex *, pmy_regex); -const char *strnstr(const char *, const char *); pmy_regex regex_scan(char *, char, int, int, char); int regex_check(char *, pmy_regex, int); Index: head/news/suck/files/patch-lmove.c =================================================================== --- head/news/suck/files/patch-lmove.c (revision 489498) +++ head/news/suck/files/patch-lmove.c (revision 489499) @@ -1,10 +1,10 @@ ---- lmove.c.orig Fri May 23 08:16:38 1997 -+++ lmove.c Mon Aug 25 16:43:04 1997 -@@ -27,6 +27,7 @@ +--- lmove.c.orig 2018-08-01 13:54:24 UTC ++++ lmove.c +@@ -28,6 +28,7 @@ #include #include #include +#include - #include "suck_config.h" - #include "both.h" + #ifdef DMALLOC + #include Index: head/news/suck/pkg-descr =================================================================== --- head/news/suck/pkg-descr (revision 489498) +++ head/news/suck/pkg-descr (revision 489499) @@ -1,8 +1,10 @@ suck feeds news to local INN or CNEWS server without the remote NNTP feeding. This is useful, if you get news from NNTP server with dialup connection. Suck is a program used to grab news from a remote NNTP news server and bring it to your local machine, without the remote server doing anything special. If you have read permission on the server, you can use suck. Suck does NOT use the NEWNEWS command, hated by many administrators. + +WWW: https://github.com/lazarus-pkgs/suck