From patchwork Thu Jul 30 22:22:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: smooky X-Patchwork-Id: 3287 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4BHlKN5sf6z3wdN for ; Thu, 30 Jul 2020 22:22:48 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4BHlKM1vnNzSD; Thu, 30 Jul 2020 22:22:47 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4BHlKM0bhSz2xrL; Thu, 30 Jul 2020 22:22:47 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4BHlKK5Q2nz2xZx for ; Thu, 30 Jul 2020 22:22:45 +0000 (UTC) Received: from malta2912.startdedicated.de (malta2912.startdedicated.de [85.93.91.151]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPS id 4BHlKD32XLzSD for ; Thu, 30 Jul 2020 22:22:40 +0000 (UTC) Received: from router.home.v16.de (unknown [31.16.178.110]) (Authenticated sender: smooky.v16) by malta2912.startdedicated.de (Postfix) with ESMTPA id A5670EC192E; Fri, 31 Jul 2020 00:22:32 +0200 (CEST) From: smooky@v16.de To: development@lists.ipfire.org Subject: [PATCH] First Patch from me. Hope this Ok so. Socat, filan and procan. Date: Fri, 31 Jul 2020 00:22:11 +0200 Message-Id: <20200730222211.32082-1-smooky@v16.de> X-Mailer: git-send-email 2.12.2 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1596147760; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=n1CZJ+4ggqwdMwzGKWxqecanuVOayPesYHXKqZKJizs=; b=H2EWViXUCGG+ody818WJdfscyRPw7r1PJ3gU8bKp8vwifr3SexXceNAsvIV7Wxu137uUby CZE9DIk3oq/JfKvt3NgeTLaB5AbZSsHQEy5uc2OOmuOsFxbi9YTPdvL+XKDDgPW5vGcgsJ 7p6FwyLX+P36XE03LENFnsihhG9JvLds1czK3GpgMnarFWHVWD/VsYW+Z1DLchJhtQLYiC S3dYLcrGTOmu0ficFydOC2OWHR4i55N5xc3M3p6MYDam8mw6WTHbDbpas5mX5s+HnFeOSV PYJR4WsnQQ4mPCMH7EY4STZTffDL0vMdIdus4xwRrhZe3pbcO+7dwHYutHwolA== ARC-Seal: i=1; s=202003rsa; d=lists.ipfire.org; t=1596147760; a=rsa-sha256; cv=none; b=RY/+Fg2CUSK21P8OqxZ9kVdIN+lYJSWngPOh5jbi6aP0AXJmCDkBy3PZJCchuu+vAB5cGy Ckx2EsLqpNMuEo2mqzyeiFq6dDlo31OUs60hCvtZmI1GoOrwlT7DmZ3qdfD52E5NP5F6aO rTvFiz4hG/yDH2M+duXo15DfX0xLP59/zI+Cf4aH4C2HA3xMIRny9wlDMJl8R1d8BIyGJU eTtqz9sJaGj1nPoHHkHPfzbinqUMbfATchIeJbRt3LCLkY6Di9mrbud1c/zT7d8QN7/DWh k3cN71yEdRXfTmTx1Aha8LOSSq/jqzvg04lvGVuI4evRg1G8ZNJPcMMm0IKIQQ== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=none; spf=none (mail01.ipfire.org: domain of smooky@v16.de has no SPF policy when checking 85.93.91.151) smtp.mailfrom=smooky@v16.de Authentication-Results: mail01.ipfire.org; dkim=none; dmarc=none; spf=none (mail01.ipfire.org: domain of smooky@v16.de has no SPF policy when checking 85.93.91.151) smtp.mailfrom=smooky@v16.de X-Rspamd-Queue-Id: 4BHlKD32XLzSD X-Spamd-Result: default: False [-2.01 / 11.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; IP_REPUTATION_HAM(-0.00)[asn: 8972(0.00), country: DE(-0.00), ip: 85.93.91.151(0.00)]; MIME_GOOD(-0.10)[text/plain]; ARC_SIGNED(0.00)[i=1]; DMARC_NA(0.00)[v16.de]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_NO_DN(0.00)[]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM(-0.91)[-0.912]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8972, ipnet:85.93.91.0/24, country:DE]; RCVD_COUNT_TWO(0.00)[2]; BAYES_HAM(-2.99)[99.95%]; RECEIVED_SPAMHAUS_PBL(0.00)[31.16.178.110:received] X-Rspamd-Server: mail01.haj.ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Marcel Follert (Smooky) Reviewed-by: Michael Tremer Reviewed-by: Michael Tremer --- config/rootfiles/packages/socat | 4 ++ lfs/socat | 85 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 config/rootfiles/packages/socat create mode 100644 lfs/socat diff --git a/config/rootfiles/packages/socat b/config/rootfiles/packages/socat new file mode 100644 index 000000000..6a984e892 --- /dev/null +++ b/config/rootfiles/packages/socat @@ -0,0 +1,4 @@ +usr/bin/filan +usr/bin/procan +usr/bin/socat +#usr/share/man/man1/socat.1 diff --git a/lfs/socat b/lfs/socat new file mode 100644 index 000000000..6c3ffd5c1 --- /dev/null +++ b/lfs/socat @@ -0,0 +1,85 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2020 IPFire Team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +############################################################################### + + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 1.7.3.4 + +THISAPP = socat-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = socat +PAK_VER = 1 + +DEPS = + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = c9e71d0136c88a01d6fd30a13a3936ed + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +dist: + @$(PAK) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xzf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && ./configure --prefix=/usr + cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) + cd $(DIR_APP) && make install + @rm -rf $(DIR_APP) + @$(POSTBUILD)