gentoo-overlay/sys-fs/stratisd/stratisd-2.3.0.ebuild

199 lines
3.6 KiB
Bash
Raw Normal View History

2020-06-08 13:36:04 +03:00
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
CRATES="
2020-12-09 13:37:53 +03:00
addr2line-0.14.0
adler-0.2.3
aho-corasick-0.7.15
ansi_term-0.11.0
atty-0.2.14
2020-06-08 13:36:04 +03:00
autocfg-0.1.6
2020-12-09 13:37:53 +03:00
autocfg-1.0.1
backtrace-0.3.54
base64-0.13.0
bindgen-0.54.0
2020-06-08 13:36:04 +03:00
bitflags-1.2.1
2020-12-09 13:37:53 +03:00
bit-set-0.5.2
bit-vec-0.6.2
block-buffer-0.9.0
build_const-0.2.1
byteorder-1.3.4
cc-1.0.63
cexpr-0.4.0
cfg-if-0.1.10
cfg-if-1.0.0
chrono-0.4.19
clang-sys-0.29.3
clap-2.33.3
2020-06-08 13:36:04 +03:00
cloudabi-0.0.3
2020-12-09 13:37:53 +03:00
cpuid-bool-0.1.2
crc-1.8.1
2020-06-08 13:36:04 +03:00
dbus-0.8.1
2020-12-09 13:37:53 +03:00
devicemapper-0.28.1
digest-0.9.0
either-1.6.1
2020-06-08 13:36:04 +03:00
env_logger-0.7.1
2020-12-09 13:37:53 +03:00
env_logger-0.8.2
errno-0.2.7
errno-dragonfly-0.1.1
error-chain-0.12.4
fnv-1.0.7
2020-06-08 13:36:04 +03:00
fuchsia-cprng-0.1.1
2020-12-09 13:37:53 +03:00
gcc-0.3.55
generic-array-0.14.4
getrandom-0.1.15
gimli-0.23.0
2020-06-08 13:36:04 +03:00
glob-0.3.0
2020-12-09 13:37:53 +03:00
hermit-abi-0.1.17
2020-06-08 13:36:04 +03:00
humantime-1.3.0
2020-12-09 13:37:53 +03:00
humantime-2.0.1
itertools-0.9.0
itoa-0.4.6
lazycell-1.3.0
2020-06-08 13:36:04 +03:00
lazy_static-1.4.0
2020-12-09 13:37:53 +03:00
libc-0.2.80
libcryptsetup-rs-0.4.2
libcryptsetup-rs-sys-0.1.4
2020-06-08 13:36:04 +03:00
libdbus-sys-0.2.1
libloading-0.5.2
2020-12-09 13:37:53 +03:00
libmount-0.1.15
2020-06-08 13:36:04 +03:00
libudev-0.2.0
2020-12-09 13:37:53 +03:00
libudev-sys-0.1.4
log-0.4.11
loopdev-0.2.1
2020-06-08 13:36:04 +03:00
matches-0.1.8
2020-12-09 13:37:53 +03:00
memchr-2.3.4
miniz_oxide-0.4.3
2020-06-08 13:36:04 +03:00
nix-0.14.0
2020-12-09 13:37:53 +03:00
nix-0.18.0
nom-5.1.2
num-integer-0.1.44
num-traits-0.2.14
object-0.22.0
opaque-debug-0.3.0
2020-06-08 13:36:04 +03:00
peeking_take_while-0.1.2
2020-12-09 13:37:53 +03:00
pest-2.1.3
pkg-config-0.3.19
ppv-lite86-0.2.10
proc-macro2-1.0.24
proptest-0.10.1
2020-06-08 13:36:04 +03:00
quick-error-1.2.2
2020-12-09 13:37:53 +03:00
quote-1.0.7
2020-06-08 13:36:04 +03:00
rand-0.6.5
2020-12-09 13:37:53 +03:00
rand-0.7.3
2020-06-08 13:36:04 +03:00
rand_chacha-0.1.1
2020-12-09 13:37:53 +03:00
rand_chacha-0.2.2
2020-06-08 13:36:04 +03:00
rand_core-0.3.1
rand_core-0.4.2
2020-12-09 13:37:53 +03:00
rand_core-0.5.1
2020-06-08 13:36:04 +03:00
rand_hc-0.1.0
2020-12-09 13:37:53 +03:00
rand_hc-0.2.0
2020-06-08 13:36:04 +03:00
rand_isaac-0.1.1
rand_jitter-0.1.4
rand_os-0.1.3
rand_pcg-0.1.2
rand_xorshift-0.1.1
2020-12-09 13:37:53 +03:00
rand_xorshift-0.2.0
2020-06-08 13:36:04 +03:00
rdrand-0.4.0
redox_syscall-0.1.18
2020-12-09 13:37:53 +03:00
regex-1.4.2
regex-syntax-0.6.21
remove_dir_all-0.5.3
rustc-demangle-0.1.18
2020-06-08 13:36:04 +03:00
rustc-hash-1.1.0
2020-12-09 13:37:53 +03:00
rusty-fork-0.3.0
ryu-1.0.5
semver-0.11.0
2020-06-08 13:36:04 +03:00
semver-0.9.0
2020-12-09 13:37:53 +03:00
semver-parser-0.10.1
2020-06-08 13:36:04 +03:00
semver-parser-0.7.0
2020-12-09 13:37:53 +03:00
serde-1.0.117
serde_derive-1.0.117
serde_json-1.0.59
sha-1-0.9.2
2020-06-08 13:36:04 +03:00
shlex-0.1.1
2020-12-09 13:37:53 +03:00
strsim-0.8.0
syn-1.0.48
tempfile-3.1.0
termcolor-1.1.1
termios-0.3.3
textwrap-0.11.0
2020-06-08 13:36:04 +03:00
thread_local-1.0.1
2020-12-09 13:37:53 +03:00
time-0.1.44
timerfd-1.1.1
typenum-1.12.0
ucd-trie-0.1.3
unicode-width-0.1.8
unicode-xid-0.2.1
2020-06-08 13:36:04 +03:00
uuid-0.7.4
2020-12-09 13:37:53 +03:00
uuid-0.8.1
vec_map-0.8.2
version_check-0.9.2
2020-06-08 13:36:04 +03:00
void-1.0.2
2020-12-09 13:37:53 +03:00
wait-timeout-0.2.0
wasi-0.10.0+wasi-snapshot-preview1
wasi-0.9.0+wasi-snapshot-preview1
2020-06-08 13:36:04 +03:00
which-3.1.0
2020-12-09 13:37:53 +03:00
winapi-0.3.9
winapi-i686-pc-windows-gnu-0.4.0
2020-06-08 13:36:04 +03:00
winapi-util-0.1.3
2020-12-09 13:37:53 +03:00
winapi-x86_64-pc-windows-gnu-0.4.0
2020-06-08 13:36:04 +03:00
"
inherit cargo systemd
DESCRIPTION="Linux local storage management tool that aims to enable easy use of advanced storage features such as thin provisioning, snapshots, and pool-based management and monitoring."
HOMEPAGE="https://stratis-storage.github.io/"
SRC_URI="https://github.com/stratis-storage/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
$(cargo_crate_uris ${CRATES})"
LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
2020-12-09 13:37:53 +03:00
IUSE="elibc_musl"
2020-06-08 13:36:04 +03:00
BDEPEND="
>=virtual/rust-1.43.0
sys-devel/clang
2020-06-08 13:36:04 +03:00
"
DEPEND="
sys-apps/dbus
virtual/udev
2020-06-08 13:36:04 +03:00
dev-libs/libpcre
>=sys-fs/cryptsetup-2.3
>=sys-apps/util-linux-2.32
"
RDEPEND="
${DEPEND}
sys-fs/xfsprogs
sys-block/thin-provisioning-tools
"
QA_FLAGS_IGNORED="/sbin/stratisd /usr/libexec/stratisd"
PATCHES=(
# Until feature will be released. https://github.com/stratis-storage/project/issues/161
2020-06-08 13:36:04 +03:00
${FILESDIR}/0001-disable-xfs-uuid-change-after-snapshot-create.patch
2020-10-15 18:25:02 +03:00
# Until issue will be fixed. https://github.com/stratis-storage/stratisd/issues/1470 https://github.com/stratis-storage/stratisd/issues/1780
2020-06-08 19:48:55 +03:00
${FILESDIR}/0002-duplicate_check-disable.patch
2020-06-08 13:36:04 +03:00
)
src_compile(){
cargo_src_compile --all-features
2020-06-08 13:36:04 +03:00
}
src_install() {
2020-12-09 13:37:53 +03:00
cargo_src_install --all-features
2020-06-08 13:36:04 +03:00
einstalldocs
dodoc -r docs/.
2020-12-09 13:37:53 +03:00
newinitd "${FILESDIR}/init.d.stratisd-r3" stratisd
2020-06-08 13:36:04 +03:00
systemd_dounit "${S}/stratisd.service"
insinto /etc/dbus-1/system.d
doins ${S}/stratisd.conf
}