You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=sslh
  9. PKG_VERSION:=v1.21c
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://rutschle.net/tech/sslh/
  13. PKG_HASH:=3bfe783726f82c1f5a4be630ddc494ebb08dbb69980662cd7ffdeb7bc9e1e706
  14. PKG_MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/sslh
  19. SECTION:=net
  20. CATEGORY:=Network
  21. SUBMENU:=Routing and Redirection
  22. TITLE:=SSL/SSH multiplexer
  23. DEPENDS:=+libconfig +libcap +USE_UCLIBC:libpcre +USE_MUSL:libpcre
  24. URL:=https://rutschle.net/tech/sslh/README.html
  25. endef
  26. define Package/sslh/conffiles
  27. /etc/config/sslh
  28. /etc/sslh.conf
  29. endef
  30. MAKE_FLAGS += \
  31. USELIBCAP=1 \
  32. $(if $(CONFIG_USE_GLIBC),USELIBPCRE=,USELIBPCRE=1)
  33. define Package/sslh/install
  34. $(INSTALL_DIR) $(1)/usr/sbin
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/sslh-fork $(1)/usr/sbin/sslh
  36. $(INSTALL_DIR) $(1)/etc/init.d/
  37. $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
  38. $(INSTALL_DIR) $(1)/etc/config
  39. $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
  40. $(INSTALL_CONF) $(PKG_BUILD_DIR)/basic.cfg $(1)/etc/sslh.conf
  41. endef
  42. $(eval $(call BuildPackage,sslh))