summaryrefslogtreecommitdiff
path: root/net/isc-dhcp4
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-06-25 21:56:46 +0000
committerjoerg <joerg@pkgsrc.org>2010-06-25 21:56:46 +0000
commitadc061d9b988c808149ec2658bbf2cc19f93b25b (patch)
treeae22c6392b3be6a15004edbd94768d117b40889d /net/isc-dhcp4
parent75021fbcab44a131a479e7b91f33bce6f481fc4d (diff)
downloadpkgsrc-adc061d9b988c808149ec2658bbf2cc19f93b25b.tar.gz
DESTDIR support
Diffstat (limited to 'net/isc-dhcp4')
-rw-r--r--net/isc-dhcp4/Makefile14
-rw-r--r--net/isc-dhcp4/Makefile.common7
2 files changed, 10 insertions, 11 deletions
diff --git a/net/isc-dhcp4/Makefile b/net/isc-dhcp4/Makefile
index 3e3676a006a..56f46d94536 100644
--- a/net/isc-dhcp4/Makefile
+++ b/net/isc-dhcp4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2010/01/17 12:02:32 wiz Exp $
+# $NetBSD: Makefile,v 1.5 2010/06/25 21:56:46 joerg Exp $
#
PKGNAME= isc-dhcp-${DHVER}
@@ -6,17 +6,19 @@ PKGREVISION= 1
COMMENT= ISC Dynamic Host Configuration Protocol (DHCP) Base
SUBDIR= includes common minires dst
+PKG_DESTDIR_SUPPORT= user-destdir
+
.include "options.mk"
-post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${PKGBASE}
+INSTALLATION_DIRS+= share/doc/${PKGBASE}
+post-install:
${INSTALL_DATA} ${WRKSRC}/README \
- ${PREFIX}/share/doc/${PKGBASE}
+ ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
${INSTALL_DATA} ${WRKSRC}/RELNOTES \
- ${PREFIX}/share/doc/${PKGBASE}
+ ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
${INSTALL_DATA} ${WRKSRC}/doc/References.txt \
- ${PREFIX}/share/doc/${PKGBASE}
+ ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
.include "../../net/isc-dhcp4/Makefile.common"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/isc-dhcp4/Makefile.common b/net/isc-dhcp4/Makefile.common
index d817eefc4d9..3b229d58e6b 100644
--- a/net/isc-dhcp4/Makefile.common
+++ b/net/isc-dhcp4/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.6 2010/03/20 21:32:41 adrianp Exp $
+# $NetBSD: Makefile.common,v 1.7 2010/06/25 21:56:46 joerg Exp $
#
# used by net/isc-dhcp4/Makefile
# used by net/isc-dhcpd4/Makefile
@@ -42,9 +42,6 @@ SUBST_SED.config= -e "s|@@PREFIX@@|${PREFIX}|g"
SUBST_SED.config+= -e "s|@@PKG_SYSCONFDIR@@|${PKG_SYSCONFDIR}|g"
SUBST_MESSAGE.config= Fixing configuration files.
-do-install:
-. for d in ${SUBDIR}
- cd ${WRKSRC}/${d} && ${SETENV} ${MAKE_ENV} ${MAKE} install
-. endfor
+INSTALL_DIRS= ${SUBDIR}
.include "../../security/openssl/buildlink3.mk"