treewide: remove AUTORELEASE
[feed/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.4.3
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.inet.no/dante/files/
16 PKG_HASH:=418a065fe1a4b8ace8fbf77c2da269a98f376e7115902e76cda7e741e4846a5d
17
18 PKG_MAINTAINER:=David Yang <mmyangfl@gmail.com>
19 PKG_LICENSE:=BSD-4-Clause
20
21 PKG_FIXUP:=autoreconf
22 PKG_INSTALL:=1
23 PKG_BUILD_PARALLEL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 CONFIGURE_ARGS += \
28 --without-upnp \
29 --without-pam \
30 --disable-libwrap
31
32 CONFIGURE_VARS += \
33 ac_cv_search_pam_start="" \
34 ac_cv_func_sched_setscheduler=no
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 ABI_VERSION:=0
63 endef
64
65 define Package/libsocks/description
66 $(call Package/dante/default/description)
67 This package provides the shared libsocks library.
68 endef
69
70 define Package/libsocks/install
71 $(INSTALL_DIR) $(1)/usr/lib
72 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsocks.so.* $(1)/usr/lib/
73 endef
74
75
76 define Package/sockd
77 $(call Package/dante/default)
78 SUBMENU:=Web Servers/Proxies
79 SECTION:=net
80 CATEGORY:=Network
81 TITLE+= Daemon
82 endef
83
84 define Package/sockd/description
85 $(call Package/dante/default/description)
86 This package provides the Dante sockd daemon.
87 endef
88
89 define Package/sockd/conffiles
90 /etc/sockd.conf
91 endef
92
93 define Package/sockd/install
94 $(INSTALL_DIR) $(1)/usr/sbin
95 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/sockd $(1)/usr/sbin/
96
97 $(INSTALL_DIR) $(1)/etc
98 $(CP) $(PKG_BUILD_DIR)/example/sockd.conf $(1)/etc/
99
100 $(INSTALL_DIR) $(1)/etc/init.d
101 $(INSTALL_BIN) ./files/sockd.init $(1)/etc/init.d/sockd
102 endef
103
104
105 define Package/socksify
106 $(call Package/dante/default)
107 SECTION:=net
108 CATEGORY:=Network
109 SUBMENU:=Web Servers/Proxies
110 TITLE+= Client
111 endef
112
113 define Package/socksify/description
114 $(call Package/dante/default/description)
115 This package provides the Dante socksify client.
116 endef
117
118 define Package/socksify/conffiles
119 /etc/socks.conf
120 endef
121
122 define Package/socksify/install
123 $(INSTALL_DIR) $(1)/usr/bin
124 $(CP) $(PKG_INSTALL_DIR)/usr/bin/socksify $(1)/usr/bin/
125
126 $(INSTALL_DIR) $(1)/usr/lib
127 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdsocks.so* $(1)/usr/lib/
128
129 $(INSTALL_DIR) $(1)/etc
130 $(CP) $(PKG_BUILD_DIR)/example/socks.conf $(1)/etc/
131 endef
132
133
134 $(eval $(call BuildPackage,libsocks))
135 $(eval $(call BuildPackage,sockd))
136 $(eval $(call BuildPackage,socksify))