1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 MY_P="${PN}-$(ver_rs 2 b)"
8 DESCRIPTION="Dump/restore ext2fs backup utilities"
9 HOMEPAGE="http://dump.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/dump/${MY_P}.tar.gz"
14 KEYWORDS="~alpha amd64 ~hppa ~ia64 ppc ppc64 sparc x86"
15 # We keep uuid USE flag default dsiabled for this version. Don't forget
16 # to default enable it for later versions as this is the upstream default.
17 IUSE="bzip2 debug ermt libressl lzo readline selinux sqlite ssl static test uuid zlib"
18 RESTRICT="!test? ( test )"
22 test? ( sqlite? ( uuid ) )
25 RDEPEND=">=sys-fs/e2fsprogs-1.27:=
26 >=sys-libs/e2fsprogs-libs-1.27:=
28 bzip2? ( >=app-arch/bzip2-1.0.2:= )
29 zlib? ( >=sys-libs/zlib-1.1.4:= )
30 lzo? ( dev-libs/lzo:2= )
31 sqlite? ( dev-db/sqlite:3= )
33 !libressl? ( dev-libs/openssl:0= )
34 libressl? ( dev-libs/libressl:0= )
37 !libressl? ( dev-libs/openssl:0= )
38 libressl? ( dev-libs/libressl:0= )
43 static? ( sys-libs/ncurses:=[static-libs] )
52 "${FILESDIR}"/${P}-openssl11.patch
57 --with-dumpdatespath=/etc/dumpdates
58 --with-rmtpath='$(sbindir)/rmt'
64 $(use_enable readline)
68 $(use_enable static static-progs)
72 econf "${myeconfargs[@]}"
77 mv "${ED}"/usr/sbin/{,dump-}rmt || die
78 mv "${ED}"/usr/share/man/man8/{,dump-}rmt.8 || die
79 use ermt && newsbin rmt/ermt dump-ermt
81 dodoc KNOWNBUGS MAINTAINERS REPORTING-BUGS
86 if [[ -z ${REPLACING_VERSIONS} ]] ; then
87 ewarn "app-arch/dump installs 'rmt' as 'dump-rmt'."
88 ewarn "This is to avoid conflicts with app-arch/tar 'rmt'."