0e9ab069c89d2b53f7f34aa301af0b7c0e11d7c8
[openwrt/staging/yousong.git] / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dante
11 PKG_VERSION:=1.2.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.inet.no/dante/files/
16 PKG_MD5SUM:=69b9d6234154d7d6a91fcbd98c68e62a
17
18 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
19 PKG_LICENSE:=BSD-4-Clause
20
21 PKG_LICENSE:=BSD-3-Clause
22 PKG_LICENSE_FILES:=LICENSE
23
24 PKG_FIXUP:=autoreconf
25 PKG_INSTALL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28
29 TARGET_CFLAGS += -D_GNU_SOURCE
30 CONFIGURE_ARGS += \
31 --without-upnp \
32 --without-pam \
33 --disable-libwrap
34
35 CONFIGURE_VARS += \
36 CC="$(TARGET_CC) $(TARGET_CFLAGS)"
37
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/
43 endef
44
45
46 define Package/dante/default
47 TITLE:=Dante SOCKS
48 URL:=http://www.inet.no/dante/
49 endef
50
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
56 a "reverse proxy".
57 endef
58
59 define Package/libsocks
60 $(call Package/dante/default)
61 SECTION:=libs
62 CATEGORY:=Libraries
63 TITLE+= Library
64 endef
65
66 define Package/libsocks/description
67 $(call Package/dante/default/description)
68 This package provides the shared libsocks library.
69 endef
70
71 define Package/libsocks/install
72 $(INSTALL_DIR) $(1)/usr/lib
73 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsocks.so* $(1)/usr/lib/
74 endef
75
76
77 define Package/sockd
78 $(call Package/dante/default)
79 SUBMENU:=Web Servers/Proxies
80 SECTION:=net
81 CATEGORY:=Network
82 TITLE+= Daemon
83 endef
84
85 define Package/sockd/description
86 $(call Package/dante/default/description)
87 This package provides the Dante sockd daemon.
88 endef
89
90 define Package/sockd/install
91 $(INSTALL_DIR) $(1)/usr/sbin
92 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/sockd $(1)/usr/sbin/
93 endef
94
95
96 define Package/socksify
97 $(call Package/dante/default)
98 SECTION:=net
99 CATEGORY:=Network
100 SUBMENU:=Web Servers/Proxies
101 TITLE+= Client
102 endef
103
104 define Package/socksify/description
105 $(call Package/dante/default/description)
106 This package provides the Dante socksify client.
107 endef
108
109 define Package/socksify/install
110 $(INSTALL_DIR) $(1)/usr/bin
111 $(CP) $(PKG_INSTALL_DIR)/usr/bin/socksify $(1)/usr/bin/
112
113 $(INSTALL_DIR) $(1)/usr/lib
114 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdsocks.so* $(1)/usr/lib/
115 endef
116
117
118 $(eval $(call BuildPackage,libsocks))
119 $(eval $(call BuildPackage,sockd))
120 $(eval $(call BuildPackage,socksify))