aed28999b7b32b0a8882dde74e07df07d9711bae
[10.03/packages.git] / net / sslh / Makefile
1
2 # Copyright (C) 2009-2010 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.7a
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://rutschle.net/tech/
16 PKG_MD5SUM:=ee124654412198a5e11fe28acf10634d
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/sslh
21   SECTION:=net
22   CATEGORY:=Network
23   TITLE:=SSL/SSH multiplexer
24   URL:=http://rutschle.net/tech/sslh.shtml
25 endef
26
27 define Build/Compile
28         $(MAKE) -C $(PKG_BUILD_DIR) \
29                 CC="$(TARGET_CC)" \
30                 CFLAGS="$(TARGET_CFLAGS)" \
31                 USELIBWRAP= \
32                 all
33 endef
34
35 define Package/sslh/install
36         $(INSTALL_DIR) $(1)/usr/sbin
37         $(INSTALL_BIN) $(PKG_BUILD_DIR)/sslh $(1)/usr/sbin/
38         $(INSTALL_DIR) $(1)/etc/init.d/
39         $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
40         $(INSTALL_DIR) $(1)/etc/config
41         $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
42 endef
43
44 $(eval $(call BuildPackage,sslh))