summaryrefslogtreecommitdiff
path: root/mail/sigrot
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 17:57:17 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 17:57:17 +0000
commita80fd13efc426f96e55870df48a2030daea0f14b (patch)
treeea772f1017a149bdf8c86107c24d16246695614e /mail/sigrot
parent31c6c3a796edf9dd9bae5586339c5e2e023ca408 (diff)
downloadpkgsrc-a80fd13efc426f96e55870df48a2030daea0f14b.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'mail/sigrot')
-rw-r--r--mail/sigrot/Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/mail/sigrot/Makefile b/mail/sigrot/Makefile
index 6c49d7adcad..38deb950338 100644
--- a/mail/sigrot/Makefile
+++ b/mail/sigrot/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2007/01/07 09:13:59 rillig Exp $
+# $NetBSD: Makefile,v 1.13 2008/03/04 17:57:19 jlam Exp $
DISTNAME= sigrot_1.2-1
PKGNAME= sigrot-1.2
@@ -10,6 +10,8 @@ MAINTAINER= drue@users.sourceforge.net
HOMEPAGE= http://packages.debian.org/oldstable/mail/sigrot
COMMENT= Signature file rotation program
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_TOOLS+= gmake
@@ -22,14 +24,14 @@ do-build:
cd ${WRKSRC} && ${CC} sigrot.c -o sigrot
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/sigrot ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/sigrot.1 ${PREFIX}/${PKGMANDIR}/man1
- ${INSTALL_DATA_DIR} ${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/copyright ${DOCDIR}/COPYRIGHT
- ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCDIR}/INSTALL
- ${INSTALL_DATA_DIR} ${EGDIR}
- ${INSTALL_DATA} ${WRKSRC}/examples/prefix ${EGDIR}/prefix
- ${INSTALL_DATA} ${WRKSRC}/examples/sig_archive ${EGDIR}/sig_archive
- ${INSTALL_DATA} ${WRKSRC}/examples/suffix ${EGDIR}/suffix
+ ${INSTALL_PROGRAM} ${WRKSRC}/sigrot ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/sigrot.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/copyright ${DESTDIR}${DOCDIR}/COPYRIGHT
+ ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DESTDIR}${DOCDIR}/INSTALL
+ ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/examples/prefix ${DESTDIR}${EGDIR}/prefix
+ ${INSTALL_DATA} ${WRKSRC}/examples/sig_archive ${DESTDIR}${EGDIR}/sig_archive
+ ${INSTALL_DATA} ${WRKSRC}/examples/suffix ${DESTDIR}${EGDIR}/suffix
.include "../../mk/bsd.pkg.mk"