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