pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/elm mail/elm: Install manpages into ${PKGMANDIR}.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/70c8b2b67260
branches:  trunk
changeset: 366874:70c8b2b67260
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Aug 19 00:20:25 2017 +0000

description:
mail/elm: Install manpages into ${PKGMANDIR}.

This project uses a Perl-style Configure script that can use a
custom config.sh to provide default answers to questions that it
asks as part of the configuration process.  Modify the custom
${FILESDIR}/config.sh to allow substituting for @PKGMANDIR@ in the
default location for unformatted manpages.

diffstat:

 mail/elm/Makefile        |  6 +++---
 mail/elm/files/config.sh |  2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 2504a3989216 -r 70c8b2b67260 mail/elm/Makefile
--- a/mail/elm/Makefile Sat Aug 19 00:20:13 2017 +0000
+++ b/mail/elm/Makefile Sat Aug 19 00:20:25 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.51 2016/05/17 10:32:07 fhajny Exp $
+# $NetBSD: Makefile,v 1.52 2017/08/19 00:20:25 jlam Exp $
 
 DISTNAME=              elm2.5.8
 PKGNAME=               elm-2.5.8
@@ -32,12 +32,12 @@
 SPECIAL_PERMS+=                bin/elm ${REAL_ROOT_USER} mail 2755
 
 pre-configure:
-       ${CP} ${FILESDIR}/config.sh ${WRKSRC}/config.sh.orig
        ${SED} -e 's:@PREFIX@:${PREFIX}:g' \
          -e 's:@DESTDIR@:${DESTDIR}:g' \
          -e 's:@LOCALBASE@:${LOCALBASE}:g' \
+         -e 's:@PKGMANDIR@:${PKGMANDIR}:g' \
          -e 's:@LIBC@:${LIBC}:g' \
-         ${WRKSRC}/config.sh.orig > ${WRKSRC}/config.sh
+         ${FILESDIR}/config.sh > ${WRKSRC}/config.sh
        ${MV} ${WRKSRC}/nls/LANGS ${WRKSRC}/nls/LANGS.tmpl
        ${SED} -e 's:__PREFIX:'${PREFIX}':g' < ${WRKSRC}/nls/LANGS.tmpl > ${WRKSRC}/nls/LANGS
 
diff -r 2504a3989216 -r 70c8b2b67260 mail/elm/files/config.sh
--- a/mail/elm/files/config.sh  Sat Aug 19 00:20:13 2017 +0000
+++ b/mail/elm/files/config.sh  Sat Aug 19 00:20:25 2017 +0000
@@ -240,7 +240,7 @@
 maildir='/var/mail'
 mailer='/usr/sbin/sendmail'
 mailgrp='wheel'
-mansrc='@DESTDIR@@PREFIX@/man/man1'
+mansrc='@DESTDIR@@PREFIX@/@PKGMANDIR@/man1'
 catmansrc='none'
 manext='.1'
 manext_choice='.1'



Home | Main Index | Thread Index | Old Index