forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fsvs-1.2.5-r1.ebuild
55 lines (46 loc) · 1.3 KB
/
fsvs-1.2.5-r1.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils toolchain-funcs
DESCRIPTION="Backup/restore for subversion backends"
HOMEPAGE="http://fsvs.tigris.org/"
SRC_URI="http://download.fsvs-software.org/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="dev-vcs/subversion
dev-libs/libpcre
sys-libs/gdbm
dev-libs/apr-util
dev-util/ctags"
DEPEND="${RDEPEND}"
src_prepare() {
epatch "${FILESDIR}/${P}-as-needed.patch"
epatch_user
}
src_compile() {
# respect compiler
emake CC="$(tc-getCC)"
}
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\""
}