Merge from vendor branch TNF:
[pkgsrc.git] / news / nntpcache / Makefile
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
3 #
4
5 DISTNAME=               nntpcache-2.4.0b5
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 .if ${NNTP_USE_LDAP} == yes
27 DEPENDS+=               openldap-*:../../databases/openldap
28 .endif
29
30 .if ${NNTP_USE_PGP} ==  yes
31 DEPENDS+=               pgp-2.*:../../security/pgp2
32 .endif
33
34 BUILD_DEFS+=    NNTP_USE_LDAP NNTP_USE_PGP
35
36 GNU_CONFIGURE=          yes
37 CONFIGURE_ARGS+=        --localstatedir=/var/spool
38 CONFIGURE_ENV+=         INSTALL_SCRIPT="${INSTALL_SCRIPT}"
39 USE_GMAKE=              yes
40
41 INSTALL_TARGET=         SUBDIRS="cf src filters http doc pgp contrib/newshound innreport scripts unixauth" \
42                         install
43
44 post-configure:
45         @${SED} -e "s:%%PREFIX%%:${PREFIX}:g"  \
46                 ${FILESDIR}/nntpcached.rc > ${WRKSRC}/nntpcached.sh
47
48 post-install:
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/
53
54 .include "../../mk/bsd.pkg.mk"