mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
Add a new port that builds nsupdate from dns/bind9 with the GSS-TSIG
support. This is a requirement for Samba4 port.
This commit is contained in:
parent
88422bffba
commit
3bb61d8bc7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=312187
91
dns/samba-nsupdate/Makefile
Normal file
91
dns/samba-nsupdate/Makefile
Normal file
@ -0,0 +1,91 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= nsupdate
|
||||
PORTVERSION= 9.8.4.1
|
||||
CATEGORIES= dns net ipv6
|
||||
MASTER_SITES= ${MASTER_SITE_ISC}
|
||||
MASTER_SITE_SUBDIR= bind9/${ISCVERSION}
|
||||
PKGNAMEPREFIX= samba-
|
||||
DISTNAME= bind-${ISCVERSION}
|
||||
|
||||
MAINTAINER= timur@FreeBSD.org
|
||||
COMMENT= An nsupdate utility with GSS-TSIG support
|
||||
|
||||
LICENSE= ISCL
|
||||
|
||||
# ISC releases things like 9.8.0-P1, which our versioning doesn't like
|
||||
ISCVERSION= 9.8.4-P1
|
||||
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
USE_OPENSSL= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
CONFIGURE_ARGS+= \
|
||||
--prefix=${PREFIX} \
|
||||
--sysconfdir="/etc/namedb" \
|
||||
--localstatedir=/var \
|
||||
--enable-largefile \
|
||||
--enable-threads \
|
||||
--disable-linux-caps \
|
||||
--disable-symtable \
|
||||
--disable-shared \
|
||||
--without-libxml2 \
|
||||
--without-iconv \
|
||||
--without-idn \
|
||||
--with-randomdev=/dev/random
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if (${ARCH} == "amd64")
|
||||
ARCH= x86_64
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MSIGCHASE}
|
||||
CONFIGURE_ARGS+= STD_CDEFINES="-DDIG_SIGCHASE=1"
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MIPV6}
|
||||
CONFIGURE_ARGS+= --enable-ipv6
|
||||
.endif
|
||||
|
||||
# Enable OpenSSL API
|
||||
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
|
||||
# Try to find appropriate GSSAPI libs
|
||||
.if defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libgssapi_krb5.so)
|
||||
CONFIGURE_ARGS+= --with-gssapi="${KRB5_HOME}"
|
||||
.elif defined(HEIMDAL_HOME) && exists(${HEIMDAL_HOME}/lib/libgssapi.so)
|
||||
CONFIGURE_ARGS+= --with-gssapi="${HEIMDAL_HOME}"
|
||||
.elif exists(/usr/lib/libkrb5.so) && exists(/usr/bin/krb5-config)
|
||||
CONFIGURE_ARGS+= --with-gssapi="/usr"
|
||||
.else
|
||||
LIB_DEPENDS+= krb5:${PORTSDIR}/security/heimdal
|
||||
CONFIGURE_ARGS+= --with-gssapi="${LOCALBASE}"
|
||||
.endif
|
||||
|
||||
MAN1= ${UNIQUENAME}.1
|
||||
|
||||
PLIST_FILES= bin/${UNIQUENAME}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} \
|
||||
-e 's|^SUBDIRS.*|SUBDIRS = lib bin|' \
|
||||
-e 's|isc-config.sh installdirs|installdirs|' \
|
||||
-e 's|.*INSTALL.*isc-config.*||' \
|
||||
-e 's|.*INSTALL.*bind.keys.*||' \
|
||||
${WRKSRC}/Makefile.in
|
||||
@${REINPLACE_CMD} \
|
||||
-e 's|^SUBDIRS.*|SUBDIRS = ${PORTNAME}|' \
|
||||
-e 's|^.*check confgen ||' \
|
||||
${WRKSRC}/bin/Makefile.in
|
||||
@${REINPLACE_CMD} \
|
||||
-e 's|${PORTNAME}|${UNIQUENAME}|g' \
|
||||
${WRKSRC}/bin/nsupdate/${PORTNAME}.1
|
||||
|
||||
do-install:
|
||||
${INSTALL_MAN} ${WRKSRC}/bin/nsupdate/${PORTNAME}.1 ${MANPREFIX}/man/man1/${UNIQUENAME}.1
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/bin/nsupdate/${PORTNAME} ${PREFIX}/bin/${UNIQUENAME}
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
dns/samba-nsupdate/distinfo
Normal file
2
dns/samba-nsupdate/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (bind-9.8.4-P1.tar.gz) = 60c979575bf6288570cb4e3e9ab9d99bb93a55d2a4946ce277f6e6e642dda21f
|
||||
SIZE (bind-9.8.4-P1.tar.gz) = 7129321
|
9
dns/samba-nsupdate/pkg-descr
Normal file
9
dns/samba-nsupdate/pkg-descr
Normal file
@ -0,0 +1,9 @@
|
||||
An GSS-TSIG enabled version on nsupdate(1) utility from bind9 package
|
||||
for Dynamic DNS Update requests as defined in RFC 2136 suitable for
|
||||
Samba4 zone updates.
|
||||
|
||||
Standard GSS-TSIG mode is switched on with the -g flag. A proprietary
|
||||
variant of GSS-TSIG used by Windows 2000 can be switched on with the -o
|
||||
flag.
|
||||
|
||||
WWW: https://www.isc.org/software/bind
|
Loading…
Reference in New Issue
Block a user