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

Contents of /app-arch/dump/dump-0.4.42.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-2009 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.42.ebuild,v 1.1 2009/09/30 03:14:08 vapier Exp $
4
5 MY_P=${P/4./4b}
6 S=${WORKDIR}/${MY_P}
7 DESCRIPTION="Dump/restore ext2fs backup utilities"
8 HOMEPAGE="http://dump.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/dump/${MY_P}.tar.gz"
10
11 LICENSE="BSD"
12 SLOT="0"
13 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
14 IUSE="ermt readline selinux static"
15
16 RDEPEND=">=sys-fs/e2fsprogs-1.27
17 >=app-arch/bzip2-1.0.2
18 >=sys-libs/zlib-1.1.4
19 ermt? ( dev-libs/openssl )
20 readline? ( sys-libs/readline )"
21 DEPEND="${RDEPEND}
22 virtual/os-headers"
23
24 src_unpack() {
25 unpack ${A}
26 cd "${S}"
27 sed -i \
28 -e 's:-ltermcap:-lncurses:g' \
29 -e '/BLKID=/s:=.*:=`pkg-config --libs blkid`:' \
30 configure || die
31 }
32
33 src_compile() {
34 econf \
35 --with-dumpdatespath=/etc/dumpdates \
36 --with-{bin,man}owner=root \
37 --with-{bin,man}grp=root \
38 --enable-largefile \
39 $(use_enable selinux transselinux) \
40 $(use_enable ermt) \
41 $(use_enable static) \
42 $(use_enable readline) \
43 || die
44 emake || die
45 }
46
47 src_install() {
48 # built on old autotools, no DESTDIR support
49 einstall MANDIR="${D}"/usr/share/man/man8 || die
50 mv "${D}"/usr/sbin/{,dump-}rmt
51 mv "${D}"/usr/share/man/man8/{,dump-}rmt.8
52 use ermt && newsbin rmt/ermt dump-ermt
53
54 dodoc CHANGES KNOWNBUGS MAINTAINERS README REPORTING-BUGS THANKS TODO
55 cd examples
56 local d=
57 for d in * ; do
58 docinto ${d}
59 dodoc ${d}/*
60 done
61 }
62
63 pkg_postinst() {
64 ewarn "app-arch/dump installs 'rmt' as 'dump-rmt'."
65 ewarn "This is to avoid conflicts with app-arch/tar 'rmt'."
66 }

  ViewVC Help
Powered by ViewVC 1.1.20