Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / news / trn / Makefile
blob3897aeddfb2daf9ad13fa013266d2571c942de7a
1 # $NetBSD: Makefile,v 1.34 2012/10/03 21:57:13 wiz Exp $
3 DISTNAME= trn-4.0-test76
4 PKGNAME= trn-4.76
5 PKGREVISION= 4
6 CATEGORIES= news
7 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=trn/}
9 MAINTAINER= pkgsrc-users@NetBSD.org
10 HOMEPAGE= http://trn.sourceforge.net/
11 COMMENT= Threaded version of rn, the classic news reader
12 LICENSE= trn-license
14 PKG_SYSCONFSUBDIR= nntp
16 .include "options.mk"
18 # TRN_HOSTBITS determines the number of "name segments" (x.y.z.com), counting
19 # from right to left, that TRN will match to allow cancels, with 0 requiring
20 # a perfect match. For example, with TRN_HOSTBITS=3, x.y.z.com will match
21 # foo.y.z.com for the purposes of allowing cancels.
22 TRN_HOSTBITS?= 0
24 HAS_CONFIGURE= yes
25 CONFIGURE_SCRIPT= ./Configure
26 CONFIGURE_ENV+= PREFIX=${PREFIX:Q}
27 USE_TOOLS+= awk basename cat cp diff echo egrep expr grep mkdir mv
28 USE_TOOLS+= perl:run rm sed tail tr yacc
29 CONFIGURE_ENV+= TOOLS_AWK=${TOOLS_AWK:Q}
30 CONFIGURE_ENV+= TOOLS_BASENAME=${TOOLS_BASENAME:Q}
31 CONFIGURE_ENV+= TOOLS_CAT=${TOOLS_CAT:Q}
32 CONFIGURE_ENV+= TOOLS_CP=${TOOLS_CP:Q}
33 CONFIGURE_ENV+= TOOLS_DIFF=${TOOLS_DIFF:Q}
34 CONFIGURE_ENV+= TOOLS_ECHO=${TOOLS_ECHO:Q}
35 CONFIGURE_ENV+= TOOLS_EGREP=${TOOLS_EGREP:Q}
36 CONFIGURE_ENV+= TOOLS_EXPR=${TOOLS_EXPR:Q}
37 CONFIGURE_ENV+= TOOLS_GREP=${TOOLS_GREP:Q}
38 CONFIGURE_ENV+= TOOLS_MKDIR=${TOOLS_MKDIR:Q}
39 CONFIGURE_ENV+= TOOLS_MV=${TOOLS_MV:Q}
40 CONFIGURE_ENV+= TOOLS_RM=${TOOLS_RM:Q}
41 CONFIGURE_ENV+= TOOLS_SED=${TOOLS_SED:Q}
42 CONFIGURE_ENV+= TOOLS_TAIL=${TOOLS_TAIL:Q}
43 CONFIGURE_ENV+= TOOLS_TR=${TOOLS_TR:Q}
44 CONFIGURE_ARGS+= -d -e -D bin=${PREFIX:Q}/bin \
45 -D binexp=${PREFIX:Q}/bin \
46 -D phost=${PKG_SYSCONFDIR}'/domainname' \
47 -D filexp=${PREFIX:Q}'/share/trn/filexp' \
48 -D hostbits=${TRN_HOSTBITS:Q} \
49 -D installbin=${DESTDIR:Q}${PREFIX:Q}'/bin' \
50 -D installmansrc=${DESTDIR:Q}${PREFIX:Q}'/man/man1' \
51 -D installprivlib=${DESTDIR:Q}${PREFIX:Q}'/share/trn' \
52 -D libpth=${PREFIX:Q}'/lib /usr/lib' \
53 -D mansrc=${PREFIX:Q}/${PKGMANDIR:Q}'/man1' \
54 -D mansrcexp=${PREFIX:Q}/${PKGMANDIR:Q}'/man1' \
55 -D mimecap=${PREFIX:Q}'/etc/mimecap' \
56 -D orgname=${PKG_SYSCONFDIR}'/organization' \
57 -D perl=${PERL5:Q} \
58 -D perlpath=${PERL5:Q} \
59 -D prefix=${PREFIX:Q} \
60 -D prefixexp=${PREFIX:Q} \
61 -D privlib=${PREFIX:Q}'/share/trn' \
62 -D privlibexp=${PREFIX:Q}'/share/trn' \
63 -D servername=${PKG_SYSCONFDIR}'/server' \
64 -D d_nntp \
65 -U d_local \
66 -D libs=' ' \
67 -D usevfork=false \
68 -D inews=${PREFIX:Q}'/bin/inews' \
69 -D useinews=${PREFIX:Q}'/bin/inews'
71 post-install:
72 @${RM} -f ${DESTDIR}${PREFIX}/bin/rn ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/rn.1 \
73 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/rn.1.gz
74 @${LN} -s trn ${DESTDIR}${PREFIX}/bin/rn
75 @${LN} -s trn.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/rn.1
77 SUBST_CLASSES+= pipe2
78 SUBST_STAGE.pipe2= pre-configure
79 SUBST_FILES.pipe2= filter.c
80 SUBST_SED.pipe2+= -e 's|pipe2|trn_pipe2|g'
82 .include "../../mk/bsd.pkg.mk"