Magellan Linux

Contents of /branches/magellan-next/core/util-linux/util-linux-2.19-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7489 - (show annotations) (download)
Tue Mar 15 22:12:43 2011 UTC (13 years, 1 month ago) by niro
File size: 2586 byte(s)
auto added: ver bump to 2.19-r1
1 # $Id: util-linux-2.16.1-r2.smage2 3631 2009-10-27 22:33:50Z niro $
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 >= sys-apps/sed-4
19 >= sys-dev/gettext-0.18"
20
21 SRCFILE="${PNAME}-ng-${PVER}.tar.bz2"
22 SRCDIR="${BUILDDIR}/${PNAME}-ng-${PVER}"
23
24 sminclude mtools multilib
25
26 SRC_URI=(
27 http://www.kernel.org/pub/linux/utils/${PNAME}-ng/v${PVER/%.?/}/${SRCFILE}
28 mirror://${PNAME}/${SRCFILE}
29 mirror://${PNAME}/${PNAME}-${PVER}-slang.patch
30 mirror://${PNAME}/${PNAME}-${PVER}-ncursesw.patch
31 mirror://${PNAME}/${PNAME}-${PVER}-cfdisk-string-len.patch
32 mirror://${PNAME}/${PNAME}-${PVER}-fix-findmnt.patch
33 mirror://${PNAME}/${PNAME}-${PVER}-mount-loopdev.patch
34 )
35
36 UP2DATE="updatecmd \"${HOMEPAGE}/v\$(updatecmd ${HOMEPAGE} | grep v.*/ | sed -n 's/.*v\(.*\)\/.*/\1/;$ p')/?C=M;O=A\" | grep -v 'rc' | lasttarball"
37
38 src_prepare()
39 {
40 munpack ${SRCFILE} || die
41
42 # fixes slang issues
43 mpatch ${PNAME}-${PVER}-slang.patch || die
44
45 # handle non-wide ncurses as well
46 mpatch ${PNAME}-${PVER}-ncursesw.patch || die
47
48 # fixes get_string() not calculating correct limits
49 mpatch ${PNAME}-${PVER}-cfdisk-string-len.patch || die
50
51 # fixes some mount issues
52 mpatch ${PNAME}-${PVER}-fix-findmnt.patch || die
53
54 # iso images listed in fstab are mounted twice at boot
55 mpatch ${PNAME}-${PVER}-mount-loopdev.patch || die
56
57 # fhs compatibility
58 all-abis sed -i 's:etc/adjtime:var/lib/hwclock/adjtime:' hwclock/hwclock.c || die
59
60 # regen configure
61 autoreconf --verbose --install --force || die
62 }
63
64 src_compile()
65 {
66 # we are using blkid from util linux now (--with-fsprobe=built --enable-fsck)
67 # which merges the old blkid from e2fsprogs and udevs libvolume
68 # see: http://lists.freedesktop.org/archives/hal-commit/2009-May/004936.html
69 mconfigure \
70 --without-pam \
71 --with-fsprobe=builtin \
72 --enable-nls \
73 --enable-agetty \
74 --enable-cramfs \
75 --enable-partx \
76 --enable-raw \
77 --enable-rdev \
78 --enable-rename \
79 --enable-schedutils \
80 --enable-write \
81 --disable-reset \
82 --disable-login-utils \
83 --disable-init \
84 --disable-kill \
85 --disable-last \
86 --disable-mesg \
87 --disable-wall \
88 --enable-fsck \
89 --disable-silent-rules \
90 || die
91
92 mmake || die
93 }
94
95 src_install()
96 {
97 # needed directories
98 mkeepdir /var/lib/hwclock || die
99
100 mmake DESTDIR=${BINDIR} install || die
101 minstalldocs HISTORY MAINTAINER README VERSION || die
102 }