summaryrefslogtreecommitdiff
path: root/archivers/sarab
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-02 03:48:36 +0000
committerjlam <jlam>2008-03-02 03:48:36 +0000
commit3170d23f01ae24aa1c4d6e488619cd4779dc3023 (patch)
tree14eb87fa09bb9b6f1b081eea0499821310cc436b /archivers/sarab
parent3bee3dc66434cf5910b9b2016244f4e8af453b0f (diff)
downloadpkgsrc-3170d23f01ae24aa1c4d6e488619cd4779dc3023.tar.gz
Mechanical changes to add full DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'archivers/sarab')
-rw-r--r--archivers/sarab/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/archivers/sarab/Makefile b/archivers/sarab/Makefile
index 1f54396e286..d6eb3ae062a 100644
--- a/archivers/sarab/Makefile
+++ b/archivers/sarab/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2006/11/27 14:24:01 dsainty Exp $
+# $NetBSD: Makefile,v 1.3 2008/03/02 03:48:36 jlam Exp $
DISTNAME= sarab-0.2.2
PKGREVISION= 1
@@ -13,6 +13,8 @@ COMMENT= Schedule And Rotate Automatic Backups
DEPENDS+= dar-[0-9]*:../../archivers/dar
WRKSRC= ${WRKDIR}/sarab
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= bash:run
PKG_SYSCONFSUBDIR= sarab
@@ -53,18 +55,19 @@ SUBST_MESSAGE.prune= Prune /kern instead of /sys
SUBST_FILES.prune= etc/sarab.dcf
SUBST_SED.prune= -e "s|--prune sys|--prune kern|"
+INSTALLATION_DIRS= bin ${EGDIR}
+
do-build: # do nothing
do-install:
- ${INSTALL_DATA_DIR} ${EGDIR}
for example in \
${WRKSRC}/etc/rotation.schedule.README \
${WRKSRC}/etc/rotation.schedule \
${WRKSRC}/etc/sarab.conf \
${WRKSRC}/etc/sarab.dcf \
${WRKSRC}/etc/examples/*; do \
- ${INSTALL_DATA} $${example} ${EGDIR}/; \
+ ${INSTALL_DATA} $${example} ${DESTDIR}${EGDIR}; \
done
- ${INSTALL_SCRIPT} ${WRKSRC}/sarab.sh ${PREFIX}/bin/sarab
+ ${INSTALL_SCRIPT} ${WRKSRC}/sarab.sh ${DESTDIR}${PREFIX}/bin/sarab
.include "../../mk/bsd.pkg.mk"