summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/dante/Makefile32
-rw-r--r--package/dante/patches/patch-lib_tostring_c20
2 files changed, 52 insertions, 0 deletions
diff --git a/package/dante/Makefile b/package/dante/Makefile
new file mode 100644
index 000000000..85c86be73
--- /dev/null
+++ b/package/dante/Makefile
@@ -0,0 +1,32 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= dante
+PKG_VERSION:= 1.4.1
+PKG_RELEASE:= 1
+PKG_HASH:= b6d232bd6fefc87d14bf97e447e4fcdeef4b28b16b048d804b50b48f261c4f53
+PKG_DESCR:= socks proxy
+PKG_SECTION:= net/proxy
+PKG_URL:= https://www.inet.no/dante/
+PKG_SITES:= https://www.inet.no/dante/files/
+
+DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,DANTE,dante,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+dante-install:
+ $(INSTALL_DIR) $(IDIR_DANTE)/etc
+ $(CP) $(WRKSRC)/example/sockd.conf \
+ $(IDIR_DANTE)/etc
+ $(INSTALL_DIR) $(IDIR_DANTE)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/lib*.so* \
+ $(IDIR_DANTE)/usr/lib
+ $(INSTALL_DIR) $(IDIR_DANTE)/usr/sbin
+ $(INSTALL_BIN) $(WRKINST)/usr/sbin/sockd \
+ $(IDIR_DANTE)/usr/sbin
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk
diff --git a/package/dante/patches/patch-lib_tostring_c b/package/dante/patches/patch-lib_tostring_c
new file mode 100644
index 000000000..a6db4d6d2
--- /dev/null
+++ b/package/dante/patches/patch-lib_tostring_c
@@ -0,0 +1,20 @@
+--- dante-1.4.1.orig/lib/tostring.c 2014-08-21 18:21:50.000000000 +0200
++++ dante-1.4.1/lib/tostring.c 2016-07-10 10:08:39.785662622 +0200
+@@ -1526,7 +1526,7 @@ signal2string(sig)
+ return "SIGKILL";
+ #endif /* SIGKILL */
+
+-#if (defined SIGLOST) && (!defined SIGABRT || SIGLOST != SIGABRT)
++#if (defined SIGLOST) && (!defined SIGABRT || SIGLOST != SIGABRT || SIGLOST != SIGPWR)
+ case SIGLOST:
+ return "SIGLOST";
+ #endif /* SIGLOST */
+@@ -1551,7 +1551,7 @@ signal2string(sig)
+ return "SIGPROF";
+ #endif /* SIGPROF */
+
+-#ifdef SIGPWR
++#if (defined SIGPWR) && SIGPWR != SIGLOST
+ case SIGPWR:
+ return "SIGPWR";
+ #endif /* SIGPWR */