2014-06-16 00:16:30 +00:00
|
|
|
#
|
2018-02-10 13:15:01 +00:00
|
|
|
# Copyright (C) 2009-2018 OpenWrt.org
|
2014-06-16 00:16:30 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=sslh
|
2022-03-29 06:51:38 +00:00
|
|
|
PKG_VERSION:=v1.22c
|
2020-08-28 00:14:51 +00:00
|
|
|
PKG_RELEASE:=1
|
2014-06-16 00:16:30 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2018-02-18 20:08:10 +00:00
|
|
|
PKG_SOURCE_URL:=https://rutschle.net/tech/sslh/
|
2022-03-29 06:51:38 +00:00
|
|
|
PKG_HASH:=8e3742d14edf4119350cfdc7bb96b89134d9218eb6d2a6e1f70891ca18a649b1
|
2020-02-15 00:58:29 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
|
2019-09-02 13:15:08 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
2014-08-13 23:55:38 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2014-06-16 00:16:30 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/sslh
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
SUBMENU:=Routing and Redirection
|
|
|
|
TITLE:=SSL/SSH multiplexer
|
2022-03-29 06:51:38 +00:00
|
|
|
DEPENDS:=+libconfig +libcap +libpcre2
|
2018-02-10 13:15:01 +00:00
|
|
|
URL:=https://rutschle.net/tech/sslh/README.html
|
2014-06-16 00:16:30 +00:00
|
|
|
endef
|
|
|
|
|
2022-08-16 19:29:57 +00:00
|
|
|
define Package/sslh/config
|
|
|
|
config SSLH_SELECT
|
|
|
|
bool "Use sslh-select"
|
|
|
|
depends on PACKAGE_sslh
|
|
|
|
help
|
|
|
|
Use sslh-select instead of sslh-fork.
|
|
|
|
default n
|
|
|
|
endef
|
|
|
|
|
2014-06-16 00:16:30 +00:00
|
|
|
define Package/sslh/conffiles
|
|
|
|
/etc/config/sslh
|
2017-03-31 18:33:24 +00:00
|
|
|
/etc/sslh.conf
|
2014-06-16 00:16:30 +00:00
|
|
|
endef
|
|
|
|
|
2017-10-21 21:12:39 +00:00
|
|
|
MAKE_FLAGS += \
|
2022-03-29 06:51:38 +00:00
|
|
|
USELIBCAP=1
|
2014-06-16 00:16:30 +00:00
|
|
|
|
|
|
|
define Package/sslh/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2022-08-16 19:29:57 +00:00
|
|
|
ifeq ($(CONFIG_SSLH_SELECT),y)
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/sslh-select $(1)/usr/sbin/sslh
|
|
|
|
else
|
2014-06-16 00:16:30 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/sslh-fork $(1)/usr/sbin/sslh
|
2022-08-16 19:29:57 +00:00
|
|
|
endif
|
2014-06-16 00:16:30 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
|
|
$(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
|
2017-03-31 18:33:24 +00:00
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/basic.cfg $(1)/etc/sslh.conf
|
2014-06-16 00:16:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,sslh))
|