Magellan Linux

Contents of /smage/trunk/core/util-linux/util-linux-2.19-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1378 - (show annotations) (download)
Tue Mar 1 18:52:25 2011 UTC (13 years, 2 months ago) by niro
File size: 2184 byte(s)
-removed upstream applied patches
1 # $Id$
2
3 PNAME="util-linux"
4 PVER="2.19"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-apps"
8 STATE="unstable"
9
10 DESCRIPTION="Various useful Linux utilities."
11 HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux-ng/"
12
13 DEPEND=">= virtual/glibc
14 >= sys-libs/ncurses-5.8
15 >= sys-fs/e2fsprogs-1.41"
16
17 SDEPEND=">= virtual/kernel-headers
18 >= virtual/sed
19 >= sys-dev/gettext-0.18"
20
21 SRCFILE="${PNAME}-${PVER}.tar.bz2"
22 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
23
24 # keep bin/mount too, need a fully featured one for fstype guessing -> mount -f --guess-fstype
25 #MCORE_ONLY_KEEP="sbin/cfdisk sbin/sfdisk bin/mount usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
26 # keep fullfeatured sbbin/blkid for better fsyte guessing and uuid handling
27 MCORE_ONLY_KEEP="sbin/cfdisk sbin/sfdisk sbin/blkid usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
28 sminclude mtools multilib mcore-split
29
30 SRC_URI=(
31 http://www.kernel.org/pub/linux/utils/${PNAME}/v${PVER/%.?/}/${SRCFILE}
32 mirror://${PNAME}/${SRCFILE}
33 )
34
35 UP2DATE="updatecmd \"${HOMEPAGE}/v\$(updatecmd ${HOMEPAGE} | grep v.*/ | sed -n 's/.*v\(.*\)\/.*/\1/;$ p')/?C=M;O=A\" | grep -v 'rc' | lasttarball"
36
37 src_prepare()
38 {
39 munpack ${SRCFILE} || die
40
41 # fhs compatibility
42 all-abis sed -i 's:etc/adjtime:var/lib/hwclock/adjtime:' hwclock/hwclock.c || die
43
44 # regen configure
45 autoreconf --verbose --install --force || die
46 }
47
48 src_compile()
49 {
50 # we are using blkid from util linux now (--with-fsprobe=built --enable-fsck)
51 # which merges the old blkid from e2fsprogs and udevs libvolume
52 # see: http://lists.freedesktop.org/archives/hal-commit/2009-May/004936.html
53 mconfigure \
54 --without-pam \
55 --with-fsprobe=builtin \
56 --enable-nls \
57 --enable-agetty \
58 --enable-cramfs \
59 --enable-partx \
60 --enable-raw \
61 --enable-rdev \
62 --enable-rename \
63 --enable-schedutils \
64 --enable-write \
65 --disable-reset \
66 --disable-login-utils \
67 --disable-init \
68 --disable-kill \
69 --disable-last \
70 --disable-mesg \
71 --disable-wall \
72 --enable-fsck \
73 --disable-silent-rules \
74 || die
75
76 mmake || die
77 }
78
79 mcore_generic_src_install()
80 {
81 # needed directories
82 mkeepdir /var/lib/hwclock || die
83
84 mmake DESTDIR=${BINDIR} install || die
85 minstalldocs HISTORY MAINTAINER README VERSION || die
86 }