---- dante-1.4.1/compiler.m4~ 2014-08-02 22:05:19.000000000 +0200
-+++ dante-1.4.1/compiler.m4 2014-10-24 22:16:03.014015699 +0200
-@@ -368,29 +368,6 @@
- esac
- fi
- CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-DDEBUG=1"
--else
-- #autoconf_compflags is set to "-g -O2" with GCC
-- #override CFLAGS when running configure to avoid this
-- CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-DDEBUG=0"
+--- dante-1.4.2/compiler.m4.orig 2017-04-16 09:24:45.152661908 +0200
++++ dante-1.4.2/compiler.m4 2017-04-16 09:27:39.452659919 +0200
+@@ -437,7 +437,6 @@
+ #autoconf_compflags is set to "-g -O2" with GCC
+ #override CFLAGS when running configure to avoid this
+ CPPFLAGS="$CPPFLAGS${CPPFLAGS:+ }-DDEBUG=0"
- CFLAGS="$CFLAGS${CFLAGS:+ }$autoconf_compflags"
--
-- case $COMPTYPE in
-- gcc)
-- if test x"$aixldbug" != x; then
-- #disable debug info
-- if echo $CFLAGS | grep -- "-g" >/dev/null; then
-- CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'`"
-- fi
-- CFLAGS="$CFLAGS${CFLAGS:+ }-g0"
+
+ case $COMPTYPE in
+ gcc)
+@@ -447,12 +446,6 @@
+ CFLAGS="`echo $CFLAGS | sed -e 's/-g //g'`"
+ fi
+ CFLAGS="$CFLAGS${CFLAGS:+ }-g0"
- else
- #use -ggdb also when not debugging
-- if echo $CFLAGS | grep -- "-g" >/dev/null; then
-- CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'`"
+- if echo $CFLAGS | grep -- "-g " >/dev/null; then
+- CFLAGS="`echo $CFLAGS | sed -e 's/-g //g'`"
- fi
- CFLAGS="$CFLAGS${CFLAGS:+ }-ggdb"
-- fi
-- ;;
-- esac
- fi
-
- #check whether to compilation warnings
+ fi
+ ;;
+ esac
--- /dev/null
+--- dante-1.4.2/acinclude.m4.orig 2017-01-23 20:28:08.000000000 +0100
++++ dante-1.4.2/acinclude.m4 2017-04-16 11:08:02.385924479 +0200
+@@ -1106,6 +1106,8 @@
+ dnl test function that tries to determine if a specified errno error exists
+ m4_define([checkerrno],
+ [AC_MSG_CHECKING(for errno symbol $3)
++ CPPFLAGS_save="$CPPFLAGS"
++ CPPFLAGS="$CPPFLAGS -P"
+ AC_PREPROC_IFELSE(
+ [AC_LANG_PROGRAM([[#include <errno.h>]],
+ [[
+@@ -1117,7 +1119,9 @@
+ [AC_MSG_RESULT([OK])
+ $1="$$1 $3"
+ cat conftest.i | grep errnoval: >>$2],
+- [AC_MSG_RESULT([no])])])
++ [AC_MSG_RESULT([no])])
++ CPPFLAGS="$CPPFLAGS_save"
++])
+ AC_DEFUN([L_CHECKERRNO],
+ [checkerrno($@)])
+
+@@ -1127,8 +1131,11 @@
+ dnl test function that tries to determine if a specified errno error exists
+ m4_define([checkgaierror],
+ [AC_MSG_CHECKING(for getaddrinfo() error $3)
++ CPPFLAGS_save="$CPPFLAGS"
++ CPPFLAGS="$CPPFLAGS -P"
+ AC_PREPROC_IFELSE(
+ [AC_LANG_PROGRAM([[
++//#define _GNU_SOURCE 1
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netdb.h>]],
+@@ -1142,7 +1149,9 @@
+ $1="$$1 $3"
+ AC_DEFINE(HAVE_ERR_$3, 1, [$3 gai error found])
+ cat conftest.i | grep gaierrval: >>$2],
+- [AC_MSG_RESULT([no])])])
++ [AC_MSG_RESULT([no])])
++ CPPFLAGS="$CPPFLAGS_save"
++])
+ AC_DEFUN([L_CHECKGAIERROR],
+ [checkgaierror($@)])
+
+++ /dev/null
---- dante-1.4.1/lib/upnp.c.orig 2014-08-21 18:21:50.000000000 +0200
-+++ dante-1.4.1/lib/upnp.c 2014-10-25 18:12:07.582908742 +0200
-@@ -828,7 +828,7 @@
- {
- const char *function = "sighandler()";
-
-- slog(LOG_DEBUG, function);
-+ slog(LOG_DEBUG, "%s", function);
- upnpcleanup(-1);
-
- /* reinstall original signal handler. */
-@@ -936,7 +936,7 @@
- {
- const char *function = "atexit_upnpcleanup()";
-
-- slog(LOG_DEBUG, function);
-+ slog(LOG_DEBUG, "%s", function);
- upnpcleanup(-1);
- }
- #endif /* SOCKS_CLIENT */
-# TODO:
-# - examine ldap and sasl support (deps are pulled into *.la, no direct linking anywhere?)
+# NOTE: ldap and sasl seems stub in this (free only?) version
#
# Conditional build:
%bcond_without upnp # UPnP support (via miniupnp)
Summary: A free Socks v4/v5 client implementation
Summary(pl.UTF-8): Darmowa implementacja klienta Socks v4/5
Name: dante
-Version: 1.4.1
+Version: 1.4.2
Release: 1
License: BSD-like
Group: Networking/Daemons
-Source0: ftp://ftp.inet.no/pub/socks/%{name}-%{version}.tar.gz
-# Source0-md5: 68c2ce12119e12cea11a90c7a80efa8f
+#Source0Download: http://www.inet.no/dante/download.html
+Source0: http://www.inet.no/dante/files/%{name}-%{version}.tar.gz
+# Source0-md5: 29c2931339655da51576c4d2b7bf16f3
Source1: sockd.init
Patch0: %{name}-am.patch
Patch1: %{name}-build.patch
-Patch2: %{name}-format.patch
+Patch2: %{name}-cpp.patch
URL: http://www.inet.no/dante/
BuildRequires: autoconf >= 2.61
BuildRequires: automake
BuildRequires: cyrus-sasl-devel
BuildRequires: heimdal-devel
-BuildRequires: libtool
+BuildRequires: libtool >= 2:2
BuildRequires: libwrap-devel
%{?with_upnp:BuildRequires: miniupnpc-devel >= 1.6}
BuildRequires: openldap-devel
Summary(pl.UTF-8): Pliki programistyczne biblioteki socks
Group: Networking/Daemons
Requires: %{name} = %{version}-%{release}
-Requires: cyrus-sasl-devel
Requires: heimdal-devel
%{?with_upnp:Requires: miniupnpc-devel >= 1.6}
-Requires: openldap-devel
Requires: pam-devel
%description devel