Merge from vendor branch TNF:
[pkgsrc.git] / news / nntpcache / Makefile
1 # $NetBSD: Makefile,v 1.6 1999/03/10 14:05:40 rh Exp $
2 # FreeBSD Id: Makefile,v 1.11 1998/02/01 03:04:11 itojun Exp
3 #
4
5 DISTNAME=               nntpcache-2.4.0b3
6 CATEGORIES=             news
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/
15
16 MAINTAINER=             packages@netbsd.org
17 HOMEPAGE=               http://www.nntpcache.org/
18
19 LICENSE=                fee-based-commercial-use
20
21 # enable ldap support?
22 NNTP_USE_LDAP=          no
23 # enable pgp signed nocem support?
24 NNTP_USE_PGP=           no
25
26 GNU_CONFIGURE=          yes
27 CONFIGURE_ARGS+=        --localstatedir=/var/spool
28 CONFIGURE_ENV+=         INSTALL_SCRIPT="${INSTALL_SCRIPT}"
29 USE_GMAKE=              yes
30
31 INSTALL_TARGET=         SUBDIRS="cf src filters http doc pgp contrib/newshound innreport scripts unixauth" \
32                         install
33
34 .if ${NNTP_USE_LDAP} == yes
35 DEPENDS+=               openldap-*:../../databases/openldap
36 .endif
37
38 .if ${NNTP_USE_PGP} ==  yes
39 DEPENDS+=               pgp-2.*:../../security/pgp2
40 .endif
41
42 post-configure:
43         @${SED} -e "s:%%PREFIX%%:${PREFIX}:g"  \
44                 ${FILESDIR}/nntpcached.rc > ${WRKSRC}/nntpcached.sh
45
46 post-install:
47         ${INSTALL_SCRIPT} ${WRKSRC}/nntpcached.sh ${PREFIX}/etc/rc.d
48         ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nntpcache
49         cd ${WRKSRC} && ${INSTALL_DATA} README INSTALL FAQ FAQ.html LICENSING \
50                 ${PREFIX}/share/doc/nntpcache/
51
52 .include "../../mk/bsd.pkg.mk"