1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

dns/udns: update 0.4_3 -> 0.6

Changes:	https://www.corpit.ru/mjt/udns/NEWS
Reported by:	portscout
This commit is contained in:
Martin Matuska 2024-08-20 00:11:30 +02:00
parent 6ac670b7fe
commit d7d74ea9d6
3 changed files with 4 additions and 31 deletions

View File

@ -1,6 +1,5 @@
PORTNAME= udns
PORTVERSION= 0.4
PORTREVISION= 3
PORTVERSION= 0.6
CATEGORIES= dns
MASTER_SITES= http://www.corpit.ru/mjt/udns/

View File

@ -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

View File

@ -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 <<EOF
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
+#include <string.h>
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