1
0

Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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.17
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://rutschle.net/tech/
  13. PKG_MD5SUM:=1fc3ada4bafaca5a9786cc1431f48ed4
  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. URL:=http://rutschle.net/tech/sslh.shtml
  23. PKG_MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
  24. endef
  25. define Package/sslh/conffiles
  26. /etc/config/sslh
  27. endef
  28. define Build/Compile
  29. $(MAKE) -C $(PKG_BUILD_DIR) \
  30. CC="$(TARGET_CC)" \
  31. CFLAGS="$(TARGET_CFLAGS)" \
  32. LDFLAGS="$(TARGET_LDFLAGS)" \
  33. USELIBCONFIG= \
  34. USELIBWRAP= \
  35. USELIBPCRE= \
  36. all
  37. endef
  38. define Package/sslh/install
  39. $(INSTALL_DIR) $(1)/usr/sbin
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/sslh-fork $(1)/usr/sbin/sslh
  41. $(INSTALL_DIR) $(1)/etc/init.d/
  42. $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
  43. $(INSTALL_DIR) $(1)/etc/config
  44. $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
  45. endef
  46. $(eval $(call BuildPackage,sslh))