2015-08-18 09:31:00 +02:00
|
|
|
# $NetBSD: Makefile,v 1.10 2015/08/18 07:31:17 wiz Exp $
|
2010-03-13 20:19:51 +01:00
|
|
|
#
|
|
|
|
|
2013-03-16 00:34:44 +01:00
|
|
|
DISTNAME= zkt-1.1.2
|
2015-08-18 09:31:00 +02:00
|
|
|
PKGREVISION= 1
|
2010-03-13 20:19:51 +01:00
|
|
|
CATEGORIES= security
|
2012-06-17 00:55:25 +02:00
|
|
|
MASTER_SITES= http://www.hznet.de/dns/zkt/
|
2010-03-13 20:19:51 +01:00
|
|
|
|
|
|
|
MAINTAINER= pettai@NetBSD.org
|
2012-06-17 00:55:25 +02:00
|
|
|
HOMEPAGE= http://www.hznet.de/dns/zkt/
|
2010-03-13 20:19:51 +01:00
|
|
|
COMMENT= DNSSEC Zone Key Tool
|
|
|
|
LICENSE= original-bsd
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-configpath=${PKG_SYSCONFDIR}/zkt
|
|
|
|
#CONFIGURE_ARGS+= --enable-configpath=/var/chroot/named/etc
|
|
|
|
|
|
|
|
INSTALLATION_DIRS= sbin share/doc/zkt ${PKGMANDIR}/man8 etc/zkt
|
|
|
|
|
2012-10-24 18:05:15 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
security/zkt: Fix DragonFly regression
When this package was updated to version 1.1, it stopped building on
DragonFly. The main issue is that DragonFly doesn't have bind in its
base. NetBSD does, so it zkt finds it there, but otherwise it needs
the configuration switch --enable-binutil-path to be used. This was
added for DragonFly to point at ${PREFIX}/sbin.
zkt requires bind to be installed in order to build. Unlike other
packages like python, postgresql, and ruby where the mk.conf can
define a version otherwise a default is used, no such mechanism
exists to hand the four separate bind packages (at least I don't know
about one). So the inclusion of bind99 is a hack I'm not too proud
of, but I don't have a better solution. With it, it builds in clean
environments like pbulk chroot and Tinderbox. If an individual user
is building from source, they'll be smart enough to comment out this
include if another version of bind is already installed (zkt will
fail on a bind build conflict).
I suspect DragonFly is rather unique in not having bind in base, so
for now this is left as a DragonFly-specific section. Something
like net/bind99/builtin.mk could possibly be used to determine if
no builtin bind is available and thus follow DragonFly approach. I
shall leave it to others to decide.
2012-07-18 22:44:38 +02:00
|
|
|
# NetBSD has bind in base, util path=/usr/sbin
|
2012-10-24 18:05:15 +02:00
|
|
|
.if ${OPSYS} == "NetBSD" && exists(/usr/sbin/dnssec-keygen)
|
|
|
|
CONFIGURE_ARGS+= --enable-bind_util_path=/usr/sbin
|
|
|
|
.endif
|
|
|
|
|
security/zkt: Fix DragonFly regression
When this package was updated to version 1.1, it stopped building on
DragonFly. The main issue is that DragonFly doesn't have bind in its
base. NetBSD does, so it zkt finds it there, but otherwise it needs
the configuration switch --enable-binutil-path to be used. This was
added for DragonFly to point at ${PREFIX}/sbin.
zkt requires bind to be installed in order to build. Unlike other
packages like python, postgresql, and ruby where the mk.conf can
define a version otherwise a default is used, no such mechanism
exists to hand the four separate bind packages (at least I don't know
about one). So the inclusion of bind99 is a hack I'm not too proud
of, but I don't have a better solution. With it, it builds in clean
environments like pbulk chroot and Tinderbox. If an individual user
is building from source, they'll be smart enough to comment out this
include if another version of bind is already installed (zkt will
fail on a bind build conflict).
I suspect DragonFly is rather unique in not having bind in base, so
for now this is left as a DragonFly-specific section. Something
like net/bind99/builtin.mk could possibly be used to determine if
no builtin bind is available and thus follow DragonFly approach. I
shall leave it to others to decide.
2012-07-18 22:44:38 +02:00
|
|
|
# DragonFly uses pkgsrc bind, so the util path must be explicitly defined
|
|
|
|
# Without any global bind package to point to, pick the latest one and
|
|
|
|
# hope one of the other 3 bind packages isn't already installed because
|
|
|
|
# this one will fail to build due to conflict in that case.
|
2012-10-24 18:05:15 +02:00
|
|
|
|
security/zkt: Fix DragonFly regression
When this package was updated to version 1.1, it stopped building on
DragonFly. The main issue is that DragonFly doesn't have bind in its
base. NetBSD does, so it zkt finds it there, but otherwise it needs
the configuration switch --enable-binutil-path to be used. This was
added for DragonFly to point at ${PREFIX}/sbin.
zkt requires bind to be installed in order to build. Unlike other
packages like python, postgresql, and ruby where the mk.conf can
define a version otherwise a default is used, no such mechanism
exists to hand the four separate bind packages (at least I don't know
about one). So the inclusion of bind99 is a hack I'm not too proud
of, but I don't have a better solution. With it, it builds in clean
environments like pbulk chroot and Tinderbox. If an individual user
is building from source, they'll be smart enough to comment out this
include if another version of bind is already installed (zkt will
fail on a bind build conflict).
I suspect DragonFly is rather unique in not having bind in base, so
for now this is left as a DragonFly-specific section. Something
like net/bind99/builtin.mk could possibly be used to determine if
no builtin bind is available and thus follow DragonFly approach. I
shall leave it to others to decide.
2012-07-18 22:44:38 +02:00
|
|
|
.if ${OPSYS} == "DragonFly"
|
2014-01-02 01:50:07 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-bind_util_path=${BUILDLINK_PREFIX.bind}/sbin
|
security/zkt: Fix DragonFly regression
When this package was updated to version 1.1, it stopped building on
DragonFly. The main issue is that DragonFly doesn't have bind in its
base. NetBSD does, so it zkt finds it there, but otherwise it needs
the configuration switch --enable-binutil-path to be used. This was
added for DragonFly to point at ${PREFIX}/sbin.
zkt requires bind to be installed in order to build. Unlike other
packages like python, postgresql, and ruby where the mk.conf can
define a version otherwise a default is used, no such mechanism
exists to hand the four separate bind packages (at least I don't know
about one). So the inclusion of bind99 is a hack I'm not too proud
of, but I don't have a better solution. With it, it builds in clean
environments like pbulk chroot and Tinderbox. If an individual user
is building from source, they'll be smart enough to comment out this
include if another version of bind is already installed (zkt will
fail on a bind build conflict).
I suspect DragonFly is rather unique in not having bind in base, so
for now this is left as a DragonFly-specific section. Something
like net/bind99/builtin.mk could possibly be used to determine if
no builtin bind is available and thus follow DragonFly approach. I
shall leave it to others to decide.
2012-07-18 22:44:38 +02:00
|
|
|
.include "../../net/bind99/buildlink3.mk"
|
|
|
|
.endif
|
|
|
|
|
2010-03-13 20:19:51 +01:00
|
|
|
do-install:
|
2011-03-12 17:46:05 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/zkt-conf \
|
|
|
|
${DESTDIR}${PREFIX}/sbin/zkt-conf
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/zkt-keyman \
|
|
|
|
${DESTDIR}${PREFIX}/sbin/zkt-keyman
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/zkt-ls \
|
|
|
|
${DESTDIR}${PREFIX}/sbin/zkt-ls
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/zkt-signer \
|
|
|
|
${DESTDIR}${PREFIX}/sbin/zkt-signer
|
2010-03-13 20:19:51 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/zkt-soaserial \
|
|
|
|
${DESTDIR}${PREFIX}/sbin/zkt-soaserial
|
2011-03-12 17:46:05 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/zkt-conf.8 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/zkt-conf.8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/zkt-ls.8 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/zkt-ls.8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/zkt-keyman.8 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/zkt-keyman.8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/zkt-signer.8 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/zkt-signer.8
|
2010-03-13 20:19:51 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/zkt/README
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.logging \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/zkt/README.logging
|
|
|
|
|
2011-12-18 00:43:43 +01:00
|
|
|
.include "../../mk/curses.buildlink3.mk"
|
2010-03-13 20:19:51 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|