Wed Oct 24 16:05:15 2012 UTC ()
Allow unprivileged build on NetBSD, if bind is in base.


(joerg)
diff -r1.6 -r1.7 pkgsrc/security/zkt/Makefile

cvs diff -r1.6 -r1.7 pkgsrc/security/zkt/Makefile (expand / switch to unified diff)

--- pkgsrc/security/zkt/Makefile 2012/10/23 18:17:02 1.6
+++ pkgsrc/security/zkt/Makefile 2012/10/24 16:05:15 1.7
@@ -1,37 +1,43 @@ @@ -1,37 +1,43 @@
1# $NetBSD: Makefile,v 1.6 2012/10/23 18:17:02 asau Exp $ 1# $NetBSD: Makefile,v 1.7 2012/10/24 16:05:15 joerg Exp $
2# 2#
3 3
4DISTNAME= zkt-1.1.0 4DISTNAME= zkt-1.1.0
5CATEGORIES= security 5CATEGORIES= security
6MASTER_SITES= http://www.hznet.de/dns/zkt/ 6MASTER_SITES= http://www.hznet.de/dns/zkt/
7 7
8MAINTAINER= pettai@NetBSD.org 8MAINTAINER= pettai@NetBSD.org
9HOMEPAGE= http://www.hznet.de/dns/zkt/ 9HOMEPAGE= http://www.hznet.de/dns/zkt/
10COMMENT= DNSSEC Zone Key Tool 10COMMENT= DNSSEC Zone Key Tool
11LICENSE= original-bsd 11LICENSE= original-bsd
12 12
13GNU_CONFIGURE= yes 13GNU_CONFIGURE= yes
14CONFIGURE_ARGS+= --enable-configpath=${PKG_SYSCONFDIR}/zkt 14CONFIGURE_ARGS+= --enable-configpath=${PKG_SYSCONFDIR}/zkt
15#CONFIGURE_ARGS+= --enable-configpath=/var/chroot/named/etc 15#CONFIGURE_ARGS+= --enable-configpath=/var/chroot/named/etc
16 16
17INSTALLATION_DIRS= sbin share/doc/zkt ${PKGMANDIR}/man8 etc/zkt 17INSTALLATION_DIRS= sbin share/doc/zkt ${PKGMANDIR}/man8 etc/zkt
18 18
 19.include "../../mk/bsd.prefs.mk"
 20
19# NetBSD has bind in base, util path=/usr/sbin 21# NetBSD has bind in base, util path=/usr/sbin
 22.if ${OPSYS} == "NetBSD" && exists(/usr/sbin/dnssec-keygen)
 23CONFIGURE_ARGS+= --enable-bind_util_path=/usr/sbin
 24.endif
 25
20# DragonFly uses pkgsrc bind, so the util path must be explicitly defined 26# DragonFly uses pkgsrc bind, so the util path must be explicitly defined
21# Without any global bind package to point to, pick the latest one and 27# Without any global bind package to point to, pick the latest one and
22# hope one of the other 3 bind packages isn't already installed because 28# hope one of the other 3 bind packages isn't already installed because
23# this one will fail to build due to conflict in that case. 29# this one will fail to build due to conflict in that case.
24.include "../../mk/bsd.prefs.mk" 30
25.if ${OPSYS} == "DragonFly" 31.if ${OPSYS} == "DragonFly"
26CONFIGURE_ARGS+= --enable-bind_util_path=${PREFIX}/sbin 32CONFIGURE_ARGS+= --enable-bind_util_path=${PREFIX}/sbin
27.include "../../net/bind99/buildlink3.mk" 33.include "../../net/bind99/buildlink3.mk"
28.endif 34.endif
29 35
30do-install: 36do-install:
31 ${INSTALL_PROGRAM} ${WRKSRC}/zkt-conf \ 37 ${INSTALL_PROGRAM} ${WRKSRC}/zkt-conf \
32 ${DESTDIR}${PREFIX}/sbin/zkt-conf 38 ${DESTDIR}${PREFIX}/sbin/zkt-conf
33 ${INSTALL_PROGRAM} ${WRKSRC}/zkt-keyman \ 39 ${INSTALL_PROGRAM} ${WRKSRC}/zkt-keyman \
34 ${DESTDIR}${PREFIX}/sbin/zkt-keyman 40 ${DESTDIR}${PREFIX}/sbin/zkt-keyman
35 ${INSTALL_PROGRAM} ${WRKSRC}/zkt-ls \ 41 ${INSTALL_PROGRAM} ${WRKSRC}/zkt-ls \
36 ${DESTDIR}${PREFIX}/sbin/zkt-ls 42 ${DESTDIR}${PREFIX}/sbin/zkt-ls
37 ${INSTALL_PROGRAM} ${WRKSRC}/zkt-signer \ 43 ${INSTALL_PROGRAM} ${WRKSRC}/zkt-signer \