From a7cb22841f2835ab9188177d98d0b2f2be15d646 Mon Sep 17 00:00:00 2001 From: jakob Date: Tue, 8 Jan 2008 10:51:21 +0000 Subject: [PATCH] ZKT DNSSEC toolkit --- security/zkt/Makefile | 32 ++++++++++++++++++++++ security/zkt/distinfo | 5 ++++ security/zkt/patches/patch-config_h | 17 ++++++++++++ security/zkt/patches/patch-dnssec-signer_8 | 30 ++++++++++++++++++++ security/zkt/patches/patch-dnssec-zkt_8 | 18 ++++++++++++ security/zkt/pkg/DESCR | 2 ++ security/zkt/pkg/PLIST | 6 ++++ 7 files changed, 110 insertions(+) create mode 100644 security/zkt/Makefile create mode 100644 security/zkt/distinfo create mode 100644 security/zkt/patches/patch-config_h create mode 100644 security/zkt/patches/patch-dnssec-signer_8 create mode 100644 security/zkt/patches/patch-dnssec-zkt_8 create mode 100644 security/zkt/pkg/DESCR create mode 100644 security/zkt/pkg/PLIST diff --git a/security/zkt/Makefile b/security/zkt/Makefile new file mode 100644 index 00000000000..577901c758d --- /dev/null +++ b/security/zkt/Makefile @@ -0,0 +1,32 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2008/01/08 10:51:21 jakob Exp $ + +COMMENT= "DNSsec Zone Key Tool" + +DISTNAME= zkt-0.94 +PKGNAME= ${DISTNAME} +CATEGORIES= security + +HOMEPAGE= http://www.hznet.de/dns/zkt/ + +MAINTAINER= Jakob Schlyter + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes +WANTLIB= c + +MASTER_SITES= ${HOMEPAGE} +EXTRACT_SUFX= .tar + +WRKDIST= ${WRKDIR} + +do-install: + ${INSTALL_PROGRAM} ${WRKBUILD}/dnssec-signer ${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKBUILD}/dnssec-zkt ${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKBUILD}/dnssec-soaserial ${PREFIX}/sbin + ${INSTALL_MAN} ${WRKBUILD}/dnssec-signer.8 ${PREFIX}/man/man8 + ${INSTALL_MAN} ${WRKBUILD}/dnssec-zkt.8 ${PREFIX}/man/man8 + +.include diff --git a/security/zkt/distinfo b/security/zkt/distinfo new file mode 100644 index 00000000000..49528af3a0e --- /dev/null +++ b/security/zkt/distinfo @@ -0,0 +1,5 @@ +MD5 (zkt-0.94.tar) = HBenrhrJYP0O1QpPEmdNhw== +RMD160 (zkt-0.94.tar) = bUm3e6kpQiBK8BV3qR4fqiQkML8= +SHA1 (zkt-0.94.tar) = +GHtkez/Bqzt6L3sRNAGyPQ3VY8= +SHA256 (zkt-0.94.tar) = ewWJ0lCRJrinDQgEq8PwlxlgtsbSAN7nsa807DnOm9M= +SIZE (zkt-0.94.tar) = 440320 diff --git a/security/zkt/patches/patch-config_h b/security/zkt/patches/patch-config_h new file mode 100644 index 00000000000..eb23789043d --- /dev/null +++ b/security/zkt/patches/patch-config_h @@ -0,0 +1,17 @@ +$OpenBSD: patch-config_h,v 1.1.1.1 2008/01/08 10:51:21 jakob Exp $ +--- config.h.orig Wed Oct 31 13:15:11 2007 ++++ config.h Tue Jan 8 10:27:32 2008 +@@ -47,11 +47,11 @@ + #endif + + #ifndef BIND_UTIL_PATH +-# define BIND_UTIL_PATH "/usr/local/sbin/" ++# define BIND_UTIL_PATH "/usr/sbin/" + #endif + + #ifndef CONFIG_PATH +-# define CONFIG_PATH "/var/named/" ++# define CONFIG_PATH "/var/named/etc/" + #endif + + #ifndef ZKT_VERSION diff --git a/security/zkt/patches/patch-dnssec-signer_8 b/security/zkt/patches/patch-dnssec-signer_8 new file mode 100644 index 00000000000..f76a33dae27 --- /dev/null +++ b/security/zkt/patches/patch-dnssec-signer_8 @@ -0,0 +1,30 @@ +$OpenBSD: patch-dnssec-signer_8,v 1.1.1.1 2008/01/08 10:51:21 jakob Exp $ +--- dnssec-signer.8.orig Wed Nov 21 14:31:22 2007 ++++ dnssec-signer.8 Tue Jan 8 10:29:35 2008 +@@ -178,7 +178,7 @@ Print out the online help. + .SH SAMPLE USAGE + .TP + .fam C +-.B "dnssec-signer \-N /var/named/named.conf \-r \-v \-v ++.B "dnssec-signer \-N /var/named/etc/named.conf \-r \-v \-v + .fam T + Sign all secure zones found in the named.conf file and, if necessary, + trigger a reload of the zone. +@@ -325,7 +325,7 @@ Specifies the name of the default global + + .SH FILES + .TP +-.I /var/named/dnssec.conf ++.I /var/named/etc/dnssec.conf + Built-in default global configuration file. + The name of the default global config file is settable via + the environment variable ZKT_CONFFILE. +@@ -335,7 +335,7 @@ with option + .B \-Z + to create an initial config file. + .TP +-.I /var/named/dnssec-.conf ++.I /var/named/etc/dnssec-.conf + View specific global configuration file. + .TP + .I ./dnssec.conf diff --git a/security/zkt/patches/patch-dnssec-zkt_8 b/security/zkt/patches/patch-dnssec-zkt_8 new file mode 100644 index 00000000000..a847e4887e1 --- /dev/null +++ b/security/zkt/patches/patch-dnssec-zkt_8 @@ -0,0 +1,18 @@ +$OpenBSD: patch-dnssec-zkt_8,v 1.1.1.1 2008/01/08 10:51:21 jakob Exp $ +--- dnssec-zkt.8.orig Wed Nov 21 14:31:38 2007 ++++ dnssec-zkt.8 Tue Jan 8 10:30:11 2008 +@@ -424,12 +424,12 @@ Specifies the name of the default global + + .SH FILES + .TP +-.I /var/named/dnssec.conf ++.I /var/named/etc/dnssec.conf + Built-in default global configuration file. + The name of the default global config file is settable via + the environment variable ZKT_CONFFILE. + .TP +-.I /var/named/dnssec-.conf ++.I /var/named/etc/dnssec-.conf + View specific global configuration file. + .TP + .I ./dnssec.conf diff --git a/security/zkt/pkg/DESCR b/security/zkt/pkg/DESCR new file mode 100644 index 00000000000..225130de626 --- /dev/null +++ b/security/zkt/pkg/DESCR @@ -0,0 +1,2 @@ +The dnssec-zkt command is a wrapper around dnssec-keygen(8) to assist in +DNSSEC zone key management. diff --git a/security/zkt/pkg/PLIST b/security/zkt/pkg/PLIST new file mode 100644 index 00000000000..30cebe580e5 --- /dev/null +++ b/security/zkt/pkg/PLIST @@ -0,0 +1,6 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2008/01/08 10:51:21 jakob Exp $ +@man man/man8/dnssec-signer.8 +@man man/man8/dnssec-zkt.8 +sbin/dnssec-signer +sbin/dnssec-soaserial +sbin/dnssec-zkt