1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/news/nntpcache/Makefile

94 lines
2.9 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: nntpcache
# Date created: 6 January 1997
# Whom: proff@suburbia.net
#
1999-08-30 14:33:04 +00:00
# $FreeBSD$
#
PORTNAME= nntpcache
PORTVERSION= 3.0.1
CATEGORIES= news
MASTER_SITES= ftp://ftp.nntpcache.org/pub/nntpcache/ \
ftp://ftp.cs.tu-berlin.de/pub/net/news/nntpcache/ \
ftp://ftp.sbs.de/pub/news/servers/nntpcache/ \
ftp://ftp.ntua.gr/pub/net/news/nntpcache/ \
ftp://ftp.task.gda.pl/mirror/ftp.nntpcache.org/pub/nntpcache/ \
ftp://ftp.eos.hokudai.ac.jp/pub/network/news/nntpcache/ \
ftp://ftp.ayamura.org/pub/misc/
- 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
2001-09-14 09:47:23 +00:00
MAINTAINER= ports@FreeBSD.org
BUILD_DEPENDS= automake:${PORTSDIR}/devel/automake
.if defined(WITH_LDAP) && !defined(WITH_LDAP2)
LIB_DEPENDS+= ldap.1:${PORTSDIR}/net/openldap
LIB_DEPENDS+= lber.1:${PORTSDIR}/net/openldap
.endif
.if defined(WITH_LDAP2)
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap2
LIB_DEPENDS+= lber.2:${PORTSDIR}/net/openldap2
.endif
- 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
2001-09-14 09:47:23 +00:00
# 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_REINPLACE= yes
- 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
2001-09-14 09:47:23 +00:00
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=${SPOOLDIR}
AUTHINFO_EXT= authinfo_pam.ext
.if !defined(WITHOUT_RADIUS)
CONFIGURE_ARGS+= --with-authinfo-radius
AUTHINFO_EXT+= authinfo_radius.ext
.endif
.if defined(WITH_LDAP) || defined(WITH_LDAP2)
CONFIGURE_ARGS+= --with-authinfo-ldap
CPPFLAGS+= -I${PREFIX}/include -I${LOCALBASE}/include
LDFLAGS+= -L${PREFIX}/lib -L${LOCALBASE}/lib
AUTHINFO_EXT+= authinfo_ldap.ext
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
.endif
CONFIGURE_ARGS+= --program-transform-name=''
- 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
2001-09-14 09:47:23 +00:00
NNTPSPOOLDIR?= ${SPOOLDIR}/${PORTNAME}
PLIST_SUB+= SPOOLDIR=${NNTPSPOOLDIR}
CPIO= cpio --quiet -pdum -R
MAN8= nntpcached.8 newshound.8
- 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
2001-09-14 09:47:23 +00:00
DOCS= AUTHORS ChangeLog FAQ FAQ.html HACKING HTML \
INSTALL LICENSING NEWS README README.INN VERSION
.if !defined(BATCH)
post-fetch:
@${ECHO} "To enable LDAP support use either:"
@${ECHO} " WITH_LDAP - LDAP v1 support"
@${ECHO} " WITH_LDAP2 - LDAP v2 support"
@${ECHO}
@${ECHO} "To disable radius support use WITHOUT_RADIUS"
.endif
post-configure:
@cd ${WRKSRC}/src && ${GMAKE} ${AUTHINFO_EXT}
post-install:
- 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
2001-09-14 09:47:23 +00:00
@ ${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)
- 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
2001-09-14 09:47:23 +00:00
@ ${MKDIR} ${DOCSDIR}
@ cd ${WRKSRC} && ${FIND} ${DOCS} \
- 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
2001-09-14 09:47:23 +00:00
| ${CPIO} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif
.include <bsd.port.mk>