diff --git a/dns/udns/Makefile b/dns/udns/Makefile index e1e7db156ac6..60f209e60411 100644 --- a/dns/udns/Makefile +++ b/dns/udns/Makefile @@ -1,63 +1,62 @@ PORTNAME= udns -PORTVERSION= 0.4 -PORTREVISION= 3 +PORTVERSION= 0.6 CATEGORIES= dns MASTER_SITES= http://www.corpit.ru/mjt/udns/ MAINTAINER= mm@FreeBSD.org COMMENT= DNS resolver library with sync and async queries WWW= https://www.corpit.ru/mjt/udns.html LICENSE= LGPL21 LICENSE_FILE= ${WRKSRC}/COPYING.LGPL USES= pkgconfig HAS_CONFIGURE= yes USE_LDCONFIG= yes OPTIONS_DEFINE= IPV6 DOCS ALL_TARGET= staticlib shared PORTDOCS= * SHLIB_MAJOR= 0 IPV6_CONFIGURE_ENABLE= ipv6 PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig post-build: @cd ${WRKSRC} && ${STRIP_CMD} dnsget_s ex-rdns_s rblcheck_s post-patch: @${SED} -e 's|%PREFIX%|${PREFIX}|g ; s|%VERSION%|${PORTVERSION}|g' \ ${FILESDIR}/libudns.pc.in > ${WRKDIR}/libudns.pc do-install: ${INSTALL_PROGRAM} ${WRKSRC}/libudns.so.${SHLIB_MAJOR} \ ${STAGEDIR}${PREFIX}/lib/libudns.so.${SHLIB_MAJOR} ${LN} -sf libudns.so.${SHLIB_MAJOR} \ ${STAGEDIR}${PREFIX}/lib/libudns.so ${INSTALL_DATA} ${WRKSRC}/udns.h ${STAGEDIR}${PREFIX}/include/udns.h ${INSTALL_DATA} ${WRKSRC}/libudns.a ${STAGEDIR}${PREFIX}/lib/libudns.a ${INSTALL_PROGRAM} ${WRKSRC}/dnsget_s ${STAGEDIR}${PREFIX}/bin/dnsget ${INSTALL_PROGRAM} ${WRKSRC}/rblcheck_s ${STAGEDIR}${PREFIX}/bin/rblcheck .for FILE in dnsget.1 rblcheck.1 ${INSTALL_MAN} ${WRKSRC}/${FILE} ${STAGEDIR}${PREFIX}/share/man/man1/${FILE} .endfor .for FILE in udns.3 ${INSTALL_MAN} ${WRKSRC}/${FILE} ${STAGEDIR}${PREFIX}/share/man/man3/${FILE} .endfor post-install: ${INSTALL_DATA} ${WRKDIR}/libudns.pc ${STAGEDIR}${PKGCONFIGDIR}/ post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for FILE in NEWS NOTES TODO ${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}/${FILE} .endfor .include diff --git a/dns/udns/distinfo b/dns/udns/distinfo index 7cd5322db87f..ee278994b97e 100644 --- a/dns/udns/distinfo +++ b/dns/udns/distinfo @@ -1,2 +1,3 @@ -SHA256 (udns-0.4.tar.gz) = 115108dc791a2f9e99e150012bcb459d9095da2dd7d80699b584ac0ac3768710 -SIZE (udns-0.4.tar.gz) = 84716 +TIMESTAMP = 1724105236 +SHA256 (udns-0.6.tar.gz) = 696a2d0d518da985d975a65e11d166f3f57cdbd1d42376a0b85307f49601c6e8 +SIZE (udns-0.6.tar.gz) = 85129 diff --git a/dns/udns/files/patch-configure b/dns/udns/files/patch-configure deleted file mode 100644 index ca6971268eae..000000000000 --- a/dns/udns/files/patch-configure +++ /dev/null @@ -1,27 +0,0 @@ ---- configure.orig 2023-02-24 09:54:25 UTC -+++ configure -@@ -83,17 +83,20 @@ else - fi - - ac_ign \ -- ac_yesno "for inet_pton() && inet_ntop()" \ -+ ac_yesno "for working inet_pton() && inet_ntop()" \ - ac_have INET_PTON_NTOP \ - ac_link < - #include - #include -+#include - int main() { -+ char addr[sizeof(struct in_addr)]; - char buf[64]; -- long x = 0; -- inet_pton(AF_INET, &x, buf); -- return inet_ntop(AF_INET, &x, buf, sizeof(buf)); -+ char *localhost = "127.0.0.1"; -+ inet_pton(AF_INET, localhost, addr); -+ inet_ntop(AF_INET, addr, buf, sizeof(buf)); -+ return strncmp(localhost, buf, sizeof(localhost)); - } - EOF -