2 # Copyright (C) 2009-2018 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://rutschle.net
/tech
/sslh
/
16 PKG_HASH
:=8e3742d14edf4119350cfdc7bb96b89134d9218eb6d2a6e1f70891ca18a649b1
18 PKG_MAINTAINER
:=Jonathan McCrohan
<jmccrohan@gmail.com
>
19 PKG_LICENSE
:=GPL-2.0
-or-later
20 PKG_LICENSE_FILES
:=COPYING
22 include $(INCLUDE_DIR
)/package.mk
27 SUBMENU
:=Routing and Redirection
28 TITLE
:=SSL
/SSH multiplexer
29 DEPENDS
:=+libconfig
+libcap
+libpcre2
30 URL
:=https
://rutschle.net
/tech
/sslh
/README.html
33 define Package
/sslh
/config
35 bool
"Use sslh-select"
36 depends on PACKAGE_sslh
38 Use sslh-select instead of sslh-fork.
42 define Package
/sslh
/conffiles
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
55 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/sslh-fork
$(1)/usr
/sbin
/sslh
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
64 $(eval
$(call BuildPackage
,sslh
))