2 # Copyright (C) 2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.inet.no/dante/files/
16 PKG_MD5SUM:=69b9d6234154d7d6a91fcbd98c68e62a
21 include $(INCLUDE_DIR)/package.mk
23 TARGET_CFLAGS += -D_GNU_SOURCE
29 define Build/InstallDev
30 $(INSTALL_DIR) $(1)/usr/include
31 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
32 $(INSTALL_DIR) $(1)/usr/lib
33 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*,la} $(1)/usr/lib/
37 define Package/dante/default
39 URL:=http://www.inet.no/dante/
42 define Package/dante/default/description
43 Dante is a circuit-level firewall/proxy that can be used to provide convenient
44 and secure network connectivity, requiring only that the server Dante runs on
45 has external network connectivity. Dante is used daily by Fortune 100 companies
46 and large international organizations, either as a standard SOCKS server or as
50 define Package/libsocks
51 $(call Package/dante/default)
57 define Package/libsocks/description
58 $(call Package/dante/default/description)
59 This package provides the shared libsocks library.
62 define Package/libsocks/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsocks.so* $(1)/usr/lib/
69 $(call Package/dante/default)
70 SUBMENU:=Web Servers/Proxies
76 define Package/sockd/description
77 $(call Package/dante/default/description)
78 This package provides the Dante sockd daemon.
81 define Package/sockd/install
82 $(INSTALL_DIR) $(1)/usr/sbin
83 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/sockd $(1)/usr/sbin/
87 define Package/socksify
88 $(call Package/dante/default)
91 SUBMENU:=Web Servers/Proxies
95 define Package/socksify/description
96 $(call Package/dante/default/description)
97 This package provides the Dante socksify client.
100 define Package/socksify/install
101 $(INSTALL_DIR) $(1)/usr/bin
102 $(CP) $(PKG_INSTALL_DIR)/usr/bin/socksify $(1)/usr/bin/
104 $(INSTALL_DIR) $(1)/usr/lib
105 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdsocks.so* $(1)/usr/lib/
109 $(eval $(call BuildPackage,libsocks))
110 $(eval $(call BuildPackage,sockd))
111 $(eval $(call BuildPackage,socksify))