blob: 642d058671dfb53caf8b995bbdb1b3cc14dabdf5 (
plain) (
blame)
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
46
47
48
49
50
51
52
53
|
# New ports collection makefile for: nntpcache
# Date created: 6 January 1997
# Whom: proff@suburbia.net
#
# $FreeBSD$
#
PORTNAME= nntpcache
PORTVERSION= 2.4.0b5
CATEGORIES= news
MASTER_SITES= ftp://nntpcache.org/pub/nntpcache/ \
ftp://ftp.nethelp.no/pub/news/ \
ftp://ftp.netsw.org/net/news/proxy/nntpcache/
MAINTAINER= ports@FreeBSD.org
#BUILD_DEPENDS= pgp:${PORTSDIR}/security/pgp
# This may be set interactively at install-time. NNTPCache will
# cache news articles and related data in ${SPOOLDIR}/nntpcache.
SPOOLDIR?= /var/spool
NO_CDROM= Free for individuals and non-military, non-profit organisations only
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=${SPOOLDIR}
NNTPSPOOLDIR?= ${SPOOLDIR}/${PORTNAME}
PLIST_SUB+= SPOOLDIR=${NNTPSPOOLDIR}
CPIO= cpio --quiet -pdum -R
MAN8= nntpcached.8 newshound.8
DOCS= AUTHORS ChangeLog FAQ FAQ.html HACKING HTML \
INSTALL LICENSING NEWS README README.INN VERSION
post-install:
@ ${MKDIR} ${PREFIX}/etc/rc.d
@ ${SED} -e 's#%%PREFIX%%#${PREFIX}#g' ${FILESDIR}/nntpcached.rc \
> ${WRKDIR}/nntpcached.sh
.if !defined(BATCH)
@ ${ECHO} "Installing ${PREFIX}/etc/rc.d/nntpcached.sh startup file"
.endif
@ ${INSTALL_SCRIPT} -m 751 ${WRKDIR}/nntpcached.sh \
${PREFIX}/etc/rc.d
@ ${MKDIR} ${NNTPSPOOLDIR} && ${CHMOD} 750 ${NNTPSPOOLDIR}
@ ${CP} ${PREFIX}/etc/${PORTNAME}/VERSION ${NNTPSPOOLDIR} && \
${CHMOD} 640 ${NNTPSPOOLDIR}/VERSION
@ ${CHOWN} -R news:news ${NNTPSPOOLDIR}
.if !defined(NOPORTDOCS)
@ ${MKDIR} ${DOCSDIR}
@ cd ${WRKSRC} && find ${DOCS} \
| ${CPIO} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif
.include <bsd.port.mk>
|