Magellan Linux

Contents of /smage/trunk/core/e2fsprogs/e2fsprogs-1.41.9-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 66 - (show annotations) (download)
Mon Jan 4 17:55:28 2010 UTC (14 years, 3 months ago) by niro
File size: 2048 byte(s)
-keep ext4 stuff too
1 # $Id$
2
3 PNAME="e2fsprogs"
4 PVER="1.41.9"
5 PBUILD="r2"
6
7 PCATEGORIE="sys-fs"
8 STATE="unstable"
9
10 DESCRIPTION="Standard EXT2 and EXT3 filesystem utilities."
11 HOMEPAGE="http://e2fsprogs.sourceforge.net/"
12
13 DEPEND=">= sys-apps/texinfo-4"
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 MCORE_ONLY_KEEP="$(mlibdir)/*.so
19 $(mlibdir)/*.so.*
20 sbin/blkid
21 sbin/e2fsck
22 sbin/mke2fs
23 sbin/mkfs.ext2
24 sbin/mkfs.ext3
25 sbin/mkfs.ext4
26 sbin/tune2fs
27 sbin/fsck.ext2
28 sbin/fsck.ext3
29 sbin/fsck.ext4
30 usr/$(mlibdir)/*.so
31 usr/$(mlibdir)/*.so.*
32 usr/sbin/mklost+found"
33
34 sminclude multilib mcore-split
35
36 SRC_URI=(
37 sourceforge://${PNAME}/${SRCFILE}
38 mirror://${PNAME}/${SRCFILE}
39 )
40
41 UP2DATE="updatecmd_sourceforge ${PNAME} | sed s/v//"
42
43 src_prepare()
44 {
45 munpack ${SRCFILE} || die
46
47 local abi
48 for abi in ${MULTILIB_ABIS}
49 do
50 install -d ${SRCDIR}-${abi}/build || die
51 if [[ ${abi} = m64 ]]
52 then
53 sed -i '/libdir=.*\/lib/s@/lib@/lib64@g' ${SRCDIR}-${abi}/configure || die
54 fi
55 done
56 }
57
58 src_compile()
59 {
60 # we are using blkid from util linux now (--disable-fsck --disable-libblkid)
61 # which merges the old blkid from e2fsprogs and udevs libvolume
62 # see: http://lists.freedesktop.org/archives/hal-commit/2009-May/004936.html
63 local abi
64 for abi in ${MULTILIB_ABIS}
65 do
66 cd ${SRCDIR}-${abi}/build
67 abi-${abi} ../configure \
68 --host=${CHOST} \
69 --prefix=/usr \
70 --infodir=/usr/share/info \
71 --mandir=/usr/share/man \
72 --with-root-prefix="" \
73 --enable-elf-shlibs \
74 --disable-fsck \
75 --disable-libblkid \
76 --disable-libuuid \
77 --disable-uuidd \
78 --disable-nls \
79 || die
80
81 make || die
82 done
83 }
84
85 mcore_generic_src_install()
86 {
87 local abi
88 for abi in ${MULTILIB_ABIS}
89 do
90 cd ${SRCDIR}-${abi}/build
91 make DESTDIR=${BINDIR} install || die
92 make DESTDIR=${BINDIR} install-libs || die
93 done
94
95 # breaks our basesystem; we are using a symlink to /etc/rc.d/init.d
96 if [[ -d ${BINDIR}/etc/init.d ]]
97 then
98 rm -r ${BINDIR}/etc/init.d || die
99 fi
100
101 cd ${SRCDIR}
102 minstalldocs ABOUT-NLS ChangeLog COPYING README RELEASE-NOTES || die
103 }

Properties

Name Value
svn:keywords Id