summaryrefslogtreecommitdiff
path: root/news/nntpcache/Makefile
blob: d49f96c6b879d8a307527761e0e9535206afe406 (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
# $NetBSD: Makefile,v 1.2 1998/06/22 13:00:14 agc Exp $
# FreeBSD Id: Makefile,v 1.6 1997/07/31 06:36:03 asami Exp
#

DISTNAME=		nntpcache-1.0.7.1
CATEGORIES=		news
MASTER_SITES=		ftp://nntpcache.org/pub/nntpcache/ \
			ftp://ftp.ntnu.no/pub/unix/news/ \
			ftp://ftp.nethelp.no/pub/unix/news/ \
			ftp://suburbia.net/pub/nntpcache/

MAINTAINER=		packages@netbsd.org

GNU_CONFIGURE=		YES
CONFIGURE_ARGS+=	--localstatedir=/var/spool

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
	@-${RM} ${PREFIX}/etc/nntpcache/*.bak
.for file in config access servers spam.filter
	@${CP} ${PREFIX}/etc/nntpcache/${file} ${PREFIX}/etc/nntpcache/${file}.default
.endfor

.include "../../mk/bsd.pkg.mk"