blob: 48b0dc5a53f1eb58fbbd97613454fa746c351abf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/partimage/partimage-0.6.2.ebuild,v 1.10 2003/11/14 20:11:36 seemant Exp $
inherit gnuconfig
DESCRIPTION="Console-based application to efficiently save raw partition data to an image file. Optional encryption/compression support."
HOMEPAGE="http://www.partimage.org/"
SRC_URI="mirror://sourceforge/partimage/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~amd64"
IUSE="ssl"
RDEPEND="virtual/glibc
>=sys-libs/zlib-1.1.4
>=dev-libs/lzo-1.08
>=dev-libs/newt-0.50.35-r1
>=sys-libs/slang-1.4.5-r2
app-arch/bzip2
ssl? ( >=dev-libs/openssl-0.9.6g )"
DEPEND="${RDEPEND} sys-devel/autoconf"
src_unpack() {
unpack ${A}
cd ${S}
# Patch Makefile.am so we can take over some of is install work
#patch -p1 < ${FILESDIR}/${PF}-gentoo.patch || die "patch failed"
autoconf
use amd64 && gnuconfig_update
}
src_compile() {
# SSL is optional
local sslconf
use ssl || sslconf="--disable-ssl"
econf \
${sslconf} \
--infodir=/usr/share/doc/${PF}
cp Makefile Makefile.orig
sed -e "s/partimag\.root/root:root/g" Makefile.orig > Makefile
emake || die
}
src_install() {
make \
prefix=${D}/usr \
sysconfdir=${D}/etc \
mandir=${D}/usr/share/man \
infodir=${D}/usr/share/doc/${PF} \
localedir=${D}/usr/share/locale \
gettextsrcdir=${D}/usr/share/gettext/po \
install || die
}
|