summaryrefslogtreecommitdiff
path: root/dns/samba-nsupdate/Makefile
blob: 46e5ba1ffbfc8d5456d368f65eecc303b4814567 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
PORTNAME=		nsupdate
PORTVERSION=		9.16.5
PORTREVISION=		0
CATEGORIES=		dns net
MASTER_SITES=		ISC/bind9/${ISCVERSION}
PKGNAMEPREFIX=		samba-
DISTNAME=		bind-${ISCVERSION}

MAINTAINER=		timur@FreeBSD.org
COMMENT=		nsupdate utility with the GSS-TSIG support
WWW=		https://www.isc.org/software/bind

LICENSE=		MPL20
LICENSE_FILE=		${WRKSRC}/COPYRIGHT

LIB_DEPENDS=		libuv.so:devel/libuv

USES=			autoreconf compiler:c11 cpe libedit libtool pkgconfig ssl tar:xz

# ISC releases things like 9.8.0-P1, which our versioning doesn't like
ISCVERSION=		9.16.5

CPE_VENDOR=		isc
CPE_PRODUCT=		bind
CPE_VERSION=		${ISCVERSION:C/-.*//}
.if ${ISCVERSION:M*-*}
CPE_UPDATE=		${ISCVERSION:C/.*-//:tl}
.endif

GNU_CONFIGURE=		yes

CONFIGURE_ARGS+=	\
			--prefix=${PREFIX} \
			--sysconfdir="${PREFIX}/etc/namedb" \
			--localstatedir=/var \
			--disable-largefile \
			--disable-linux-caps \
			--disable-shared \
			--disable-symtable \
			--disable-dnstap \
			--disable-fixed-rrset \
			--disable-geoip \
			--disable-native-pkcs11 \
			--disable-querytrace \
			--disable-tcp-fastopen \
			--with-tuning=default \
			--with-dlopen=yes \
			--with-readline="-L${LOCALBASE}/lib -ledit" \
			--with-openssl=${OPENSSLBASE} \
			--without-maxminddb \
			--without-libxml2 \
			--without-lmdb  \
			--without-json-c \
			--without-python \
			--without-libidn2

EXTRA_PATCHES=		${PATCHDIR}/extrapatch-bind-tools

MAKE_JOBS_UNSAFE=	yes

OPTIONS_DEFAULT=	GSSAPI_BASE

OPTIONS_SINGLE=		GSSAPI
OPTIONS_SINGLE_GSSAPI=	GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT

OPTIONS_SUB=		yes

GSSAPI_BASE_DESC=	Using Heimdal in base
GSSAPI_HEIMDAL_DESC=	Using security/heimdal
GSSAPI_MIT_DESC=	Using security/krb5

GSSAPI_BASE_CONFIGURE_ON=\
			--with-gssapi=${GSSAPIBASEDIR} KRB5CONFIG="${KRB5CONFIG}"
GSSAPI_BASE_USES=	gssapi

GSSAPI_HEIMDAL_CONFIGURE_ON=\
			--with-gssapi=${GSSAPIBASEDIR} KRB5CONFIG="${KRB5CONFIG}"
GSSAPI_HEIMDAL_USES=	gssapi:heimdal

GSSAPI_MIT_CONFIGURE_ON=\
			--with-gssapi=${GSSAPIBASEDIR} KRB5CONFIG="${KRB5CONFIG}"
GSSAPI_MIT_USES=	gssapi:mit

PLIST_FILES=		bin/${PKGBASE} \
			man/man1/${PKGBASE}.1.gz

.include <bsd.port.pre.mk>

post-patch:
		@${REINPLACE_CMD} \
			-e 's|${PORTNAME}|${PKGBASE}|g' \
		${PATCH_WRKSRC}/doc/man/${PORTNAME}.1in

do-install:
		${INSTALL_MAN} ${INSTALL_WRKSRC}/doc/man/${PORTNAME}.1in ${STAGEDIR}${MANPREFIX}/man/man1/${PKGBASE}.1
		${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/bin/nsupdate/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PKGBASE}

.include <bsd.port.post.mk>