1 # Copyright 1999-2019 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"
21 test? ( sqlite? ( uuid ) )
24 RDEPEND=">=sys-fs/e2fsprogs-1.27:=
25 >=sys-libs/e2fsprogs-libs-1.27:=
27 bzip2? ( >=app-arch/bzip2-1.0.2:= )
28 zlib? ( >=sys-libs/zlib-1.1.4:= )
29 lzo? ( dev-libs/lzo:2= )
30 sqlite? ( dev-db/sqlite:3= )
32 !libressl? ( dev-libs/openssl:0= )
33 libressl? ( dev-libs/libressl:0= )
36 !libressl? ( dev-libs/openssl:0= )
37 libressl? ( dev-libs/libressl:0= )
42 static? ( sys-libs/ncurses:=[static-libs] )
51 "${FILESDIR}"/${P}-openssl11.patch
56 --with-dumpdatespath=/etc/dumpdates
57 --with-rmtpath='$(sbindir)/rmt'
63 $(use_enable readline)
67 $(use_enable static static-progs)
71 econf "${myeconfargs[@]}"
76 mv "${ED}"/usr/sbin/{,dump-}rmt || die
77 mv "${ED}"/usr/share/man/man8/{,dump-}rmt.8 || die
78 use ermt && newsbin rmt/ermt dump-ermt
80 dodoc KNOWNBUGS MAINTAINERS REPORTING-BUGS
85 if [[ -z ${REPLACING_VERSIONS} ]] ; then
86 ewarn "app-arch/dump installs 'rmt' as 'dump-rmt'."
87 ewarn "This is to avoid conflicts with app-arch/tar 'rmt'."