summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-03-13 05:46:55 +0000
committerobache <obache@pkgsrc.org>2010-03-13 05:46:55 +0000
commit5bc458a9ad57a95bedc5d0bcdcf8e2c44d2f0887 (patch)
treef552d7efe78cc26fff0555f543f6d34e375d5c0a /news
parent276587ad8acd07bca555bfd7e90fa75a4be4626a (diff)
downloadpkgsrc-5bc458a9ad57a95bedc5d0bcdcf8e2c44d2f0887.tar.gz
Honor PKGMANDIR and add user-destdir installation support.
Diffstat (limited to 'news')
-rw-r--r--news/trn/Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/news/trn/Makefile b/news/trn/Makefile
index 7c080c287ba..1df9ad115f8 100644
--- a/news/trn/Makefile
+++ b/news/trn/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2009/05/19 08:59:29 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2010/03/13 05:46:55 obache Exp $
DISTNAME= trn-4.0-test76
PKGNAME= trn-4.76
@@ -11,6 +11,8 @@ HOMEPAGE= http://trn.sourceforge.net/
COMMENT= Threaded version of rn, the classic news reader
LICENSE= trn-license
+PKG_DESTDIR_SUPPORT= user-destdir
+
PKG_SYSCONFSUBDIR= nntp
.include "options.mk"
@@ -46,12 +48,12 @@ CONFIGURE_ARGS+= -d -e -D bin=${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 installbin=${DESTDIR:Q}${PREFIX:Q}'/bin' \
+ -D installmansrc=${DESTDIR:Q}${PREFIX:Q}'/man/man1' \
+ -D installprivlib=${DESTDIR:Q}${PREFIX:Q}'/share/trn' \
-D libpth=${PREFIX:Q}'/lib /usr/lib' \
- -D mansrc=${PREFIX:Q}'/man/man1' \
- -D mansrcexp=${PREFIX:Q}'/man/man1' \
+ -D mansrc=${PREFIX:Q}/${PKGMANDIR:Q}'/man1' \
+ -D mansrcexp=${PREFIX:Q}/${PKGMANDIR:Q}'/man1' \
-D mimecap=${PREFIX:Q}'/etc/mimecap' \
-D orgname=${PKG_SYSCONFDIR}'/organization' \
-D perl=${PERL5:Q} \
@@ -69,9 +71,9 @@ CONFIGURE_ARGS+= -d -e -D bin=${PREFIX:Q}/bin \
-D useinews=${PREFIX:Q}'/bin/inews'
post-install:
- @${RM} -f ${PREFIX}/bin/rn ${PREFIX}/${PKGMANDIR}/man1/rn.1 \
- ${PREFIX}/${PKGMANDIR}/man1/rn.1.gz
- @${LN} -s trn ${PREFIX}/bin/rn
- @${LN} -s trn.1 ${PREFIX}/${PKGMANDIR}/man1/rn.1
+ @${RM} -f ${DESTDIR}${PREFIX}/bin/rn ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/rn.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/rn.1.gz
+ @${LN} -s trn ${DESTDIR}${PREFIX}/bin/rn
+ @${LN} -s trn.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/rn.1
.include "../../mk/bsd.pkg.mk"