From patchwork Mon Mar 13 09:54:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoerst X-Patchwork-Id: 6696 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) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4PZsTf6JBxz3wkG for ; Mon, 13 Mar 2023 09:55:18 +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) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4PZsTc469Mzg3; Mon, 13 Mar 2023 09:55:16 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4PZsTc2cmwz2yjS; Mon, 13 Mar 2023 09:55:16 +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) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4PZsTZ4JSfz2xmx for ; Mon, 13 Mar 2023 09:55:14 +0000 (UTC) Received: from vserver.hoerst.net (vserver.hoerst.net [IPv6:2a03:4000:6:4304:c8a2:c3ff:fe93:ccda]) (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 4PZsTM0Rbkz3B for ; Mon, 13 Mar 2023 09:55:03 +0000 (UTC) Authentication-Results: mail01.ipfire.org; dkim=pass header.d=hoerst.net header.s=ed25519 header.b=dvRfkBhS; dkim=pass header.d=hoerst.net header.s=default header.b=KrJjjJ4M; dkim=pass header.d=hoerst.net header.s=ed25519local header.b=GfHkyRjl; dkim=pass header.d=hoerst.net header.s=local header.b=XvzDxFJE; spf=pass (mail01.ipfire.org: domain of gerd@hoerst.net designates 2a03:4000:6:4304:c8a2:c3ff:fe93:ccda as permitted sender) smtp.mailfrom=gerd@hoerst.net; dmarc=pass (policy=quarantine) header.from=hoerst.net ARC-Seal: i=1; s=202003rsa; d=lists.ipfire.org; t=1678701303; a=rsa-sha256; cv=none; b=PlFEkacvgY6ivU8Wyqa0iSp7NxLx4hFz1uRF90G8S/JFvOX5XdMoWSAGnC7zlUYnwImlCt Et3U+CGYdsob3nTi9d2nXmlf2N+ksOWBI3yfbDD7Y5DOlLRWivEEeIeArr3CHtgdctKY1V EAvSJLjuyiuS+thMDYPlJt7qv7to8wRXRuhp12+6/C4mW/aQNyErQAgCznK5rJdWzO+rzz oxvhwwLaltGnEK83q/F5E0pCQn7z3Tuy46NnUwRYGTi4cllEsrZdmorph271/UhGdjnZ3F 7GKNT3FHkhnuAR2FK6jA8lNIU1b8c+CBxzY1UYx+Jd/X2MA2WWuHp2I++t6xUA== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=hoerst.net header.s=ed25519 header.b=dvRfkBhS; dkim=pass header.d=hoerst.net header.s=default header.b=KrJjjJ4M; dkim=pass header.d=hoerst.net header.s=ed25519local header.b=GfHkyRjl; dkim=pass header.d=hoerst.net header.s=local header.b=XvzDxFJE; spf=pass (mail01.ipfire.org: domain of gerd@hoerst.net designates 2a03:4000:6:4304:c8a2:c3ff:fe93:ccda as permitted sender) smtp.mailfrom=gerd@hoerst.net; dmarc=pass (policy=quarantine) header.from=hoerst.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1678701303; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=5L73xtMufxmt2paTs3sTOe0i3uKtF3/hspnCakZCYWI=; b=EYOZPQxmfYkmfFpbPuQ2+tPYk4mCI9A3TgkJQFotChx1NC4n3kuQ799TCxNKq0FZG/xzi6 dU5YbDRUaYw8PdWIIltUl/8Bgz/dQyDPBXKpJAc+9+K3r8efGtdByqtEKALwc6+7KOYm5d AOzthhhCAfbll30PTiwAjAFCJV8YtonrWHb/VCkMzd+IJJqewzOu1PPYwE4KbIQOtQtmbd PjIluY4EJy8igfx+uBLMlo0mnX9+XAnlK27cyUgYmlBiYzQcG7YzhL3WjbDo7vdj4pJjEQ 1IiscJHxse7vpydDKFQQNSx3ESWJRNAgQ+jp9j851UpuKOdOKqwloqzzS87mAw== Received: from localhost (localhost [127.0.0.1]) by vserver.hoerst.net (Postfix) with ESMTP id E3D631607A5 for ; Mon, 13 Mar 2023 10:54:57 +0100 (CET) Received: from vserver.hoerst.net ([IPv6:::1]) by localhost (vserver.hoerst.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id hHT2gaXu5mlI for ; Mon, 13 Mar 2023 10:54:57 +0100 (CET) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=hoerst.net; i=@hoerst.net; q=dns/txt; s=ed25519; t=1678701297; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : from; bh=5L73xtMufxmt2paTs3sTOe0i3uKtF3/hspnCakZCYWI=; b=dvRfkBhSEiANSreyvb94hdAq3cqGiA2oxue0mdHVcTbpPXYN7G6DCmJBiyikETeaivJqM x2e1h5HewcoVmhPCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hoerst.net; i=@hoerst.net; q=dns/txt; s=default; t=1678701297; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : from; bh=5L73xtMufxmt2paTs3sTOe0i3uKtF3/hspnCakZCYWI=; b=KrJjjJ4M0klUqE4Yz7CgjA/HhTpY7xkmLNjGP/1WCNmyzocNQwho8CDgajsWQ51Z5o5HU hCBPZkV2jfYKkGazEjfNxzXcPDsQnO6ikIzSSEu7eaV5BpyMWJKlTDjB8Lnp0M/9hxHj9Lc SF6bTSyITLSdbzPAnRqCqo7DEw1VlhAR/wP4gf1SBKEHLm5k1yFdrfZtSF7MSFmPYNtV1Gn 0ed2itLOP/1tPT4wStccAvxqoIE5sSIN9w4D3YZzNmGndOPteDlDL6H9cgnXhkMioMEdQIY +kOSjNgR6ByJQVORnUJsdwLek3/5VmGeK6KxR4N4imVWPz+kSAidURa1ceOQ== Received: from smtp.hoerst.net (p579c1320.dip0.t-ipconnect.de [87.156.19.32]) by vserver.hoerst.net (Postfix) with ESMTPSA id 4FCD9160798 for ; Mon, 13 Mar 2023 10:54:57 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by smtp.hoerst.net (Postfix) with ESMTP id AA39D381D7F for ; Mon, 13 Mar 2023 10:54:56 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.hoerst.net Received: from smtp.hoerst.net ([127.0.0.1]) by localhost (mail.hoerst.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u2Mvx3HZXckY; Mon, 13 Mar 2023 10:54:54 +0100 (CET) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=hoerst.net; i=@hoerst.net; q=dns/txt; s=ed25519local; t=1678701294; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : from; bh=5L73xtMufxmt2paTs3sTOe0i3uKtF3/hspnCakZCYWI=; b=GfHkyRjlDWGGFnEXU8X4a4RXNcBrUzqUwAUHmx/lQVAlbqet91/r9O08PasGx73ZsWJo2 KwrHOHNuVEdhJIlAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hoerst.net; i=@hoerst.net; q=dns/txt; s=local; t=1678701294; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : from; bh=5L73xtMufxmt2paTs3sTOe0i3uKtF3/hspnCakZCYWI=; b=XvzDxFJElEJZNiO6iuJdNgd5k89ySKzSvXictlaqJ/9Etsulc2qUw4Qe8L301uFTqvUpN L5WPahU1Cq/ynTt+xR/q09rYgSkqaP1SndU+CTT/J4ESFwTPCVxrix2cBiUIoB+vV6IWLvY rVBx19TNFhif1yuafYHFHSiHv1KujlGwzjQFPZfPBETVP/9jCRTa4SXp6aRzBI/k7vpdqrD S44YYR0tNwRghigBOKomdstrXshgc1dZ1gxyTVb4r6jBb5jlY8eHXN93att3RyX3z51T+xb FXYKg8RKE4g9t/q/Io6/UzpXvTQibchyODz9v/WITntmoUWSyoOrJSSjeMvw== Received: from capricorn.hoerst.net (capricorn.hoerst.net [192.168.63.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.hoerst.net (Postfix) with ESMTPSA id 9244F381971; Mon, 13 Mar 2023 10:54:54 +0100 (CET) From: Gerd Hoerst To: development@lists.ipfire.org Subject: [PATCH] insert addon rsnapshot Date: Mon, 13 Mar 2023 10:54:52 +0100 Message-Id: <20230313095452.847247-1-gerd@hoerst.net> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Rspamd-Queue-Id: 4PZsTM0Rbkz3B X-Spamd-Result: default: False [-1.36 / 11.00]; BAYES_HAM(-3.00)[99.99%]; SPF_REPUTATION_SPAM(2.12)[0.70687969931351]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM(-0.97)[-0.973]; R_MISSING_CHARSET(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[hoerst.net,quarantine]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[hoerst.net:s=ed25519,hoerst.net:s=default,hoerst.net:s=ed25519local,hoerst.net:s=local]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; IP_REPUTATION_HAM(-0.00)[asn: 197540(0.00), country: DE(-0.00), ip: 2a03:4000:6:4304::(0.00)]; PREVIOUSLY_DELIVERED(0.00)[development@lists.ipfire.org]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:197540, ipnet:2a03:4000::/32, country:DE]; DKIM_REPUTATION(0.00)[0]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[hoerst.net:+]; RECEIVED_SPAMHAUS_PBL(0.00)[87.156.19.32:received]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_SEVEN(0.00)[7] X-Rspamd-Action: no action 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: Gerd Hoerst --- config/rootfiles/packages/rsnapshot | 5 ++ lfs/rsnapshot | 88 +++++++++++++++++++++++++++++ make.sh | 1 + src/paks/rsnapshot/install.sh | 27 +++++++++ src/paks/rsnapshot/uninstall.sh | 26 +++++++++ src/paks/rsnapshot/update.sh | 26 +++++++++ 6 files changed, 173 insertions(+) create mode 100644 config/rootfiles/packages/rsnapshot create mode 100644 lfs/rsnapshot create mode 100644 src/paks/rsnapshot/install.sh create mode 100644 src/paks/rsnapshot/uninstall.sh create mode 100644 src/paks/rsnapshot/update.sh diff --git a/config/rootfiles/packages/rsnapshot b/config/rootfiles/packages/rsnapshot new file mode 100644 index 000000000..f9d833b6e --- /dev/null +++ b/config/rootfiles/packages/rsnapshot @@ -0,0 +1,5 @@ +usr/bin/rsnapshot +usr/bin/rsnapshot-diff +etc/rsnapshot.conf.default +#usr/share/man/man1/rsnapshot-diff.1 +#usr/share/man/man1/rsnapshot.1 diff --git a/lfs/rsnapshot b/lfs/rsnapshot new file mode 100644 index 000000000..b5d61bbce --- /dev/null +++ b/lfs/rsnapshot @@ -0,0 +1,88 @@ +############################################################################### +# # +# 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.4.5 + +THISAPP = rsnapshot-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = https://github.com/rsnapshot/rsnapshot/releases/download/1.4.5 +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) +PROG = rsnapshot +PAK_VER = 1 +DEPS = "rsync" +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_BLAKE2 = 2a668aa16991b2b4e611c6204cdcd0e8c9593e5f0af5ea89e787a578e73b6f5987514cd7d0252bb78aea1b157ef85aea947686111ca9e3befdb2a8cef0aa9ecd + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) +b2 : $(subst %,%_BLAKE2,$(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 zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && \ + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc + --mandir=/usr/share/man \ + + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install + +# cp -avf $(DIR_CONF)/rsnapshot/etc/* /etc/ + + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index c083f7fcc..7b9561aba 100755 --- a/make.sh +++ b/make.sh @@ -1506,6 +1506,7 @@ buildipfire() { lfsmake2 libmpeg2 lfsmake2 gnump3d lfsmake2 rsync + lfsmake2 rsnapshot lfsmake2 rpcbind lfsmake2 keyutils lfsmake2 nfs diff --git a/src/paks/rsnapshot/install.sh b/src/paks/rsnapshot/install.sh new file mode 100644 index 000000000..9aafb0d56 --- /dev/null +++ b/src/paks/rsnapshot/install.sh @@ -0,0 +1,27 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire 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 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire 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 IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team . # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh + +extract_files +restore_backup ${NAME} diff --git a/src/paks/rsnapshot/uninstall.sh b/src/paks/rsnapshot/uninstall.sh new file mode 100644 index 000000000..66f4344eb --- /dev/null +++ b/src/paks/rsnapshot/uninstall.sh @@ -0,0 +1,26 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire 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 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire 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 IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team . # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +make_backup ${NAME} +remove_files diff --git a/src/paks/rsnapshot/update.sh b/src/paks/rsnapshot/update.sh new file mode 100644 index 000000000..89c40d0d7 --- /dev/null +++ b/src/paks/rsnapshot/update.sh @@ -0,0 +1,26 @@ +#!/bin/bash +############################################################################ +# # +# This file is part of the IPFire Firewall. # +# # +# IPFire 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 2 of the License, or # +# (at your option) any later version. # +# # +# IPFire 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 IPFire; if not, write to the Free Software # +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # +# # +# Copyright (C) 2007 IPFire-Team . # +# # +############################################################################ +# +. /opt/pakfire/lib/functions.sh +./uninstall.sh +./install.sh