/[gentoo-x86]/app-arch/dump/dump-0.4.43.ebuild
Gentoo

Contents of /app-arch/dump/dump-0.4.43.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jan 31 19:46:36 2012 UTC (8 years, 6 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-arch/dump/dump-0.4.43.ebuild,v 1.1 2011/05/23 08:01:26 pva Exp $
4
5 EAPI="4"
6 inherit eutils autotools
7
8 MY_P=${P/4./4b}
9 S=${WORKDIR}/${MY_P}
10 DESCRIPTION="Dump/restore ext2fs backup utilities"
11 HOMEPAGE="http://dump.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/dump/${MY_P}.tar.gz"
13
14 LICENSE="BSD"
15 SLOT="0"
16 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
17 IUSE="debug ermt readline selinux static"
18
19 RDEPEND=">=sys-fs/e2fsprogs-1.27
20 >=app-arch/bzip2-1.0.2
21 >=sys-libs/zlib-1.1.4
22 ermt? ( dev-libs/openssl )
23 readline? ( sys-libs/readline
24 sys-libs/ncurses
25 static? ( sys-libs/ncurses[static-libs] ) )"
26 DEPEND="${RDEPEND}
27 virtual/os-headers"
28
29 src_prepare() {
30 # https://sourceforge.net/tracker/?func=detail&aid=3306159&group_id=1306&atid=301306
31 epatch "${FILESDIR}/dump-0.4b43-pkg_config4blkid.patch"
32 epatch "${FILESDIR}/dump-0.4b43-pkg_config4ext2fs.patch"
33 epatch "${FILESDIR}/dump-0.4b43-pkg_config4crypto.patch"
34 eautoreconf
35 }
36
37 src_configure() {
38 econf \
39 --with-dumpdatespath=/etc/dumpdates \
40 --with-{bin,man}owner=root \
41 --with-{bin,man}grp=root \
42 --enable-largefile \
43 $(use_enable selinux transselinux) \
44 $(use_enable ermt) \
45 $(use_enable static) \
46 $(use_enable readline) \
47 $(use_enable debug)
48 }
49
50 src_install() {
51 # built on old autotools, no DESTDIR support
52 einstall MANDIR="${D}"/usr/share/man/man8
53 mv "${ED}"/usr/sbin/{,dump-}rmt || die
54 mv "${ED}"/usr/share/man/man8/{,dump-}rmt.8 || die
55 use ermt && newsbin rmt/ermt dump-ermt
56
57 dodoc CHANGES KNOWNBUGS MAINTAINERS README REPORTING-BUGS THANKS TODO
58 dodoc -r examples/*
59 }
60
61 pkg_postinst() {
62 ewarn "app-arch/dump installs 'rmt' as 'dump-rmt'."
63 ewarn "This is to avoid conflicts with app-arch/tar 'rmt'."
64 }

  ViewVC Help
Powered by ViewVC 1.1.20