From owner-svn-ports-all@freebsd.org Sat Nov 17 11:13:32 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 789381131059; Sat, 17 Nov 2018 11:13:32 +0000 (UTC) (envelope-from timur@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1F89485C53; Sat, 17 Nov 2018 11:13:32 +0000 (UTC) (envelope-from timur@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F03252B604; Sat, 17 Nov 2018 11:13:31 +0000 (UTC) (envelope-from timur@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wAHBDVVw072798; Sat, 17 Nov 2018 11:13:31 GMT (envelope-from timur@FreeBSD.org) Received: (from timur@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wAHBDVZv072795; Sat, 17 Nov 2018 11:13:31 GMT (envelope-from timur@FreeBSD.org) Message-Id: <201811171113.wAHBDVZv072795@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: timur set sender to timur@FreeBSD.org using -f From: "Timur I. Bakeyev" Date: Sat, 17 Nov 2018 11:13:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r485128 - in head/dns/samba-nsupdate: . files X-SVN-Group: ports-head X-SVN-Commit-Author: timur X-SVN-Commit-Paths: in head/dns/samba-nsupdate: . files X-SVN-Commit-Revision: 485128 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 1F89485C53 X-Spamd-Result: default: False [0.37 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_SPAM_SHORT(0.37)[0.368,0] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2018 11:13:32 -0000 Author: timur Date: Sat Nov 17 11:13:31 2018 New Revision: 485128 URL: https://svnweb.freebsd.org/changeset/ports/485128 Log: Update port to the latest version of bind Deleted: head/dns/samba-nsupdate/files/patch-lib_isc_random.c Modified: head/dns/samba-nsupdate/Makefile head/dns/samba-nsupdate/distinfo head/dns/samba-nsupdate/files/patch-configure.in Modified: head/dns/samba-nsupdate/Makefile ============================================================================== --- head/dns/samba-nsupdate/Makefile Sat Nov 17 10:58:04 2018 (r485127) +++ head/dns/samba-nsupdate/Makefile Sat Nov 17 11:13:31 2018 (r485128) @@ -1,8 +1,7 @@ # $FreeBSD$ PORTNAME= nsupdate -PORTVERSION= 9.8.6 -PORTREVISION= 2 +PORTVERSION= 9.13.3 CATEGORIES= dns net ipv6 MASTER_SITES= ISC/bind9/${ISCVERSION} PKGNAMEPREFIX= samba- @@ -11,75 +10,90 @@ DISTNAME= bind-${ISCVERSION} MAINTAINER= timur@FreeBSD.org COMMENT= nsupdate utility with GSS-TSIG support -LICENSE= ISCL +LICENSE= MPL20 +LICENSE_FILE= ${WRKSRC}/COPYRIGHT +USES= compiler:c11 cpe libedit autoreconf libtool pkgconfig ssl # ISC releases things like 9.8.0-P1, which our versioning doesn't like -ISCVERSION= 9.8.6 +ISCVERSION= 9.13.3 -MAKE_JOBS_UNSAFE= yes +CPE_VENDOR= isc +CPE_VERSION= ${ISCVERSION:C/-.*//} +.if ${ISCVERSION:M*-*} +CPE_UPDATE= ${ISCVERSION:C/.*-//:tl} +.endif -USES= autoreconf libtool ssl GNU_CONFIGURE= yes CONFIGURE_ARGS+= \ --prefix=${PREFIX} \ - --sysconfdir="/etc/namedb" \ + --sysconfdir="${PREFIX}/etc/namedb" \ --localstatedir=/var \ --enable-largefile \ --enable-threads \ --disable-linux-caps \ --disable-symtable \ + --with-dlopen=yes \ + --with-readline="-L${LOCALBASE}/lib -ledit" \ + --with-openssl=${OPENSSLBASE} \ --disable-shared \ --without-libxml2 \ --without-iconv \ - --without-idn \ - --with-randomdev=/dev/random + --without-idn -OPTIONS_DEFINE= IPV6 +CONFIGURE_ENV+= STD_CDEFINES="-DDIG_SIGCHASE=1" ACLOCAL_AMFLAGS="-I m4" -SIGCHASE_CONFIGURE_ARGS+= STD_CDEFINES="-DDIG_SIGCHASE=1" -IPV6_CONFIGURE_ON= --enable-ipv6 +MAKE_JOBS_UNSAFE= yes +OPTIONS_DEFAULT= GSSAPI_BASE + +OPTIONS_DEFINE= IPV6 +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 + +IPV6_CONFIGURE_ENABLE= ipv6 + PLIST_FILES= bin/${PKGBASE} \ man/man1/${PKGBASE}.1.gz .include -.if (${ARCH} == "amd64") -ARCH= x86_64 -.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+= libkrb5.so:security/heimdal -CONFIGURE_ARGS+= --with-gssapi="${LOCALBASE}" -.endif - 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}|${PKGBASE}|g' \ - ${WRKSRC}/bin/nsupdate/${PORTNAME}.1 + @${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.*||' \ + ${PATCH_WRKSRC}/Makefile.in + @${REINPLACE_CMD} \ + -e 's|^SUBDIRS.*|SUBDIRS = ${PORTNAME} \\|' \ + -e 's|^.*check confgen ||' \ + -e '/tests$$/d' \ + ${PATCH_WRKSRC}/bin/Makefile.in + @${REINPLACE_CMD} \ + -e 's|${PORTNAME}|${PKGBASE}|g' \ + ${PATCH_WRKSRC}/bin/nsupdate/${PORTNAME}.1 do-install: - ${INSTALL_MAN} ${WRKSRC}/bin/nsupdate/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1/${PKGBASE}.1 - ${INSTALL_PROGRAM} ${WRKSRC}/bin/nsupdate/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PKGBASE} + ${INSTALL_MAN} ${INSTALL_WRKSRC}/bin/nsupdate/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1/${PKGBASE}.1 + ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/bin/nsupdate/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PKGBASE} .include Modified: head/dns/samba-nsupdate/distinfo ============================================================================== --- head/dns/samba-nsupdate/distinfo Sat Nov 17 10:58:04 2018 (r485127) +++ head/dns/samba-nsupdate/distinfo Sat Nov 17 11:13:31 2018 (r485128) @@ -1,2 +1,3 @@ -SHA256 (bind-9.8.6.tar.gz) = 01cc3a0105b47833b99e61b69acd824be4eeefd6557fffa26eced8e03f1249cd -SIZE (bind-9.8.6.tar.gz) = 7275769 +TIMESTAMP = 1542404362 +SHA256 (bind-9.13.3.tar.gz) = 76674cf2a3e61766aed5c7fd1ee6ed3da133a9e331b35b24f40efdf1bbac5b44 +SIZE (bind-9.13.3.tar.gz) = 7805551 Modified: head/dns/samba-nsupdate/files/patch-configure.in ============================================================================== --- head/dns/samba-nsupdate/files/patch-configure.in Sat Nov 17 10:58:04 2018 (r485127) +++ head/dns/samba-nsupdate/files/patch-configure.in Sat Nov 17 11:13:31 2018 (r485128) @@ -1,21 +1,90 @@ ---- configure.in.orig 2013-09-05 05:19:53.000000000 +0000 -+++ configure.in 2013-10-18 14:30:21.711727438 +0000 -@@ -1013,7 +1013,8 @@ - "-lgssapi" \ - "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \ - "-lgssapi -lkrb5 -lcrypto -lcrypt -lasn1 -lroken -lcom_err" \ +--- configure.in.orig 2018-09-06 04:15:26 UTC ++++ configure.in +@@ -1126,7 +1126,7 @@ case "$use_gssapi" in + saved_libs="$LIBS" + LIBS=$gssapi_libs + AC_MSG_CHECKING([krb5-config linking as $LIBS]) +- AC_TRY_LINK( , [gss_acquire_cred();krb5_init_context()], ++ AC_TRY_LINK( , [gss_acquire_cred();krb5_init_context();gsskrb5_register_acceptor_identity("krb5");], + gssapi_linked=yes, gssapi_linked=no) + case $gssapi_linked in + yes) AC_MSG_RESULT([krb5-config: linked]);; +@@ -1255,27 +1255,9 @@ case "$use_gssapi" in + # problems start to show up. + saved_libs="$LIBS" + for TRY_LIBS in \ +- "-lgssapi_krb5" \ +- "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err" \ +- "-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv" \ +- "-lgssapi" \ +- "-lgssapi -lkrb5 -ldes -lcrypt -lasn1 -lroken -lcom_err" \ +- "-lgssapi -lkrb5 -lcrypt -lasn1 -lroken -lcom_err" \ +- "-lgssapi -lkrb5 -lgssapi_krb5 -lcrypt -lasn1 -lroken -lcom_err" \ +- "-lgssapi -lkrb5 -lhx509 -lcrypt -lasn1 -lroken -lcom_err" \ - "-lgss -lkrb5" -+ "-lgss -lkrb5" \ -+ "-lgssapi_krb5 -lgssapi -lheimntlm -lkrb5 -lhx509 -lcom_err -lcrypto -lasn1 -lroken -lcrypt" ++ "$($KRB5CONFIG gssapi --libs)"; \ do - # Note that this does not include $saved_libs, because - # on FreeBSD machines this configure script has added -@@ -1027,7 +1028,7 @@ - LIBS="-L$use_gssapi/lib $TRY_LIBS" - fi +- # Note that this does not include $saved_libs, because +- # on FreeBSD machines this configure script has added +- # -L/usr/local/lib to LIBS, which can make the +- # -lgssapi_krb5 test succeed with shared libraries even +- # when you are trying to build with KTH in /usr/lib. +- if test "/usr" = "$use_gssapi" +- then +- LIBS="$TRY_LIBS $ISC_OPENSSL_LIBS" +- else +- LIBS="-L$use_gssapi/lib $TRY_LIBS $ISC_OPENSSL_LIBS" +- fi ++ LIBS="$TRY_LIBS" AC_MSG_CHECKING(linking as $TRY_LIBS) -- AC_TRY_LINK( , [gss_acquire_cred();krb5_init_context()], -+ AC_TRY_LINK( , [gss_acquire_cred();krb5_init_context();gsskrb5_register_acceptor_identity("krb5");], - gssapi_linked=yes, gssapi_linked=no) - case $gssapi_linked in - yes) AC_MSG_RESULT(yes); break ;; + AC_TRY_LINK([ + #include +@@ -1299,47 +1281,7 @@ gsskrb5_register_acceptor_identity(NULL) + no) AC_MSG_ERROR(could not determine proper GSSAPI linkage) ;; + esac + +- # +- # XXXDCL Major kludge. Tries to cope with KTH in /usr/lib +- # but MIT in /usr/local/lib and trying to build with KTH. +- # /usr/local/lib can end up earlier on the link lines. +- # Like most kludges, this one is not only inelegant it +- # is also likely to be the wrong thing to do at least as +- # many times as it is the right thing. Something better +- # needs to be done. +- # +- if test "/usr" = "$use_gssapi" -a \ +- -f /usr/local/lib/libkrb5.a; then +- FIX_KTH_VS_MIT=yes +- fi +- +- case "$FIX_KTH_VS_MIT" in +- yes) +- case "$enable_static_linking" in +- yes) gssapi_lib_suffix=".a" ;; +- *) gssapi_lib_suffix=".so" ;; +- esac +- +- for lib in $LIBS; do +- case $lib in +- -L*) +- ;; +- -l*) +- new_lib=`echo $lib | +- sed -e s%^-l%$use_gssapi/lib/lib% \ +- -e s%$%$gssapi_lib_suffix%` +- NEW_LIBS="$NEW_LIBS $new_lib" +- ;; +- *) +- AC_MSG_ERROR([KTH vs MIT Kerberos confusion!]) +- ;; +- esac +- done +- LIBS="$NEW_LIBS" +- ;; +- esac +- +- DST_GSSAPI_INC="-I$use_gssapi/include" ++ DST_GSSAPI_INC="$($KRB5CONFIG gssapi --cflags)" + DNS_GSSAPI_LIBS="$LIBS" + + AC_MSG_RESULT(using GSSAPI from $use_gssapi/lib and $use_gssapi/include)