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