mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
Upgrade to new upstream release 2.57.
Remove support for FreeBSD releases 6.X. Allow build with IDN but without NLS (this requires that dns/libidn is also built WITHOUT_NLS) to expose an upstream change. Useful for embedded devices. Warn user if this is requested but libidn needs NLS libraries because in that case dnsmasq inherits the NLS dependencies from libidn. Remove files/patch-aa, it was a preview patch from a 2.57 test release, fixing a regression in 2.56 that caused hex constants to be rejected in the configuratino if they contained the '*' wildcard. Further upstream changes: - use own header for DNS protocol, rather than using arpa/nameser.h - correct ctype.h function argument casts (isdigit(), isxdigit(), etc.) - Accept extra empty arguments on command line to avoid libvirt breakage.
This commit is contained in:
parent
573450c297
commit
fbd2a84e40
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=269426
@ -6,8 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= dnsmasq
|
||||
PORTVERSION= 2.56
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 2.57
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= dns ipv6
|
||||
MASTER_SITES= http://www.thekelleys.org.uk/dnsmasq/ \
|
||||
@ -33,10 +32,9 @@ MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" PREFIX="${PREFIX}"
|
||||
|
||||
OPTIONS= IPV6 "IPv6 support" on
|
||||
OPTIONS+= DBUS "DBUS support" off
|
||||
OPTIONS+= NLS "NLS and IDN support" on
|
||||
# unfortunately, NLS and IDN are inseparable in dnsmasq 2.56, this
|
||||
# has been reported to Simon Kelley on 2009-10-01 and 2011-02-16
|
||||
# by the port maintainer.
|
||||
OPTIONS+= NLS "National Language Support (NLS, enables IDN)" on
|
||||
OPTIONS+= IDN "International Domain Names (IDN) WITHOUT NLS" off
|
||||
# unfortunately, NLS always enables IDN in dnsmasq 2.57
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
@ -53,19 +51,34 @@ USE_GETTEXT= yes
|
||||
USE_GMAKE= yes
|
||||
.else
|
||||
PLIST_SUB+= NLS="@comment "
|
||||
.if defined(WITH_IDN)
|
||||
MAKE_ARGS+= COPTS=-DHAVE_IDN
|
||||
LIB_DEPENDS+= idn:${PORTSDIR}/dns/libidn
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if defined(WITH_DBUS)
|
||||
LIB_DEPENDS+= dbus-1:${PORTSDIR}/devel/dbus
|
||||
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config
|
||||
CFLAGS+= -DHAVE_DBUS
|
||||
.if ${OSVERSION} < 700000
|
||||
LDFLAGS+= ${PTHREAD_LIBS}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
USE_RC_SUBR= dnsmasq.sh
|
||||
|
||||
pre-configure:
|
||||
@:
|
||||
.if defined(WITH_IDN)
|
||||
.if defined(WITHOUT_NLS)
|
||||
@if ${OBJDUMP} -p ${LOCALBASE}/lib/libidn.so \
|
||||
| ${EGREP} -q "NEEDED[[:space:]]+lib(intl|iconv)\.so" ; \
|
||||
then ${ECHO} ; ${ECHO} 'WARNING: dns/libidn was compiled with NLS support!' ; \
|
||||
${ECHO} 'Recompile libidn WITHOUT_NLS to get rid of NLS dependencies.' ; ${ECHO} ; \
|
||||
fi
|
||||
.else
|
||||
@${ECHO} 'WARNING: IDN and NLS enabled, building IDN WITH NLS.'
|
||||
.endif
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/dnsmasq ${PREFIX}/sbin
|
||||
${INSTALL_DATA} ${WRKSRC}/dnsmasq.conf.example ${PREFIX}/etc
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (dnsmasq-2.56.tar.lzma) = 36341d2534801cae3463489b79d912f9db8b5dbf5527efd69821a7984def2c33
|
||||
SIZE (dnsmasq-2.56.tar.lzma) = 331543
|
||||
SHA256 (dnsmasq-2.57.tar.lzma) = b35c5a31afce2b7c4bd62566d5dc87e1ce62d0d2ebd9c2baf15b5ea16bcc279d
|
||||
SIZE (dnsmasq-2.57.tar.lzma) = 333348
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- src/util.c 2011-01-18 22:23:57.000000000 +0000
|
||||
+++ src/util.c 2011-02-16 09:37:37.000000000 +0000
|
||||
@@ -379,7 +379,7 @@
|
||||
while (maxlen == -1 || i < maxlen)
|
||||
{
|
||||
for (r = in; *r != 0 && *r != ':' && *r != '-'; r++)
|
||||
- if (!isxdigit((int)*r))
|
||||
+ if (*r != '*' && !isxdigit((int)*r))
|
||||
return -1;
|
||||
|
||||
if (*r == 0)
|
Loading…
Reference in New Issue
Block a user