1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 MY_P="${PN}-$(replace_version_separator 2 b)"
10 DESCRIPTION="Dump/restore ext2fs backup utilities"
11 HOMEPAGE="http://dump.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/dump/${MY_P}.tar.gz"
16 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
17 # We keep uuid USE flag default dsiabled for this version. Don't forget
18 # to default enable it for later versions as this is the upstream default.
19 IUSE="bzip2 debug ermt libressl lzo readline selinux sqlite ssl static test uuid zlib"
23 test? ( sqlite? ( uuid ) )
26 RDEPEND=">=sys-fs/e2fsprogs-1.27:=
27 >=sys-libs/e2fsprogs-libs-1.27:=
29 bzip2? ( >=app-arch/bzip2-1.0.2:= )
30 zlib? ( >=sys-libs/zlib-1.1.4:= )
31 lzo? ( dev-libs/lzo:2= )
32 sqlite? ( dev-db/sqlite:3= )
34 !libressl? ( dev-libs/openssl:0= )
35 libressl? ( dev-libs/libressl:0= )
38 !libressl? ( dev-libs/openssl:0= )
39 libressl? ( dev-libs/libressl:0= )
44 static? ( sys-libs/ncurses:=[static-libs] )
50 PATCHES=( "${FILESDIR}"/${P}-openssl11.patch )
54 --with-dumpdatespath=/etc/dumpdates
55 --with-rmtpath='$(sbindir)/rmt'
61 $(use_enable readline)
65 $(use_enable static static-progs)
69 econf "${myeconfargs[@]}"
74 mv "${ED}"/usr/sbin/{,dump-}rmt || die
75 mv "${ED}"/usr/share/man/man8/{,dump-}rmt.8 || die
76 use ermt && newsbin rmt/ermt dump-ermt
78 dodoc KNOWNBUGS MAINTAINERS REPORTING-BUGS
83 if [[ -z ${REPLACING_VERSIONS} ]] ; then
84 ewarn "app-arch/dump installs 'rmt' as 'dump-rmt'."
85 ewarn "This is to avoid conflicts with app-arch/tar 'rmt'."