From 834e74f9c633ec9e342190e52e0ab4a981a86514 Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 5 Jul 2021 13:54:19 +0100 Subject: [PATCH] sslsplit: Add source Submodule src is linked to upstream branch 'develop'. --- .gitmodules | 8 +++++++ net/sslsplit/Makefile | 53 +++++++++++++++++++++++++++++++++++++++++++ net/sslsplit/src | 1 + 3 files changed, 62 insertions(+) create mode 100644 .gitmodules create mode 100644 net/sslsplit/Makefile create mode 160000 net/sslsplit/src diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..6be09e8 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,8 @@ +[submodule "net/sslsplit/sslsplit"] + path = net/sslsplit/sslsplit + url = git@github.com:droe/sslsplit.git + branch = develop +[submodule "net/sslsplit/src"] + path = net/sslsplit/src + url = git@github.com:droe/sslsplit.git + branch = develop diff --git a/net/sslsplit/Makefile b/net/sslsplit/Makefile new file mode 100644 index 0000000..26b266f --- /dev/null +++ b/net/sslsplit/Makefile @@ -0,0 +1,53 @@ +# +# Copyright (C) 2016-2018 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=sslsplit +PKG_VERSION:=0.5.5-tls13 +PKG_RELEASE:=1 +PKG_LICENSE:=BSD-2-Clause +PKG_LICENSE_FILES:=LICENSE LICENSE.contrib LICENSE.third + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) + +PKG_INSTALL:=1 + +# Thanks to Adde88 (github.com/adde88) +PKG_MAINTAINER:=Andreas Nilsen + +include $(INCLUDE_DIR)/package.mk + +define Package/sslsplit + SECTION:=net + CATEGORY:=Network + DEPENDS:=+libevent2 +libopenssl +libevent2-openssl +libevent2-pthreads +libnet-1.2.x +libpcap +USE_MUSL:musl-fts + TITLE:=Transparent SSL/TLS interception + URL:=https://www.roe.ch/SSLsplit +endef + +define Package/sslsplit/description + Transparent SSL/TLS interception +endef + +MAKE_FLAGS += prefix=/usr \ + OSNAME=Linux + +define Build/Prepare + mkdir -p $(PKG_BUILD_DIR) + $(CP) -rf ./src/* $(PKG_BUILD_DIR)/ +endef + +define Package/sslsplit/install + $(INSTALL_DIR) $(1)/bin + $(INSTALL_DIR) $(1)/etc/sslsplit + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/sslsplit $(1)/bin/ + $(INSTALL_CONF) $(PKG_INSTALL_DIR)/usr/local/etc/sslsplit/sslsplit.conf.sample $(1)/etc/sslsplit/ +endef + +$(eval $(call BuildPackage,sslsplit)) diff --git a/net/sslsplit/src b/net/sslsplit/src new file mode 160000 index 0000000..dcce1ab --- /dev/null +++ b/net/sslsplit/src @@ -0,0 +1 @@ +Subproject commit dcce1abea1eea3d74d3c8cae3f426c9373f6189e