summaryrefslogtreecommitdiff
path: root/security/zkt/Makefile
blob: 272e29dd8c352b65dc6ecedcd108aa08b0640664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# $NetBSD: Makefile,v 1.6 2012/10/23 18:17:02 asau Exp $
#

DISTNAME=	zkt-1.1.0
CATEGORIES=	security
MASTER_SITES=	http://www.hznet.de/dns/zkt/

MAINTAINER=	pettai@NetBSD.org
HOMEPAGE=	http://www.hznet.de/dns/zkt/
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

# NetBSD has bind in base, util path=/usr/sbin
# 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.
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "DragonFly"
CONFIGURE_ARGS+=	--enable-bind_util_path=${PREFIX}/sbin
.include "../../net/bind99/buildlink3.mk"
.endif

do-install:
	${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
	${INSTALL_PROGRAM} ${WRKSRC}/zkt-soaserial \
		${DESTDIR}${PREFIX}/sbin/zkt-soaserial
	${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
	${INSTALL_DATA} ${WRKSRC}/README \
		${DESTDIR}${PREFIX}/share/doc/zkt/README
	${INSTALL_DATA} ${WRKSRC}/README.logging \
		${DESTDIR}${PREFIX}/share/doc/zkt/README.logging

.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"