app-admin/fsvs: add 1.2.12

Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/36942
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
Michael Mair-Keimberger
2024-06-01 11:14:20 +02:00
committed by Conrad Kostecki
parent aea005c60f
commit 4aad9317c1
3 changed files with 124 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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\""
}