blob: ff4a05440fcaf8a7dd032328e8a9cee1828917b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# $NetBSD: Makefile,v 1.22 2005/03/24 21:12:59 wiz Exp $
DISTNAME= nntpcache-3.0.1
CATEGORIES= news
MASTER_SITES= ftp://ftp.cs.tu-berlin.de/pub/net/news/nntpcache/ \
ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/news/nntpcache/
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.iq.org/~proff/nntpcache.org/
COMMENT= NNTP multi-server caching daemon
LICENSE= fee-based-commercial-use
# enable pgp signed nocem support?
NNTP_USE_PGP?= no
.if defined(USE_OPENLDAP) && !empty(USE_OPENLDAP:M[Yy][Ee][Ss])
DEPENDS+= openldap-[0-9]*:../../databases/openldap
.endif
.if ${NNTP_USE_PGP} == yes
DEPENDS+= pgp-2.*:../../security/pgp2
.endif
BUILD_DEFS+= USE_OPENLDAP NNTP_USE_PGP
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --localstatedir=${VARBASE}/spool
CONFIGURE_ENV+= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
USE_GNU_TOOLS+= make
INSTALL_TARGET= SUBDIRS="cf src filters http doc pgp contrib/newshound contrib/perlnewshound innreport scripts unixauth" \
install
post-configure:
@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" \
${FILESDIR}/nntpcached.rc > ${WRKSRC}/nntpcached.sh
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/nntpcached.sh ${PREFIX}/etc/rc.d/nntpcached
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nntpcache
cd ${WRKSRC} && ${INSTALL_DATA} README INSTALL FAQ FAQ.html LICENSING \
README.INN README.pam ChangeLog ${PREFIX}/share/doc/nntpcache/
.include "../../mk/bsd.pkg.mk"
|