summaryrefslogtreecommitdiff
path: root/news/nntpcache/Makefile
diff options
context:
space:
mode:
authorJohann Visagie <wjv@FreeBSD.org>2001-09-14 09:47:23 +0000
committerJohann Visagie <wjv@FreeBSD.org>2001-09-14 09:47:23 +0000
commit62561c4b0cc569c27f84e32bf2791f1e18c86a2b (patch)
treebb913df5ca513c33a868851f1915cb37333ef856 /news/nntpcache/Makefile
parentUpgrade to 2.6 (diff)
- Update to version 2.4.0b5
- Remove a verifiably bad site from MASTER_SITES. - Remove duplicate entry (DNS entry points to same IP) from MASTER_SITES. - Add new mirror to MASTER_SITES. - Change MAINTAINER to -ports, as the previous maintainer (and author) has expressed a lack of interest in continued maintenance of this port. - Deploy DOCSDIR. - General clean-up and reorganisation of Makefile. - Remove PKGMESSAGE completely, since this port requires no user action which is out of the ordinary (I do not consider editing configuration files to be out of the ordinary), and it contains no information which is not also contained elsewhere in a more standardised location. - Add NO_CDROM, as this software is not free and never has been. - Bring the startup script installed in ${PREFIX}/etc/rc.d up to current standards (I hope). - Install a fully functional startup script in ${PREFIX}/etc/rc.d (as most ports now do), instead of an inactive .sample startup script. - Install HTML documentation. - Deploy %%PORTDOCS%% pragma in pkg-plist. - Make SPOOLDIR a user-tweakable option (default: /var/spool). NNTPCache will cache news articles in ${SPOOLDIR}/nntpcache. - Remove the non-standard "hardlink-pgp-files" target from Makefile. - Comment out the run-time dependency on security/pgp for now. The only NNTPCache functionality which depends on PGP is very optional indeed and furthermore, there is now a plethora of PGPish ports for the user to choose from. (This may need to be tweaked further, since NNTPCache builds without PGP support if PGP is not detected during the configurations stage.) Approved by: Julian Assange <nntpcache@nntpcache.org>, previous maintainer
Diffstat (limited to '')
-rw-r--r--news/nntpcache/Makefile62
1 files changed, 32 insertions, 30 deletions
diff --git a/news/nntpcache/Makefile b/news/nntpcache/Makefile
index 7c265d9006b9..642d058671df 100644
--- a/news/nntpcache/Makefile
+++ b/news/nntpcache/Makefile
@@ -6,46 +6,48 @@
#
PORTNAME= nntpcache
-PORTVERSION= 2.4.0b2
+PORTVERSION= 2.4.0b5
CATEGORIES= news
MASTER_SITES= ftp://nntpcache.org/pub/nntpcache/ \
- ftp://ftp.ntnu.no/pub/unix/news/nntpcache/ \
- ftp://ftp.nethelp.no/pub/unix/news/ \
- ftp://suburbia.net/pub/nntpcache/
+ ftp://ftp.nethelp.no/pub/news/ \
+ ftp://ftp.netsw.org/net/news/proxy/nntpcache/
-MAINTAINER= nntpcache@nntpcache.org
+MAINTAINER= ports@FreeBSD.org
-BUILD_DEPENDS= pgp:${PORTSDIR}/security/pgp
+#BUILD_DEPENDS= pgp:${PORTSDIR}/security/pgp
-GNU_CONFIGURE= TRUE
-CONFIGURE_ARGS= --localstatedir=/var/spool
+# This may be set interactively at install-time. NNTPCache will
+# cache news articles and related data in ${SPOOLDIR}/nntpcache.
+SPOOLDIR?= /var/spool
+
+NO_CDROM= Free for individuals and non-military, non-profit organisations only
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --localstatedir=${SPOOLDIR}
+NNTPSPOOLDIR?= ${SPOOLDIR}/${PORTNAME}
+PLIST_SUB+= SPOOLDIR=${NNTPSPOOLDIR}
+CPIO= cpio --quiet -pdum -R
MAN8= nntpcached.8 newshound.8
-DOCS= AUTHORS ChangeLog FAQ FAQ.html HACKING \
+DOCS= AUTHORS ChangeLog FAQ FAQ.html HACKING HTML \
INSTALL LICENSING NEWS README README.INN VERSION
-USE_GMAKE= TRUE
-
-post-configure:
- @${SED} -e "s:%%PREFIX%%:${PREFIX}:g" \
- ${FILESDIR}/nntpcached.rc > ${WRKSRC}/nntpcached.sh
-
post-install:
+ @ ${MKDIR} ${PREFIX}/etc/rc.d
+ @ ${SED} -e 's#%%PREFIX%%#${PREFIX}#g' ${FILESDIR}/nntpcached.rc \
+ > ${WRKDIR}/nntpcached.sh
+.if !defined(BATCH)
+ @ ${ECHO} "Installing ${PREFIX}/etc/rc.d/nntpcached.sh startup file"
+.endif
+ @ ${INSTALL_SCRIPT} -m 751 ${WRKDIR}/nntpcached.sh \
+ ${PREFIX}/etc/rc.d
+ @ ${MKDIR} ${NNTPSPOOLDIR} && ${CHMOD} 750 ${NNTPSPOOLDIR}
+ @ ${CP} ${PREFIX}/etc/${PORTNAME}/VERSION ${NNTPSPOOLDIR} && \
+ ${CHMOD} 640 ${NNTPSPOOLDIR}/VERSION
+ @ ${CHOWN} -R news:news ${NNTPSPOOLDIR}
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/nntpcache
- for i in ${DOCS}; do \
- ${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/share/doc/nntpcache; \
- done
+ @ ${MKDIR} ${DOCSDIR}
+ @ cd ${WRKSRC} && find ${DOCS} \
+ | ${CPIO} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif
- ${INSTALL_SCRIPT} ${WRKSRC}/nntpcached.sh \
- ${PREFIX}/etc/rc.d/nntpcached.sh.sample
- @${SED} -e 's#/usr/local#${PREFIX}#' ${PKGMESSAGE}
-
-hardlink-pgp-files:
- for i in ${PREFIX}/etc/nntpcache/*asc-dist ${PREFIX}/etc/nntpcache/*pgp-dist ; do \
- j=`${ECHO} $$i | ${SED} -e 's/-dist//'`; \
- if [ \! -f $$j ]; then \
- ${LN} $$i $$j; \
- fi; \
- done
.include <bsd.port.mk>