[net] Web Servers/Proxies: Move all web servers, proxies, and related programs into...
[openwrt/svn-archive/archive.git] / net / 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_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Build/InstallDev
24 $(INSTALL_DIR) $(1)/usr/include
25 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
26 $(INSTALL_DIR) $(1)/usr/lib
27 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*,la} $(1)/usr/lib/
28 endef
29
30
31 define Package/dante/default
32 TITLE:=Dante SOCKS
33 URL:=http://www.inet.no/dante/
34 endef
35
36 define Package/dante/default/description
37 Dante is a circuit-level firewall/proxy that can be used to provide convenient
38 and secure network connectivity, requiring only that the server Dante runs on
39 has external network connectivity. Dante is used daily by Fortune 100 companies
40 and large international organizations, either as a standard SOCKS server or as
41 a "reverse proxy".
42 endef
43
44 define Package/libsocks
45 $(call Package/dante/default)
46 SECTION:=libs
47 CATEGORY:=Libraries
48 TITLE+= Library
49 endef
50
51 define Package/libsocks/description
52 $(call Package/dante/default/description)
53 This package provides the shared libsocks library.
54 endef
55
56 define Package/libsocks/install
57 $(INSTALL_DIR) $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsocks.so* $(1)/usr/lib/
59 endef
60
61
62 define Package/sockd
63 $(call Package/dante/default)
64 SUBMENU:=Web Servers/Proxies
65 SECTION:=net
66 CATEGORY:=Network
67 TITLE+= Daemon
68 endef
69
70 define Package/sockd/description
71 $(call Package/dante/default/description)
72 This package provides the Dante sockd daemon.
73 endef
74
75 define Package/sockd/install
76 $(INSTALL_DIR) $(1)/usr/sbin
77 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/sockd $(1)/usr/sbin/
78 endef
79
80
81 define Package/socksify
82 $(call Package/dante/default)
83 SECTION:=net
84 CATEGORY:=Network
85 SUBMENU:=Web Servers/Proxies
86 TITLE+= Client
87 endef
88
89 define Package/socksify/description
90 $(call Package/dante/default/description)
91 This package provides the Dante socksify client.
92 endef
93
94 define Package/socksify/install
95 $(INSTALL_DIR) $(1)/usr/bin
96 $(CP) $(PKG_INSTALL_DIR)/usr/bin/socksify $(1)/usr/bin/
97
98 $(INSTALL_DIR) $(1)/usr/lib
99 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdsocks.so* $(1)/usr/lib/
100 endef
101
102
103 $(eval $(call BuildPackage,libsocks))
104 $(eval $(call BuildPackage,sockd))
105 $(eval $(call BuildPackage,socksify))