summaryrefslogtreecommitdiff
path: root/misc/mirmon
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 19:21:10 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 19:21:10 +0000
commit2ff2716acf781c9b1b039a6b95e38ecb3d95ed08 (patch)
tree49bcc2e4ee778e69c05972f13c0e319fdf272a66 /misc/mirmon
parentb7a420b59c401cc1e9a58c6d5a9f19b4f93074f8 (diff)
downloadpkgsrc-2ff2716acf781c9b1b039a6b95e38ecb3d95ed08.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'misc/mirmon')
-rw-r--r--misc/mirmon/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/misc/mirmon/Makefile b/misc/mirmon/Makefile
index 74be4d17488..2ede4adc6b6 100644
--- a/misc/mirmon/Makefile
+++ b/misc/mirmon/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2007/12/02 13:04:11 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2008/03/04 19:21:11 jlam Exp $
#
DISTNAME= mirmon-1.36
@@ -10,6 +10,7 @@ HOMEPAGE= http://people.cs.uu.nl/henkp/mirmon/
COMMENT= Monitor the state of mirror servers
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
REPLACE_PERL+= mirmon
USE_TOOLS+= perl:run pod2man
@@ -36,13 +37,13 @@ do-build:
cd ${WRKSRC} && ${POD2MAN} mirmon > ${WRKDIR}/mirmon.1
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/mirmon ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKDIR}/mirmon.1 ${PREFIX}/${PKGMANDIR}/man1
- ${INSTALL_DATA_DIR} ${EG_DIR}
- ${INSTALL_DATA} ${WRKDIR}/mirmon.conf ${EG_DIR}
- ${INSTALL_DATA_DIR} ${MIRMONDIR}
- ${INSTALL_DATA} ${WRKSRC}/countries.list ${MIRMONDIR}
- ${INSTALL_DATA_DIR} ${MIRMONDIR}/icons
- cd ${WRKSRC}/icons && ${INSTALL_DATA} * ${MIRMONDIR}/icons
+ ${INSTALL_SCRIPT} ${WRKSRC}/mirmon ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKDIR}/mirmon.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_DATA_DIR} ${DESTDIR}${EG_DIR}
+ ${INSTALL_DATA} ${WRKDIR}/mirmon.conf ${DESTDIR}${EG_DIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${MIRMONDIR}
+ ${INSTALL_DATA} ${WRKSRC}/countries.list ${DESTDIR}${MIRMONDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${MIRMONDIR}/icons
+ cd ${WRKSRC}/icons && ${INSTALL_DATA} * ${DESTDIR}${MIRMONDIR}/icons
.include "../../mk/bsd.pkg.mk"