Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/e2fsprogs/e2fsprogs-1.41.14-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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