summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-12-15 15:27:11 -0500
committerAnthony G. Basile <blueness@gentoo.org>2015-12-15 15:38:49 -0500
commit8e2101ca00392b435358d7827a2c320ef902ce4c (patch)
treebd7a9a4e4c25da7941a042e9036d09600f43e10d /app-arch/dump
parentsys-apps/xinetd: mark 2.3.15-r2 arm64/m68k/s390/sh stable (diff)
downloadgentoo-8e2101ca00392b435358d7827a2c320ef902ce4c.tar.gz
gentoo-8e2101ca00392b435358d7827a2c320ef902ce4c.tar.bz2
gentoo-8e2101ca00392b435358d7827a2c320ef902ce4c.zip
app-arch/dump: (sub)slot cleanups and add libressl support
Package-Manager: portage-2.2.24
Diffstat (limited to 'app-arch/dump')
-rw-r--r--app-arch/dump/dump-0.4.44-r2.ebuild69
1 files changed, 69 insertions, 0 deletions
diff --git a/app-arch/dump/dump-0.4.44-r2.ebuild b/app-arch/dump/dump-0.4.44-r2.ebuild
new file mode 100644
index 000000000000..94b0c0be409a
--- /dev/null
+++ b/app-arch/dump/dump-0.4.44-r2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit eutils autotools
+
+MY_P=${P/4./4b}
+S=${WORKDIR}/${MY_P}
+DESCRIPTION="Dump/restore ext2fs backup utilities"
+HOMEPAGE="http://dump.sourceforge.net/"
+SRC_URI="mirror://sourceforge/dump/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug ermt libressl readline selinux static"
+
+RDEPEND=">=sys-fs/e2fsprogs-1.27
+ >=app-arch/bzip2-1.0.2
+ >=sys-libs/zlib-1.1.4
+ ermt? (
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ )
+ readline? (
+ sys-libs/readline:0=
+ sys-libs/ncurses:=
+ static? ( sys-libs/ncurses:=[static-libs] )
+ )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ virtual/os-headers"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-underlinking.patch"
+ epatch "${FILESDIR}/${P}-rl_completion_matches-detection.patch"
+ epatch "${FILESDIR}/${P}-fix-pointers-aliasing.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --with-dumpdatespath=/etc/dumpdates \
+ --with-{bin,man}owner=root \
+ --with-{bin,man}grp=root \
+ --enable-largefile \
+ $(use_enable selinux transselinux) \
+ $(use_enable ermt) \
+ $(use_enable static) \
+ $(use_enable readline) \
+ $(use_enable debug)
+}
+
+src_install() {
+ # built on old autotools, no DESTDIR support
+ einstall MANDIR="${D}"/usr/share/man/man8
+ mv "${ED}"/usr/sbin/{,dump-}rmt || die
+ mv "${ED}"/usr/share/man/man8/{,dump-}rmt.8 || die
+ use ermt && newsbin rmt/ermt dump-ermt
+
+ dodoc CHANGES KNOWNBUGS MAINTAINERS README REPORTING-BUGS THANKS TODO
+ dodoc -r examples/*
+}
+
+pkg_postinst() {
+ ewarn "app-arch/dump installs 'rmt' as 'dump-rmt'."
+ ewarn "This is to avoid conflicts with app-arch/tar 'rmt'."
+}