Root/package/network/utils/dante/Makefile

1#
2# Copyright (C) 2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=dante
11PKG_VERSION:=1.2.2
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.inet.no/dante/files/
16PKG_MD5SUM:=69b9d6234154d7d6a91fcbd98c68e62a
17
18PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
19
20PKG_FIXUP:=autoreconf
21PKG_INSTALL:=1
22
23include $(INCLUDE_DIR)/package.mk
24
25TARGET_CFLAGS += -D_GNU_SOURCE
26CONFIGURE_ARGS += \
27    --without-upnp \
28    --without-pam \
29    --disable-libwrap
30
31define 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/
36endef
37
38
39define Package/dante/default
40  TITLE:=Dante SOCKS
41  URL:=http://www.inet.no/dante/
42endef
43
44define Package/dante/default/description
45Dante is a circuit-level firewall/proxy that can be used to provide convenient
46and secure network connectivity, requiring only that the server Dante runs on
47has external network connectivity. Dante is used daily by Fortune 100 companies
48and large international organizations, either as a standard SOCKS server or as
49a "reverse proxy".
50endef
51
52define Package/libsocks
53  $(call Package/dante/default)
54  SECTION:=libs
55  CATEGORY:=Libraries
56  TITLE+= Library
57endef
58
59define Package/libsocks/description
60$(call Package/dante/default/description)
61This package provides the shared libsocks library.
62endef
63
64define Package/libsocks/install
65    $(INSTALL_DIR) $(1)/usr/lib
66    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsocks.so* $(1)/usr/lib/
67endef
68
69
70define Package/sockd
71  $(call Package/dante/default)
72  SUBMENU:=Web Servers/Proxies
73  SECTION:=net
74  CATEGORY:=Network
75  TITLE+= Daemon
76endef
77
78define Package/sockd/description
79$(call Package/dante/default/description)
80This package provides the Dante sockd daemon.
81endef
82
83define Package/sockd/install
84    $(INSTALL_DIR) $(1)/usr/sbin
85    $(CP) $(PKG_INSTALL_DIR)/usr/sbin/sockd $(1)/usr/sbin/
86endef
87
88
89define Package/socksify
90  $(call Package/dante/default)
91  SECTION:=net
92  CATEGORY:=Network
93  SUBMENU:=Web Servers/Proxies
94  TITLE+= Client
95endef
96
97define Package/socksify/description
98$(call Package/dante/default/description)
99This package provides the Dante socksify client.
100endef
101
102define Package/socksify/install
103    $(INSTALL_DIR) $(1)/usr/bin
104    $(CP) $(PKG_INSTALL_DIR)/usr/bin/socksify $(1)/usr/bin/
105
106    $(INSTALL_DIR) $(1)/usr/lib
107    $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdsocks.so* $(1)/usr/lib/
108endef
109
110
111$(eval $(call BuildPackage,libsocks))
112$(eval $(call BuildPackage,sockd))
113$(eval $(call BuildPackage,socksify))
114

Archive Download this file



interactive