From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1646076-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 305CE15802E
	for <garchives@archives.gentoo.org>; Sun, 23 Jun 2024 19:49:39 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 7D1DFE2B81;
	Sun, 23 Jun 2024 19:49:37 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 5650EE2B81
	for <gentoo-commits@lists.gentoo.org>; Sun, 23 Jun 2024 19:49:37 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 6C2F5342F94
	for <gentoo-commits@lists.gentoo.org>; Sun, 23 Jun 2024 19:49:36 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id BA2551D4F
	for <gentoo-commits@lists.gentoo.org>; Sun, 23 Jun 2024 19:49:33 +0000 (UTC)
From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" <conikost@gentoo.org>
Message-ID: <1719172083.4aad9317c1449a9a5e4b94cd021d66b02c5af3bd.conikost@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/fsvs/, app-admin/fsvs/files/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-admin/fsvs/Manifest app-admin/fsvs/files/fsvs-1.2.12-makefile.patch app-admin/fsvs/fsvs-1.2.12.ebuild
X-VCS-Directories: app-admin/fsvs/files/ app-admin/fsvs/
X-VCS-Committer: conikost
X-VCS-Committer-Name: Conrad Kostecki
X-VCS-Revision: 4aad9317c1449a9a5e4b94cd021d66b02c5af3bd
X-VCS-Branch: master
Date: Sun, 23 Jun 2024 19:49:33 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: a35a31c1-c9ba-4e3b-8c2d-ed9a249558ca
X-Archives-Hash: d6b54fd787a37c9829702a121a3e0f8b

commit:     4aad9317c1449a9a5e4b94cd021d66b02c5af3bd
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Sat Jun  1 09:14:20 2024 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Sun Jun 23 19:48:03 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4aad9317

app-admin/fsvs: add 1.2.12

Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/36942
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 app-admin/fsvs/Manifest                         |  1 +
 app-admin/fsvs/files/fsvs-1.2.12-makefile.patch | 68 +++++++++++++++++++++++++
 app-admin/fsvs/fsvs-1.2.12.ebuild               | 55 ++++++++++++++++++++
 3 files changed, 124 insertions(+)

diff --git a/app-admin/fsvs/Manifest b/app-admin/fsvs/Manifest
index a72a447762d0..d9fc74121773 100644
--- a/app-admin/fsvs/Manifest
+++ b/app-admin/fsvs/Manifest
@@ -1 +1,2 @@
 DIST fsvs-1.2.11.tar.gz 498514 BLAKE2B 8683fe3c22a0ea0d4762d631e520596dc02d69059f4ff5d8719bd44405134e5b5100c594a260d1b55a9dd7c6d240a84a0c5e05a18006a7a5f193ce76178d934c SHA512 72f883dfef85cb8aeb4d3baf3a2de5bfb6b5479273027f86b52edfdd2ea6dac4b2271b83a9879add3d7c9008f80a2fef13671b9e5ed61958c72ff144d9fad086
+DIST fsvs-1.2.12.tar.gz 526284 BLAKE2B db0a9f7cd60db7544ca44e4404c2ca844e035a8bb6db61d1880b19b26114f5c1c545b7d74e2e407d4a5961225d700851aaa95f3a6e395a5d9e92d21ade9ba0be SHA512 a06e6d6de242dfe117d3e2b1f18d117b77350ed2d398370d198110fc074dd352bac956acc2870586477cc6d2db404fefc5a5bcca3884cdd1477020f4297c1a81

diff --git a/app-admin/fsvs/files/fsvs-1.2.12-makefile.patch b/app-admin/fsvs/files/fsvs-1.2.12-makefile.patch
new file mode 100644
index 000000000000..ff4969d58146
--- /dev/null
+++ b/app-admin/fsvs/files/fsvs-1.2.12-makefile.patch
@@ -0,0 +1,68 @@
+--- a/Makefile
++++ b/Makefile
+@@ -13,7 +13,7 @@
+ 	@echo ''
+ 	@false
+ 
+-configure:	configure.in
++configure:	configure.ac
+ 	@echo Generating configure.
+ 	autoconf
+ 
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -11,10 +11,11 @@
+ ################################ Definitions ################################
+ DIR	:= /usr/share/doc
+ 
+-VERSION	:= $(shell git describe --tags --always)
++VERSION	:= 1.2.12
+ 
++CC		:= @CC@
+ CFLAGS	:= @CFLAGS@
+-CFLAGS	+= -Wall -funsigned-char -Os -DFSVS_VERSION='"$(VERSION)"'  -Wno-deprecated-declarations
++CFLAGS	+= -Wall -funsigned-char -DFSVS_VERSION='"$(VERSION)"'  -Wno-deprecated-declarations
+ LDFLAGS	:= @LDFLAGS@
+ FSVS_LDFLAGS = $(LDFLAGS)
+ BASELIBS := -lsvn_subr-1 -lsvn_delta-1 -lsvn_ra-1 -lpcre2-8 -lgdbm -ldl
+@@ -48,11 +49,7 @@
+ 
+ 
+ ################################ Targets ###################################
+-ifeq (@CHROOTER_JAIL@, )
+-all:	deps tags check-version check-dox $(DEST) lsDEST
+-else
+-all:	tools/fsvs-chrooter
+-endif
++all:	fsvs
+ 
+ 
+ check-version: config.h fsvs.c
+@@ -145,18 +142,11 @@
+ 
+ 
+ ################################ Rules ######################################
+-%.o:	%.c
+-	@echo "     CC $<"
+-	@$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
+ 
+ # if the Makefile has changed, the output will (at least sometimes)
+ # change, too.
+ $(DEST): $(C_FILES:%.c=%.o)
+-	@echo "     Link $@"
+-	@$(CC) $(FSVS_LDFLAGS) $(LDLIBS) $(LIBS) -o $@ $^ $(BASELIBS) $(EXTRALIBS) 
+-ifeq (@ENABLE_RELEASE@, 1)
+-	-strip $@
+-endif
++	$(CC) $(FSVS_LDFLAGS) $(LDLIBS) $(LIBS) -o $@ $^ $(BASELIBS) $(EXTRALIBS) 
+ 
+ 
+ # For debugging: generate preprocessed, generate assembler
+@@ -171,7 +161,6 @@
+ .%.d:	%.c
+ 	@echo "     deps for $<"
+ 	@$(CC) $(CPPFLAGS) $(CFLAGS) -MM $< | perl -pe 's#\bdoc.g-c\b##' > $@
+-include $(D_FILES)
+ 
+ tools/fsvs-chrooter: tools/fsvs-chrooter.c
+ tools/fsvs-chrooter: interface.h config.h

diff --git a/app-admin/fsvs/fsvs-1.2.12.ebuild b/app-admin/fsvs/fsvs-1.2.12.ebuild
new file mode 100644
index 000000000000..c136006d7b06
--- /dev/null
+++ b/app-admin/fsvs/fsvs-1.2.12.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="Backup/restore for subversion backends"
+HOMEPAGE="https://github.com/phmarek/fsvs"
+SRC_URI="https://github.com/phmarek/fsvs/archive/refs/tags/${P}.tar.gz"
+S="${WORKDIR}/fsvs-${P}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+	dev-libs/apr-util
+	dev-libs/libpcre
+	dev-util/ctags
+	dev-vcs/subversion
+	sys-libs/db:*
+	sys-libs/gdbm"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
+
+src_prepare() {
+	default
+	eautoreconf
+}
+
+src_install() {
+	dobin src/fsvs
+	dodir /etc/fsvs
+	keepdir /var/spool/fsvs
+	doman doc/*5 doc/*1
+	dodoc doc/{FAQ,IGNORING,PERFORMANCE,USAGE}
+}
+
+pkg_postinst() {
+	elog "Remember, this system works best when you're connecting to a remote"
+	elog "svn server."
+	elog
+	elog "Go to the base path for versioning:"
+	elog "    cd /"
+	elog "Tell fsvs which URL it should use:"
+	elog "    fsvs url svn+ssh://username@machine/path/to/repos"
+	elog "Define ignore patterns - all virtual filesystems (/proc, /sys, etc.),"
+	elog "and (assuming that you're in / currently) the temporary files in /tmp:"
+	elog "    fsvs ignore DEVICE:0 ./tmp/*"
+	elog "And you're ready to play!"
+	elog "Check your data in:"
+	elog "    fsvs commit -m \"First import\""
+}