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