gentoo/sys-fs/snapraid/snapraid-12.4-r1.ebuild
Zelin2001 fd35a0112a
sys-fs/snapraid: dash-compatibility fix
This is a patch for the testing process that remove dependency on bash shell.

Closes: https://bugs.gentoo.org/927538
Signed-off-by: Li Ze-Lin <lizl2023@ion.ac.cn>
Part-of: https://github.com/gentoo/gentoo/pull/43379
Closes: https://github.com/gentoo/gentoo/pull/43379
Signed-off-by: Sam James <sam@gentoo.org>
2025-10-03 05:58:30 +01:00

35 lines
863 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Backup program with disk array for cold data on existing filesystems"
HOMEPAGE="https://www.snapraid.it/"
SRC_URI="https://github.com/amadvance/${PN}/releases/download/v${PV}/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
BDEPEND="test? ( sys-apps/smartmontools )"
DOCS=( "AUTHORS" "HISTORY" "README" "TODO" "snapraid.conf.example" )
PATCHES=(
"${FILESDIR}/snapraid-12.4-dash-compatibility.patch"
)
src_prepare() {
default
eautoreconf
}
pkg_postinst() {
elog "To start using SnapRAID, change the example configuration"
elog "${EPREFIX}/usr/share/doc/${PF}/snapraid.conf.example.bz2"
elog "to fit your needs and copy it to ${EPREFIX}/etc/snapraid.conf"
}