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
>
19 PKG_LICENSE
:=BSD-4-Clause
21 PKG_LICENSE
:=BSD-3-Clause
22 PKG_LICENSE_FILES
:=LICENSE
27 include $(INCLUDE_DIR
)/package.mk
29 TARGET_CFLAGS
+= -D_GNU_SOURCE
36 CC
="$(TARGET_CC) $(TARGET_CFLAGS)"
38 define Build
/InstallDev
39 $(INSTALL_DIR
) $(1)/usr
/include
40 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
41 $(INSTALL_DIR
) $(1)/usr
/lib
42 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.
{a
,so
*,la
} $(1)/usr
/lib
/
46 define Package
/dante
/default
48 URL
:=http
://www.inet.no
/dante
/
51 define Package
/dante
/default
/description
52 Dante is a circuit-level firewall
/proxy that can be used to provide convenient
53 and secure network connectivity
, requiring only that the server Dante runs on
54 has external network connectivity. Dante is used daily by Fortune
100 companies
55 and large international organizations
, either
as a standard SOCKS server or
as
59 define Package
/libsocks
60 $(call Package
/dante
/default
)
66 define Package
/libsocks
/description
67 $(call Package
/dante
/default
/description
)
68 This package provides the shared libsocks library.
71 define Package
/libsocks
/install
72 $(INSTALL_DIR
) $(1)/usr
/lib
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsocks.so
* $(1)/usr
/lib
/
78 $(call Package
/dante
/default
)
79 SUBMENU
:=Web Servers
/Proxies
85 define Package
/sockd
/description
86 $(call Package
/dante
/default
/description
)
87 This package provides the Dante sockd daemon.
90 define Package
/sockd
/install
91 $(INSTALL_DIR
) $(1)/usr
/sbin
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/sockd
$(1)/usr
/sbin
/
96 define Package
/socksify
97 $(call Package
/dante
/default
)
100 SUBMENU
:=Web Servers
/Proxies
104 define Package
/socksify
/description
105 $(call Package
/dante
/default
/description
)
106 This package provides the Dante socksify client.
109 define Package
/socksify
/install
110 $(INSTALL_DIR
) $(1)/usr
/bin
111 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/socksify
$(1)/usr
/bin
/
113 $(INSTALL_DIR
) $(1)/usr
/lib
114 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libdsocks.so
* $(1)/usr
/lib
/
118 $(eval
$(call BuildPackage
,libsocks
))
119 $(eval
$(call BuildPackage
,sockd
))
120 $(eval
$(call BuildPackage
,socksify
))