summaryrefslogtreecommitdiff
path: root/net/isc-dhcp4
diff options
context:
space:
mode:
authorjoerg <joerg>2010-06-25 21:56:46 +0000
committerjoerg <joerg>2010-06-25 21:56:46 +0000
commitc07d563906ffd73cc4449601c643a1c4294d8e05 (patch)
treeae22c6392b3be6a15004edbd94768d117b40889d /net/isc-dhcp4
parent0d78bba8694889d29163f25f29b49415be0165ab (diff)
downloadpkgsrc-c07d563906ffd73cc4449601c643a1c4294d8e05.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"