blob: 6ed69f9711b4a18691dd7a0c491ba4e3cfcd6064 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Created by: proff@suburbia.net
# $FreeBSD$
PORTNAME= nntpcache
PORTVERSION= 3.0.2
PORTREVISION= 6
CATEGORIES= news
MASTER_SITES= http://www.xs4all.nl/~suelette/
MAINTAINER= leeym@FreeBSD.org
COMMENT= News caching/anti-spam/server-merging system
USE_AUTOTOOLS= automake:env
# 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}
AUTHINFO_EXT= authinfo_pam.ext
USE_RC_SUBR= nntpcached
OPTIONS_DEFINE= LDAP RADIUS SPAMPHOBIA
SPAMPHOBIA_DESC= Spamphobia NoCeM support
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MRADIUS}
CONFIGURE_ARGS+= --with-authinfo-radius
AUTHINFO_EXT+= authinfo_radius.ext
.endif
.if ${PORT_OPTIONS:MLDAP} || defined(WITH_LDAP2)
USE_OPENLDAP= yes
CONFIGURE_ARGS+= --with-authinfo-ldap
CPPFLAGS+= -I${PREFIX}/include -I${LOCALBASE}/include
LDFLAGS+= -L${PREFIX}/lib -L${LOCALBASE}/lib
AUTHINFO_EXT+= authinfo_ldap.ext
.endif
CONFIGURE_ARGS+= --program-transform-name=''
NNTPSPOOLDIR?= ${SPOOLDIR}/${PORTNAME}
PLIST_SUB+= SPOOLDIR=${NNTPSPOOLDIR}
CPIO_CMD= ${CPIO} --quiet -pdum -R
MAN8= nntpcached.8 newshound.8
PORTDOCS= AUTHORS ChangeLog FAQ FAQ.html HACKING HTML \
INSTALL LICENSING NEWS README README.INN VERSION
.if ${PORT_OPTIONS:MSPAMPHOBIA}
REVISEDATE= 20060903
PATCH_SITES+= http://people.freebsd.org/~leeym/:SPAMPHOBIA
PATCHFILES+= ${DISTNAME}-spamphobia-${REVISEDATE}.diff.gz:SPAMPHOBIA
.endif
post-configure:
@cd ${WRKSRC}/src && ${GMAKE} ${AUTHINFO_EXT}
post-install:
@ ${MKDIR} ${NNTPSPOOLDIR} && ${CHMOD} 750 ${NNTPSPOOLDIR}
@ ${CP} ${PREFIX}/etc/${PORTNAME}/VERSION ${NNTPSPOOLDIR} && \
${CHMOD} 640 ${NNTPSPOOLDIR}/VERSION
@ ${CHOWN} -R news:news ${NNTPSPOOLDIR}
.if ${PORT_OPTIONS:MDOCS}
@ ${MKDIR} ${DOCSDIR}
@ cd ${WRKSRC} && ${FIND} ${PORTDOCS} \
| ${CPIO_CMD} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif
.include <bsd.port.mk>
|