libnpupnp: update to 5.1.1
[feed/packages.git] / net / sslh / Makefile
1 #
2 # Copyright (C) 2009-2018 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:=v1.22c
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://rutschle.net/tech/sslh/
16 PKG_HASH:=8e3742d14edf4119350cfdc7bb96b89134d9218eb6d2a6e1f70891ca18a649b1
17
18 PKG_MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
19 PKG_LICENSE:=GPL-2.0-or-later
20 PKG_LICENSE_FILES:=COPYING
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/sslh
25 SECTION:=net
26 CATEGORY:=Network
27 SUBMENU:=Routing and Redirection
28 TITLE:=SSL/SSH multiplexer
29 DEPENDS:=+libconfig +libcap +libpcre2
30 URL:=https://rutschle.net/tech/sslh/README.html
31 endef
32
33 define Package/sslh/config
34 config SSLH_SELECT
35 bool "Use sslh-select"
36 depends on PACKAGE_sslh
37 help
38 Use sslh-select instead of sslh-fork.
39 default n
40 endef
41
42 define Package/sslh/conffiles
43 /etc/config/sslh
44 /etc/sslh.conf
45 endef
46
47 MAKE_FLAGS += \
48 USELIBCAP=1
49
50 define Package/sslh/install
51 $(INSTALL_DIR) $(1)/usr/sbin
52 ifeq ($(CONFIG_SSLH_SELECT),y)
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sslh-select $(1)/usr/sbin/sslh
54 else
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sslh-fork $(1)/usr/sbin/sslh
56 endif
57 $(INSTALL_DIR) $(1)/etc/init.d/
58 $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
59 $(INSTALL_DIR) $(1)/etc/config
60 $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
61 $(INSTALL_CONF) $(PKG_BUILD_DIR)/basic.cfg $(1)/etc/sslh.conf
62 endef
63
64 $(eval $(call BuildPackage,sslh))