Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5917 - (show annotations) (download)
Tue Aug 17 15:40:40 2010 UTC (13 years, 9 months ago) by niro
File size: 2194 byte(s)
-added some fixes
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.18"
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.7
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 )
33
34 UP2DATE="updatecmd \"${HOMEPAGE}/v$(updatecmd ${HOMEPAGE} | grep v.*/ | sed -n 's/.*v\(.*\)\/.*/\1/;$ p')/?C=M;O=A\" | grep -v 'rc' | lasttarball"
35
36 src_prepare()
37 {
38 munpack ${SRCFILE} || die
39
40 # fixes slang issues
41 mpatch ${PNAME}-${PVER}-slang.patch || die
42
43 # handle non-wide ncurses as well
44 mpatch ${PNAME}-${PVER}-ncursesw.patch || die
45
46 # fixes get_string() not calculating correct limits
47 mpatch ${PNAME}-${PVER}-cfdisk-string-len.patch || die
48
49 # fhs compatibility
50 all-abis sed -i 's:etc/adjtime:var/lib/hwclock/adjtime:' hwclock/hwclock.c || die
51 }
52
53 src_compile()
54 {
55 # we are using blkid from util linux now (--with-fsprobe=built --enable-fsck)
56 # which merges the old blkid from e2fsprogs and udevs libvolume
57 # see: http://lists.freedesktop.org/archives/hal-commit/2009-May/004936.html
58 mconfigure \
59 --without-pam \
60 --with-fsprobe=builtin \
61 --enable-nls \
62 --enable-agetty \
63 --enable-cramfs \
64 --enable-partx \
65 --enable-raw \
66 --enable-rdev \
67 --enable-rename \
68 --enable-schedutils \
69 --enable-write \
70 --disable-reset \
71 --disable-login-utils \
72 --disable-init \
73 --disable-kill \
74 --disable-last \
75 --disable-mesg \
76 --disable-wall \
77 --enable-fsck \
78 || die
79
80 mmake || die
81 }
82
83 src_install()
84 {
85 # needed directories
86 mkeepdir /var/lib/hwclock || die
87
88 mmake DESTDIR=${BINDIR} install || die
89 minstalldocs HISTORY MAINTAINER README VERSION || die
90 }