summaryrefslogtreecommitdiff
path: root/news/trn/Makefile
blob: 096ebaad68764199200096d4b916ac311a240f07 (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
62
63
64
# $NetBSD: Makefile,v 1.8 2000/08/27 02:46:06 jlam Exp $
#

DISTNAME=		trn4-test72
PKGNAME=		trn-4.72
CATEGORIES=		news
MASTER_SITES=		http://www.clari.net/~wayne/

MAINTAINER=     	packages@netbsd.org
HOMEPAGE=		http://www.clari.net/~wayne/

.if defined(USE_INN) && ${USE_INN} == YES
DEPENDS=		inn>=2.2:../inn
.else
DEPENDS=		nntpclnt-1.6.1:../nntpclnt
.endif

.include "../../mk/bsd.prefs.mk"

# TRN_HOSTBITS determines the number of "name segments" (x.y.z.com), counting
# from right to left, that TRN will match to allow cancels, with 0 requiring
# a perfect match.  For example, with TRN_HOSTBITS=3, x.y.z.com will match
# foo.y.z.com for the purposes of allowing cancels.
TRN_HOSTBITS?=		0

USE_PERL5=		# defined

HAS_CONFIGURE=		# defined
CONFIGURE_SCRIPT=	./Configure
CONFIGURE_ENV=		PREFIX=${PREFIX}
CONFIGURE_ARGS=		-d -e -D bin=${PREFIX}/bin \
			-D binexp=${PREFIX}/bin \
			-D phost=${PREFIX}'/etc/nntp/domainname' \
			-D filexp=${PREFIX}'/share/trn/filexp' \
			-D hostbits=${TRN_HOSTBITS} \
			-D installbin=${PREFIX}'/bin' \
			-D installmansrc=${PREFIX}'/man/man1' \
			-D installprivlib=${PREFIX}'/share/trn' \
			-D libpth=${PREFIX}'/lib /usr/lib' \
			-D mansrc=${PREFIX}'/man/man1' \
			-D mansrcexp=${PREFIX}'/man/man1' \
			-D mimecap=${PREFIX}'/etc/mimecap' \
			-D orgname=${PREFIX}'/etc/nntp/organization' \
			-D perl=${PERL5} \
			-D perlpath=${PERL5} \
			-D prefix=${PREFIX} \
			-D prefixexp=${PREFIX} \
			-D privlib=${PREFIX}'/share/trn' \
			-D privlibexp=${PREFIX}'/share/trn' \
			-D servername=${PREFIX}'/etc/nntp/server' \
			-D d_nntp \
			-U d_local \
			-D libs=' ' \
			-D usevfork=false \
			-D inews=${PREFIX}'/bin/inews' \
			-D useinews=${PREFIX}'/bin/inews'

post-install:
	@${RM} -f ${PREFIX}/bin/rn ${PREFIX}/man/man1/rn.1 \
		${PREFIX}/man/man1/rn.1.gz
	@${LN} -s trn ${PREFIX}/bin/rn
	@${LN} -s trn.1 ${PREFIX}/man/man1/rn.1

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