Magellan Linux

Contents of /trunk/core/e2fsprogs/e2fsprogs-1.42.2-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12847 - (show annotations) (download)
Wed Jul 4 11:07:53 2012 UTC (11 years, 10 months ago) by niro
File size: 1732 byte(s)
-marked stable
1 # $Id$
2
3 PNAME="e2fsprogs"
4 PVER="1.42.2"
5 PBUILD="r2"
6
7 PCAT="sys-fs"
8
9 DESCRIPTION="Standard EXT2 and EXT3 filesystem utilities."
10 HOMEPAGE="http://e2fsprogs.sourceforge.net/"
11
12 DEPEND=">= virtual/glibc"
13 SDEPEND=">= sys-apps/texinfo-4"
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude multilib
19 msetfeature "!check"
20
21 SRC_URI=(
22 sourceforge://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 )
25
26 UP2DATE="updatecmd_sourceforge ${PNAME} | sed s/v//"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31
32 local abi
33 for abi in ${MULTILIB_ABIS}
34 do
35 install -d ${SRCDIR}-${abi}/build || die
36 if [[ ${abi} = m64 ]]
37 then
38 sed -i '/libdir=.*\/lib/s@/lib@/lib64@g' ${SRCDIR}-${abi}/configure || die
39 fi
40 done
41 }
42
43 src_compile()
44 {
45 # we are using blkid from util linux now (--disable-fsck --disable-libblkid)
46 # which merges the old blkid from e2fsprogs and udevs libvolume
47 # see: http://lists.freedesktop.org/archives/hal-commit/2009-May/004936.html
48 local abi
49 for abi in ${MULTILIB_ABIS}
50 do
51 cd ${SRCDIR}-${abi}/build
52 abi-${abi} ../configure \
53 --host=${CHOST} \
54 --prefix=/usr \
55 --infodir=/usr/share/info \
56 --mandir=/usr/share/man \
57 --enable-elf-shlibs \
58 --disable-fsck \
59 --disable-libblkid \
60 --disable-libuuid \
61 --disable-uuidd \
62 || die
63
64 make || die
65 done
66 }
67
68 src_install()
69 {
70 local abi
71 for abi in ${MULTILIB_ABIS}
72 do
73 cd ${SRCDIR}-${abi}/build
74 make DESTDIR=${BINDIR} install || die
75 make DESTDIR=${BINDIR} install-libs || die
76 done
77
78 # breaks our basesystem; we are using a symlink to /etc/rc.d/init.d
79 if [[ -d ${BINDIR}/etc/init.d ]]
80 then
81 rm -r ${BINDIR}/etc/init.d || die
82 fi
83
84 cd ${SRCDIR}
85 minstalldocs ABOUT-NLS ChangeLog COPYING README RELEASE-NOTES || die
86 }