summaryrefslogtreecommitdiff
path: root/news/nntpcache/Makefile
blob: 0ab0a916a4cc3660a49f0046f8ede3ea0086a0bc (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Created by: proff@suburbia.net
# $FreeBSD$

PORTNAME=	nntpcache
PORTVERSION=	3.0.2
PORTREVISION=	10
CATEGORIES=	news
MASTER_SITES=	http://www.xs4all.nl/~suelette/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	News caching/anti-spam/server-merging system

BROKEN_aarch64=		fails to link: missing sbrk
BROKEN_mips64=		fails to build: qemu: uncaught target signal 11 (Segmentation fault) - core dumped

NO_CDROM=	Free for individuals and non-military, non-profit organisations only

# This may be set interactively at install-time.  NNTPCache will
# cache news articles and related data in ${SPOOLDIR}/nntpcache.
SPOOLDIR?=	/var/spool

USES=		compiler:c11 gmake autoreconf shebangfix
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--localstatedir=${SPOOLDIR} \
		--program-transform-name=''

SHEBANG_FILES=	contrib/perlnewshound/newshound.pl

AUTHINFO_EXT=	authinfo_pam.ext
USE_RC_SUBR=	nntpcached

OPTIONS_DEFINE=	LDAP RADIUS SPAMPHOBIA DOCS
SPAMPHOBIA_DESC=	Spamphobia NoCeM support

RADIUS_CONFIGURE_WITH=	authinfo-radius
RADIUS_VARS=	AUTHINFO_EXT+=authinfo_radius.ext

LDAP_USE=	OPENLDAP=yes
LDAP_CONFIGURE_WITH=	authinfo-ldap
LDAP_CPPFLAGS=	-I${PREFIX}/include -I${LOCALBASE}/include
LDAP_LDFLAGS=	-L${PREFIX}/lib -L${LOCALBASE}/lib
LDAP_VARS=	AUTHINFO_EXT+=authinfo_ldap.ext

NNTPSPOOLDIR?=	${SPOOLDIR}/${PORTNAME}
PLIST_SUB+=	SPOOLDIR=${NNTPSPOOLDIR}
CPIO_CMD=	${CPIO} --quiet -pdum -R
PORTDOCS=	AUTHORS ChangeLog FAQ FAQ.html HACKING HTML \
		INSTALL LICENSING NEWS README README.INN VERSION

REVISEDATE=	20060903
SPAMPHOBIA_PATCH_SITES=	http://people.freebsd.org/~leeym/:SPAMPHOBIA
SPAMPHOBIA_PATCHFILES=	${DISTNAME}-spamphobia-${REVISEDATE}.diff.gz:SPAMPHOBIA

post-configure:
	${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} -C ${WRKSRC}/src ${AUTHINFO_EXT}

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	@cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>