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
18 PKG_MAINTAINER
:=Jo-Philipp Wich
<jow@openwrt.org
>
23 include $(INCLUDE_DIR
)/package.mk
25 TARGET_CFLAGS
+= -D_GNU_SOURCE
31 define Build
/InstallDev
32 $(INSTALL_DIR
) $(1)/usr
/include
33 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
34 $(INSTALL_DIR
) $(1)/usr
/lib
35 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{a
,so
*,la
} $(1)/usr
/lib
/
39 define Package
/dante
/default
41 URL
:=http
://www.inet.no
/dante
/
44 define Package
/dante
/default
/description
45 Dante is a circuit-level firewall
/proxy that can be used to provide convenient
46 and secure network connectivity
, requiring only that the server Dante runs on
47 has external network connectivity. Dante is used daily by Fortune
100 companies
48 and large international organizations
, either
as a standard SOCKS server or
as
52 define Package
/libsocks
53 $(call Package
/dante
/default
)
59 define Package
/libsocks
/description
60 $(call Package
/dante
/default
/description
)
61 This package provides the shared libsocks library.
64 define Package
/libsocks
/install
65 $(INSTALL_DIR
) $(1)/usr
/lib
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsocks.so
* $(1)/usr
/lib
/
71 $(call Package
/dante
/default
)
72 SUBMENU
:=Web Servers
/Proxies
78 define Package
/sockd
/description
79 $(call Package
/dante
/default
/description
)
80 This package provides the Dante sockd daemon.
83 define Package
/sockd
/install
84 $(INSTALL_DIR
) $(1)/usr
/sbin
85 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/sockd
$(1)/usr
/sbin
/
89 define Package
/socksify
90 $(call Package
/dante
/default
)
93 SUBMENU
:=Web Servers
/Proxies
97 define Package
/socksify
/description
98 $(call Package
/dante
/default
/description
)
99 This package provides the Dante socksify client.
102 define Package
/socksify
/install
103 $(INSTALL_DIR
) $(1)/usr
/bin
104 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/socksify
$(1)/usr
/bin
/
106 $(INSTALL_DIR
) $(1)/usr
/lib
107 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdsocks.so
* $(1)/usr
/lib
/
111 $(eval
$(call BuildPackage
,libsocks
))
112 $(eval
$(call BuildPackage
,sockd
))
113 $(eval
$(call BuildPackage
,socksify
))