summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-02-11 22:14:26 +0000
committerjoerg <joerg@pkgsrc.org>2010-02-11 22:14:26 +0000
commit372ea224c288ea14719b0055008e3944f0621799 (patch)
tree4a3eafaf193d1f739668adedd66692e9bb408263
parent5f957cbaba96350964b357db5ed3b76eb9d719c0 (diff)
downloadpkgsrc-372ea224c288ea14719b0055008e3944f0621799.tar.gz
DESTDIR support. XXX 600 on the example config is silly
-rw-r--r--net/mydns-mysql/Makefile4
-rw-r--r--net/mydns-pgsql/Makefile.common9
2 files changed, 8 insertions, 5 deletions
diff --git a/net/mydns-mysql/Makefile b/net/mydns-mysql/Makefile
index eed4e3a544b..cc42c935f0f 100644
--- a/net/mydns-mysql/Makefile
+++ b/net/mydns-mysql/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2006/06/07 12:43:13 joerg Exp $
+# $NetBSD: Makefile,v 1.9 2010/02/11 22:14:26 joerg Exp $
PKGNAME= ${DISTNAME:S/-/-mysql-/}
PKGREVISION= 2
@@ -10,6 +10,8 @@ DISTINFO_FILE= ${.CURDIR}/../../net/mydns-pgsql/distinfo
PATCHDIR= ${.CURDIR}/../../net/mydns-pgsql/patches
FILESDIR= ${.CURDIR}/../../net/mydns-pgsql/files
+PKG_DESTDIR_SUPPORT= user-destdir
+
CONFIGURE_ARGS+= --without-pgsql
CONFIGURE_ARGS+= --with-mysql-lib=${BUILDLINK_PREFIX.mysql-client}/lib/mysql
CONFIGURE_ARGS+= --with-mysql-include=${BUILDLINK_PREFIX.mysql-client}/include/mysql
diff --git a/net/mydns-pgsql/Makefile.common b/net/mydns-pgsql/Makefile.common
index a3710563472..8a5eeda793f 100644
--- a/net/mydns-pgsql/Makefile.common
+++ b/net/mydns-pgsql/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.13 2007/07/04 20:54:50 jlam Exp $
+# $NetBSD: Makefile.common,v 1.14 2010/02/11 22:14:26 joerg Exp $
DISTNAME= mydns-1.1.0
CATEGORIES= net
@@ -34,10 +34,11 @@ RCD_SCRIPTS= mydns
PKG_GROUPS= ${MYDNS_GROUP}
PKG_USERS= ${MYDNS_USER}:${MYDNS_GROUP}
+INSTALLATION_DIRS+= ${EGDIR}
+
post-install:
- ${INSTALL_DATA_DIR} ${EGDIR}
- ${WRKSRC}/src/mydns/mydns --dump-config > ${EGDIR}/mydns.conf
- ${CHMOD} 0600 ${EGDIR}/mydns.conf
+ ${WRKSRC}/src/mydns/mydns --dump-config > ${DESTDIR}${EGDIR}/mydns.conf
+ ${CHMOD} 0600 ${DESTDIR}${EGDIR}/mydns.conf
.include "../../security/openssl/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"