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.

51 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2009-2014 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.16
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://rutschle.net/tech/
  13. PKG_MD5SUM:=c6e7d1cb0adb15f6efe480e36d98c560
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/sslh
  16. SECTION:=net
  17. CATEGORY:=Network
  18. SUBMENU:=Routing and Redirection
  19. TITLE:=SSL/SSH multiplexer
  20. URL:=http://rutschle.net/tech/sslh.shtml
  21. MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
  22. endef
  23. define Package/sslh/conffiles
  24. /etc/config/sslh
  25. endef
  26. define Build/Compile
  27. $(MAKE) -C $(PKG_BUILD_DIR) \
  28. CC="$(TARGET_CC)" \
  29. CFLAGS="$(TARGET_CFLAGS)" \
  30. USELIBCONFIG= \
  31. USELIBWRAP= \
  32. all
  33. endef
  34. define Package/sslh/install
  35. $(INSTALL_DIR) $(1)/usr/sbin
  36. $(INSTALL_BIN) $(PKG_BUILD_DIR)/sslh-fork $(1)/usr/sbin/sslh
  37. $(INSTALL_DIR) $(1)/etc/init.d/
  38. $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
  39. $(INSTALL_DIR) $(1)/etc/config
  40. $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
  41. endef
  42. $(eval $(call BuildPackage,sslh))