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
|
2020-02-15 00:58:29 +00:00
|
|
|
PKG_VERSION:=v1.20
|
2020-05-24 15:44:25 +00:00
|
|
|
PKG_RELEASE:=2
|
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/
|
2020-02-15 00:58:29 +00:00
|
|
|
PKG_HASH:=a7f49b0a1cfcb7bb9d97f5ffa932bff11c5f65d9a9bd8fe1812481dee5855116
|
|
|
|
|
|
|
|
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
|
2017-03-31 18:33:24 +00:00
|
|
|
DEPENDS:=+libconfig +USE_UCLIBC:libpcre +USE_MUSL:libpcre
|
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
|
|
|
|
|
|
|
|
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 += \
|
|
|
|
$(if $(CONFIG_USE_GLIBC),USELIBPCRE=,USELIBPCRE=1)
|
2014-06-16 00:16:30 +00:00
|
|
|
|
|
|
|
define Package/sslh/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/sslh-fork $(1)/usr/sbin/sslh
|
|
|
|
$(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))
|