1997-01-06 15:28:33 +00:00
|
|
|
# New ports collection makefile for: nntpcache
|
|
|
|
# Date created: 6 January 1997
|
|
|
|
# Whom: proff@suburbia.net
|
|
|
|
#
|
1999-08-30 14:33:04 +00:00
|
|
|
# $FreeBSD$
|
1997-01-06 15:28:33 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 17:33:32 +00:00
|
|
|
PORTNAME= nntpcache
|
2002-07-25 18:52:48 +00:00
|
|
|
PORTVERSION= 3.0.1
|
2004-02-04 05:10:27 +00:00
|
|
|
PORTREVISION= 1
|
1997-01-07 06:46:50 +00:00
|
|
|
CATEGORIES= news
|
2004-04-06 08:16:55 +00:00
|
|
|
MASTER_SITES= ftp://ftp.cs.tu-berlin.de/pub/net/news/nntpcache/ \
|
2003-02-12 01:32:53 +00:00
|
|
|
ftp://ftp.sbs.de/pub/news/servers/nntpcache/ \
|
|
|
|
ftp://ftp.ntua.gr/pub/net/news/nntpcache/ \
|
2004-04-07 15:00:57 +00:00
|
|
|
ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/news/nntpcache/ \
|
|
|
|
http://public.www.planetmirror.com/pub/nntpcache/
|
1997-01-06 15:28:33 +00:00
|
|
|
|
2001-09-14 09:47:23 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= News caching/anti-spam/server-merging system
|
1997-01-06 15:28:33 +00:00
|
|
|
|
2004-06-04 17:29:38 +00:00
|
|
|
WANT_AUTOMAKE_VER=15
|
2004-04-06 08:16:55 +00:00
|
|
|
|
|
|
|
.if defined(WITH_LDAP) || defined(WITH_LDAP2)
|
|
|
|
USE_OPENLDAP= yes
|
2002-03-30 10:14:36 +00:00
|
|
|
.endif
|
|
|
|
|
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_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --localstatedir=${SPOOLDIR}
|
2002-03-30 10:14:36 +00:00
|
|
|
|
2002-07-25 18:52:48 +00:00
|
|
|
AUTHINFO_EXT= authinfo_pam.ext
|
2002-03-30 10:14:36 +00:00
|
|
|
.if !defined(WITHOUT_RADIUS)
|
2002-07-25 18:52:48 +00:00
|
|
|
CONFIGURE_ARGS+= --with-authinfo-radius
|
|
|
|
AUTHINFO_EXT+= authinfo_radius.ext
|
2002-03-30 10:14:36 +00:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_LDAP) || defined(WITH_LDAP2)
|
2002-07-25 18:52:48 +00:00
|
|
|
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}"
|
2002-03-30 10:14:36 +00:00
|
|
|
.endif
|
2002-07-25 18:52:48 +00:00
|
|
|
CONFIGURE_ARGS+= --program-transform-name=''
|
2002-03-30 10:14:36 +00:00
|
|
|
|
2001-09-14 09:47:23 +00:00
|
|
|
NNTPSPOOLDIR?= ${SPOOLDIR}/${PORTNAME}
|
|
|
|
PLIST_SUB+= SPOOLDIR=${NNTPSPOOLDIR}
|
|
|
|
CPIO= cpio --quiet -pdum -R
|
1998-01-29 04:04:34 +00:00
|
|
|
MAN8= nntpcached.8 newshound.8
|
2001-09-14 09:47:23 +00:00
|
|
|
DOCS= AUTHORS ChangeLog FAQ FAQ.html HACKING HTML \
|
1998-01-29 04:04:34 +00:00
|
|
|
INSTALL LICENSING NEWS README README.INN VERSION
|
1998-01-25 16:52:56 +00:00
|
|
|
|
2003-09-27 01:01:08 +00:00
|
|
|
pre-everything::
|
2002-03-30 10:14:36 +00:00
|
|
|
.if !defined(BATCH)
|
2003-09-27 01:01:08 +00:00
|
|
|
@${ECHO_MSG} "To enable LDAP support use either:"
|
2004-04-06 08:16:55 +00:00
|
|
|
@${ECHO_MSG} " WITH_LDAP - OpenLDAP support"
|
2003-09-27 01:01:08 +00:00
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "To disable radius support use WITHOUT_RADIUS"
|
2002-03-30 10:14:36 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@cd ${WRKSRC}/src && ${GMAKE} ${AUTHINFO_EXT}
|
|
|
|
|
1997-02-17 01:48:09 +00:00
|
|
|
post-install:
|
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)
|
2003-09-27 01:01:08 +00:00
|
|
|
@ ${ECHO_MSG} "Installing ${PREFIX}/etc/rc.d/nntpcached.sh startup file"
|
2001-09-14 09:47:23 +00:00
|
|
|
.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}
|
1998-01-29 04:04:34 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-09-14 09:47:23 +00:00
|
|
|
@ ${MKDIR} ${DOCSDIR}
|
2002-09-29 08:07:47 +00:00
|
|
|
@ cd ${WRKSRC} && ${FIND} ${DOCS} \
|
2001-09-14 09:47:23 +00:00
|
|
|
| ${CPIO} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
1998-01-29 04:04:34 +00:00
|
|
|
.endif
|
1998-02-01 03:04:12 +00:00
|
|
|
|
1997-01-06 15:28:33 +00:00
|
|
|
.include <bsd.port.mk>
|