[packages/openvpn] fix changing ipv6 settings with busybox's ifconfig
[openwrt/svn-archive/archive.git] / net / sslh / Makefile
1 #
2 # Copyright (C) 2009-2012 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:=sslh
11 PKG_VERSION:=1.10
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://rutschle.net/tech/
16 PKG_MD5SUM:=bc34e9a4770d634633e70589c72708cc
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/sslh
21 SECTION:=net
22 CATEGORY:=Network
23 SUBMENU:=Routing and Redirection
24 TITLE:=SSL/SSH multiplexer
25 URL:=http://rutschle.net/tech/sslh.shtml
26 MAINTAINER:=Matthias Buecher <mail@maddes.net>
27 endef
28
29 define Package/sslh/conffiles
30 /etc/config/sslh
31 endef
32
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR) \
35 CC="$(TARGET_CC)" \
36 CFLAGS="$(TARGET_CFLAGS)" \
37 USELIBWRAP= \
38 all
39 endef
40
41 define Package/sslh/install
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sslh-fork $(1)/usr/sbin/sslh
44 $(INSTALL_DIR) $(1)/etc/init.d/
45 $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
46 $(INSTALL_DIR) $(1)/etc/config
47 $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
48 endef
49
50 $(eval $(call BuildPackage,sslh))