blob: 2691c219976fa51805369c11b40c7edfa7716b1c (
plain)
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
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit flag-o-matic readme.gentoo-r1
MY_PV="${PV/_/-}"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="A high performance inline data deduplicating filesystem"
HOMEPAGE="https://sourceforge.net/projects/lessfs/"
SRC_URI="mirror://sourceforge/${PN}/${PN}/${MY_P}/${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="berkdb crypt debug filelog memtrace lzo snappy"
RDEPEND="
app-crypt/mhash
dev-db/tokyocabinet
sys-fs/fuse:0
berkdb? ( sys-libs/db:* )
crypt? ( dev-libs/openssl:0= )
lzo? ( dev-libs/lzo )
snappy? ( app-arch/snappy )"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"
DOC_CONTENTS="Default configuration file: /etc/${PN}.cfg.
If your host is a client consult the following configuration
file: /usr/share/doc/${PF}/${PN}.cfg-slave.*"
PATCHES=(
# From PLD-Linux, bug #674422
"${FILESDIR}"/${P}-openssl11.patch
)
src_configure() {
append-flags -fcommon
econf \
$(use_enable debug) \
$(use_enable debug lckdebug) \
$(use_enable filelog) \
$(use_enable memtrace) \
$(use_with berkdb berkeleydb) \
$(use_with crypt crypto) \
$(use_with lzo) \
$(use_with snappy)
}
src_install() {
default
insinto /etc
newins examples/lessfs.cfg-master ${PN}.cfg
dodoc examples/lessfs.* etc/lessfs.*
readme.gentoo_create_doc
}
pkg_postinst() {
readme.gentoo_print_elog
}
|