Browse Source

dante: add new package

Waldemar Brodkorb 9 years ago
parent
commit
9f207d85ac
2 changed files with 52 additions and 0 deletions
  1. 32 0
      package/dante/Makefile
  2. 20 0
      package/dante/patches/patch-lib_tostring_c

+ 32 - 0
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

+ 20 - 0
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 */