diff --git a/news/suck/Makefile b/news/suck/Makefile index 96a549292e44..a7ddb5f3c37b 100644 --- a/news/suck/Makefile +++ b/news/suck/Makefile @@ -1,87 +1,88 @@ PORTNAME= suck PORTVERSION= 4.3.4 CATEGORIES= news PKGNAMESUFFIX?= ${CNEWS_SUFFIX}${PKGNAMESUFFIX2} MAINTAINER= dinoex@FreeBSD.org COMMENT= Receives/sends news to/from localhost via NNTP WWW= https://github.com/lazarus-pkgs/suck LICENSE= PD CONFLICTS?= suckblow-1.* USES= autoreconf gmake shebangfix SHEBANG_FILES= sample/post_filter.pl GNU_CONFIGURE= yes +GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share 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 -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 diff --git a/news/suck/pkg-plist b/news/suck/pkg-plist index 6ba03b797ee6..0bc3465abf7e 100644 --- a/news/suck/pkg-plist +++ b/news/suck/pkg-plist @@ -1,20 +1,20 @@ bin/lmove bin/rpost bin/suck bin/testhost -man/man1/suck.1.gz -man/man1/rpost.1.gz -man/man1/testhost.1.gz -man/man1/lmove.1.gz %%PORTEXAMPLES%%%%EXAMPLESDIR%%/get.news.generic %%PORTEXAMPLES%%%%EXAMPLESDIR%%/get.news.inn %%PORTEXAMPLES%%%%EXAMPLESDIR%%/perl_kill.pl %%PORTEXAMPLES%%%%EXAMPLESDIR%%/perl_xover.pl %%PORTEXAMPLES%%%%EXAMPLESDIR%%/post_filter.pl %%PORTEXAMPLES%%%%EXAMPLESDIR%%/put.news %%PORTEXAMPLES%%%%EXAMPLESDIR%%/put.news.pl %%PORTEXAMPLES%%%%EXAMPLESDIR%%/put.news.sm %%PORTEXAMPLES%%%%EXAMPLESDIR%%/put.news.sm.pl %%PORTEXAMPLES%%%%EXAMPLESDIR%%/suckkillfile.sample %%PORTEXAMPLES%%%%EXAMPLESDIR%%/sucknewsrc.sample %%PORTEXAMPLES%%%%EXAMPLESDIR%%/suckothermsgs.sample +share/man/man1/suck.1.gz +share/man/man1/rpost.1.gz +share/man/man1/testhost.1.gz +share/man/man1/lmove.1.gz