summaryrefslogtreecommitdiff
path: root/news/trn/Makefile
blob: 3884d82085935ac5ad021c695840ba3cc6794adf (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# $NetBSD: Makefile,v 1.26 2006/03/04 21:30:26 jlam Exp $

DISTNAME=		trn-4.0-test76
PKGNAME=		trn-4.76
PKGREVISION=		3
CATEGORIES=		news
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=trn/} \
			ftp://trn.sourceforge.net/pub/trn/

MAINTAINER=     	pkgsrc-users@NetBSD.org
HOMEPAGE=		http://trn.sourceforge.net/
COMMENT=		Threaded version of rn, the classic news reader

LICENSE=		trn-license

PKG_SYSCONFSUBDIR=	nntp

.include "options.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

HAS_CONFIGURE=		yes
CONFIGURE_SCRIPT=	./Configure
CONFIGURE_ENV+=		PREFIX=${PREFIX:Q}
USE_TOOLS+=		awk basename cat cp diff echo egrep expr grep mkdir mv
USE_TOOLS+=		perl:run rm sed tail tr
CONFIGURE_ENV+=		TOOLS_AWK=${TOOLS_AWK:Q}
CONFIGURE_ENV+=		TOOLS_BASENAME=${TOOLS_BASENAME:Q}
CONFIGURE_ENV+=		TOOLS_CAT=${TOOLS_CAT:Q}
CONFIGURE_ENV+=		TOOLS_CP=${TOOLS_CP:Q}
CONFIGURE_ENV+=		TOOLS_DIFF=${TOOLS_DIFF:Q}
CONFIGURE_ENV+=		TOOLS_ECHO=${TOOLS_ECHO:Q}
CONFIGURE_ENV+=		TOOLS_EGREP=${TOOLS_EGREP:Q}
CONFIGURE_ENV+=		TOOLS_EXPR=${TOOLS_EXPR:Q}
CONFIGURE_ENV+=		TOOLS_GREP=${TOOLS_GREP:Q}
CONFIGURE_ENV+=		TOOLS_MKDIR=${TOOLS_MKDIR:Q}
CONFIGURE_ENV+=		TOOLS_MV=${TOOLS_MV:Q}
CONFIGURE_ENV+=		TOOLS_RM=${TOOLS_RM:Q}
CONFIGURE_ENV+=		TOOLS_SED=${TOOLS_SED:Q}
CONFIGURE_ENV+=		TOOLS_TAIL=${TOOLS_TAIL:Q}
CONFIGURE_ENV+=		TOOLS_TR=${TOOLS_TR:Q}
CONFIGURE_ARGS+=	-d -e -D bin=${PREFIX:Q}/bin \
			-D binexp=${PREFIX:Q}/bin \
			-D phost=${PKG_SYSCONFDIR}'/domainname' \
			-D filexp=${PREFIX:Q}'/share/trn/filexp' \
			-D hostbits=${TRN_HOSTBITS:Q} \
			-D installbin=${PREFIX:Q}'/bin' \
			-D installmansrc=${PREFIX:Q}'/man/man1' \
			-D installprivlib=${PREFIX:Q}'/share/trn' \
			-D libpth=${PREFIX:Q}'/lib /usr/lib' \
			-D mansrc=${PREFIX:Q}'/man/man1' \
			-D mansrcexp=${PREFIX:Q}'/man/man1' \
			-D mimecap=${PREFIX:Q}'/etc/mimecap' \
			-D orgname=${PKG_SYSCONFDIR}'/organization' \
			-D perl=${PERL5:Q} \
			-D perlpath=${PERL5:Q} \
			-D prefix=${PREFIX:Q} \
			-D prefixexp=${PREFIX:Q} \
			-D privlib=${PREFIX:Q}'/share/trn' \
			-D privlibexp=${PREFIX:Q}'/share/trn' \
			-D servername=${PKG_SYSCONFDIR}'/server' \
			-D d_nntp \
			-U d_local \
			-D libs=' ' \
			-D usevfork=false \
			-D inews=${PREFIX:Q}'/bin/inews' \
			-D useinews=${PREFIX:Q}'/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"