2014-06-16 00:16:30 +00:00
|
|
|
#
|
2014-06-17 21:12:38 +00:00
|
|
|
# Copyright (C) 2009-2014 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
|
2015-03-15 18:15:18 +00:00
|
|
|
PKG_VERSION:=v1.17
|
2015-07-21 20:46:25 +00:00
|
|
|
PKG_RELEASE:=2
|
2014-06-16 00:16:30 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://rutschle.net/tech/
|
2015-03-15 18:15:18 +00:00
|
|
|
PKG_MD5SUM:=1fc3ada4bafaca5a9786cc1431f48ed4
|
2014-08-13 23:55:38 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0+
|
|
|
|
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
|
|
|
|
URL:=http://rutschle.net/tech/sslh.shtml
|
2014-08-13 23:39:20 +00:00
|
|
|
PKG_MAINTAINER:=Jonathan McCrohan <jmccrohan@gmail.com>
|
2014-06-16 00:16:30 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/sslh/conffiles
|
|
|
|
/etc/config/sslh
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2015-12-06 13:50:28 +00:00
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
2014-06-16 00:16:30 +00:00
|
|
|
USELIBCONFIG= \
|
|
|
|
USELIBWRAP= \
|
2015-07-10 22:22:17 +00:00
|
|
|
USELIBPCRE= \
|
2014-06-16 00:16:30 +00:00
|
|
|
all
|
|
|
|
endef
|
|
|
|
|
|
|
|
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)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,sslh))
|