diff --git a/srcpkgs/dante/patches/0002-osdep-m4-Remove-getaddrinfo-too-low-checks.patch b/srcpkgs/dante/patches/0002-osdep-m4-Remove-getaddrinfo-too-low-checks.patch new file mode 100644 index 00000000000..71d8c8b9c58 --- /dev/null +++ b/srcpkgs/dante/patches/0002-osdep-m4-Remove-getaddrinfo-too-low-checks.patch @@ -0,0 +1,35 @@ +osdep.m4: Remove getaddrinfo() too low checks + +dante runs AC_PREPROC_IFELSE then it fills $ERRVALFILE by running the +following command: + +cat conftest.i | grep gaierrval: >>$2 + +As a result, $ERRVALFILE does not contain the expected values because +the expected value is not on the same line than gaierrval: + + gaierrval: + # 130 "conftest.c" 3 4 + -3 + +So drop these checks + +Signed-off-by: Fabrice Fontaine + +diff -Nuar osdep.m4 osdep.m4 +--- osdep.m4 2019-12-09 21:28:38.936003218 +0100 ++++ osdep.m4 2019-12-09 21:49:48.764019371 +0100 +@@ -956,13 +956,7 @@ + unset UNIQUEVALS UNIQUESYMBOLS + if test -s $ERRVALFILE; then + UNIQUEVALS=`sort $ERRVALFILE | uniq | wc -l | awk '{ print $1 }'` +- if test $UNIQUEVALS -le 1; then +- AC_MSG_FAILURE([error: getaddrinfo() error value count too low]) +- fi + UNIQUESYMBOLS=`cat $ERRVALFILE | wc -l | awk '{ print $1 }'` +- if test $UNIQUESYMBOLS -le 1; then +- AC_MSG_FAILURE([error: getaddrinfo() error symbol count too low]) +- fi + + if test $ERRNOCNT -ne $UNIQUESYMBOLS; then + AC_MSG_FAILURE([internal error: errno symbol count mismatch]) diff --git a/srcpkgs/dante/template b/srcpkgs/dante/template new file mode 100644 index 00000000000..7b29919deae --- /dev/null +++ b/srcpkgs/dante/template @@ -0,0 +1,20 @@ +# Template file for 'dante' +pkgname=dante +version=1.4.2 +revision=1 +build_style=gnu-configure +hostmakedepends="tar automake libtool" +short_desc="SOCKS server and client" +maintainer="shtayerc " +license="MIT-CMU" +homepage="http://www.inet.no/dante/index.html" +distfiles="http://www.inet.no/dante/files/dante-${version}.tar.gz" +checksum=4c97cff23e5c9b00ca1ec8a95ab22972813921d7fbf60fc453e3e06382fc38a7 + +pre_configure() { + autoreconf -fi +} + +post_install() { + vlicense LICENSE +}