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