summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-12-18 17:28:15 +0000
committerjoerg <joerg@pkgsrc.org>2008-12-18 17:28:15 +0000
commit0822f0c47ed1224f836fffba48b8b858a21a4e17 (patch)
tree3ef2610d1413bf8de985868bb38e06e6152f7050
parent073c7d9320a0b4194d3038c6a0be61231904856d (diff)
downloadpkgsrc-0822f0c47ed1224f836fffba48b8b858a21a4e17.tar.gz
DESTDIR support.
-rw-r--r--mail/mailwrapper/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/mail/mailwrapper/Makefile b/mail/mailwrapper/Makefile
index da4e3028e68..55bdfa23014 100644
--- a/mail/mailwrapper/Makefile
+++ b/mail/mailwrapper/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2007/01/07 09:13:58 rillig Exp $
+# $NetBSD: Makefile,v 1.26 2008/12/18 17:28:16 joerg Exp $
DISTNAME= mailwrapper-19990412
PKGREVISION= 4
@@ -8,10 +8,11 @@ MASTER_SITES= ${MASTER_SITE_LOCAL}
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Wrapper to support arbitrary Mail Transport Agents
-NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_BSD_MAKEFILE= yes
WRKSRC= ${WRKDIR}/mailwrapper
-MANCOMPRESSED_IF_MANZ= yes
EGDIR= ${PREFIX}/share/examples/mailwrapper
@@ -23,7 +24,9 @@ MAILWRAPPEES= /usr/bin/mailq \
/usr/sbin/sendmail /usr/lib/sendmail
FILES_SUBST+= MAILWRAPPEES=${MAILWRAPPEES:Q}
-INSTALLATION_DIRS= ${PKGMANDIR}/cat5 ${PKGMANDIR}/cat8 ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 sbin
+INSTALLATION_DIRS= ${PKGMANDIR}/cat5 ${PKGMANDIR}/cat8 \
+ ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 sbin \
+ share/examples/mailwrapper
do-configure:
cd ${WRKSRC}; \
@@ -34,7 +37,6 @@ do-configure:
done
post-install:
- ${INSTALL_DATA_DIR} ${EGDIR}
- ${INSTALL_DATA} ${WRKSRC}/mailer.conf ${EGDIR}/mailer.conf.sendmail
+ ${INSTALL_DATA} ${WRKSRC}/mailer.conf ${DESTDIR}${EGDIR}/mailer.conf.sendmail
.include "../../mk/bsd.pkg.mk"