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