1 # $NetBSD: Makefile,v 1.7 2000/02/20 06:53:59 proff Exp $
2 # FreeBSD Id: Makefile,v 1.11 1998/02/01 03:04:11 itojun Exp
5 DISTNAME= nntpcache-2.4.0b5
7 MASTER_SITES= ftp://ftp.nntpcache.org/pub/nntpcache/ \
8 ftp://ftp.fu-berlin.de/unix/news/nntpcache/ \
9 ftp://ftp.contrib.com/pub/software/unix/news/nntpcache/ \
10 ftp://ftp.eu.net/news/transport/nntpcache/ \
11 ftp://ftp.belgium.eu.net/pub/news/transport/nntpcache/ \
12 ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/news/nntpcache/ \
13 ftp://ftp.faho.rwth-aachen.de/pub/linux/nntpcache/ \
14 ftp://ftp.hway.ru/pub/news/nntpcache/
16 MAINTAINER= packages@netbsd.org
17 HOMEPAGE= http://www.nntpcache.org/
19 LICENSE= fee-based-commercial-use
21 # enable ldap support?
23 # enable pgp signed nocem support?
26 .if ${NNTP_USE_LDAP} == yes
27 DEPENDS+= openldap-*:../../databases/openldap
30 .if ${NNTP_USE_PGP} == yes
31 DEPENDS+= pgp-2.*:../../security/pgp2
34 BUILD_DEFS+= NNTP_USE_LDAP NNTP_USE_PGP
37 CONFIGURE_ARGS+= --localstatedir=/var/spool
38 CONFIGURE_ENV+= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
41 INSTALL_TARGET= SUBDIRS="cf src filters http doc pgp contrib/newshound innreport scripts unixauth" \
45 @${SED} -e "s:%%PREFIX%%:${PREFIX}:g" \
46 ${FILESDIR}/nntpcached.rc > ${WRKSRC}/nntpcached.sh
49 ${INSTALL_SCRIPT} ${WRKSRC}/nntpcached.sh ${PREFIX}/etc/rc.d
50 ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nntpcache
51 cd ${WRKSRC} && ${INSTALL_DATA} README INSTALL FAQ FAQ.html LICENSING \
52 ${PREFIX}/share/doc/nntpcache/
54 .include "../../mk/bsd.pkg.mk"