[package] sslh move to submenu Routing and Redirection, mark config files
[openwrt/svn-archive/archive.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:=2
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 SUBMENU:=Routing and Redirection
24 TITLE:=SSL/SSH multiplexer
25 URL:=http://rutschle.net/tech/sslh.shtml
26 endef
27
28 define Package/sslh/conffiles
29 /etc/config/sslh
30 endef
31
32 define Build/Compile
33 $(MAKE) -C $(PKG_BUILD_DIR) \
34 CC="$(TARGET_CC)" \
35 CFLAGS="$(TARGET_CFLAGS)" \
36 USELIBWRAP= \
37 all
38 endef
39
40 define Package/sslh/install
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sslh $(1)/usr/sbin/
43 $(INSTALL_DIR) $(1)/etc/init.d/
44 $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
45 $(INSTALL_DIR) $(1)/etc/config
46 $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
47 endef
48
49 $(eval $(call BuildPackage,sslh))