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
24 CONFIGURE_ARGS
+= --without-upnp
--without-pam
26 define Build
/InstallDev
27 $(INSTALL_DIR
) $(1)/usr
/include
28 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
29 $(INSTALL_DIR
) $(1)/usr
/lib
30 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{a
,so
*,la
} $(1)/usr
/lib
/
34 define Package
/dante
/default
36 URL
:=http
://www.inet.no
/dante
/
39 define Package
/dante
/default
/description
40 Dante is a circuit-level firewall
/proxy that can be used to provide convenient
41 and secure network connectivity
, requiring only that the server Dante runs on
42 has external network connectivity. Dante is used daily by Fortune
100 companies
43 and large international organizations
, either
as a standard SOCKS server or
as
47 define Package
/libsocks
48 $(call Package
/dante
/default
)
54 define Package
/libsocks
/description
55 $(call Package
/dante
/default
/description
)
56 This package provides the shared libsocks library.
59 define Package
/libsocks
/install
60 $(INSTALL_DIR
) $(1)/usr
/lib
61 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsocks.so
* $(1)/usr
/lib
/
66 $(call Package
/dante
/default
)
67 SUBMENU
:=Web Servers
/Proxies
73 define Package
/sockd
/description
74 $(call Package
/dante
/default
/description
)
75 This package provides the Dante sockd daemon.
78 define Package
/sockd
/install
79 $(INSTALL_DIR
) $(1)/usr
/sbin
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/sockd
$(1)/usr
/sbin
/
84 define Package
/socksify
85 $(call Package
/dante
/default
)
88 SUBMENU
:=Web Servers
/Proxies
92 define Package
/socksify
/description
93 $(call Package
/dante
/default
/description
)
94 This package provides the Dante socksify client.
97 define Package
/socksify
/install
98 $(INSTALL_DIR
) $(1)/usr
/bin
99 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/socksify
$(1)/usr
/bin
/
101 $(INSTALL_DIR
) $(1)/usr
/lib
102 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdsocks.so
* $(1)/usr
/lib
/
106 $(eval
$(call BuildPackage
,libsocks
))
107 $(eval
$(call BuildPackage
,sockd
))
108 $(eval
$(call BuildPackage
,socksify
))