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