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.

61 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2009-2017 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.18
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://rutschle.net/tech/sslh/
  13. PKG_MD5SUM:=0e3568d5d234516c634d4df156473298
  14. PKG_LICENSE:=GPL-2.0+
  15. PKG_LICENSE_FILES:=COPYING
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/sslh
  18. SECTION:=net
  19. CATEGORY:=Network
  20. SUBMENU:=Routing and Redirection
  21. TITLE:=SSL/SSH multiplexer
  22. DEPENDS:=+libconfig +USE_UCLIBC:libpcre +USE_MUSL:libpcre
  23. URL:=http://rutschle.net/tech/sslh.shtml
  24. PKG_MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
  25. endef
  26. define Package/sslh/conffiles
  27. /etc/config/sslh
  28. /etc/sslh.conf
  29. endef
  30. define Build/Compile
  31. $(MAKE) -C $(PKG_BUILD_DIR) \
  32. CC="$(TARGET_CC)" \
  33. CFLAGS="$(TARGET_CFLAGS)" \
  34. CPPFLAGS="$(TARGET_CPPFLAGS)" \
  35. LDFLAGS="$(TARGET_LDFLAGS)" \
  36. ENABLE_REGEX=1 \
  37. USELIBCONFIG=1 \
  38. USELIBWRAP= \
  39. USELIBPCRE= \
  40. $(if $(CONFIG_USE_GLIBC),USELIBPCRE=,USELIBPCRE=1)\
  41. all
  42. endef
  43. define Package/sslh/install
  44. $(INSTALL_DIR) $(1)/usr/sbin
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/sslh-fork $(1)/usr/sbin/sslh
  46. $(INSTALL_DIR) $(1)/etc/init.d/
  47. $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
  48. $(INSTALL_DIR) $(1)/etc/config
  49. $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
  50. $(INSTALL_CONF) $(PKG_BUILD_DIR)/basic.cfg $(1)/etc/sslh.conf
  51. endef
  52. $(eval $(call BuildPackage,sslh))