Contents of /branches/magellan-next/core/util-linux/util-linux-2.18-r1.smage2
Parent Directory | Revision Log
Revision 5920 -
(show annotations)
(download)
Tue Aug 17 15:59:04 2010 UTC (13 years, 9 months ago) by niro
File size: 2393 byte(s)
Tue Aug 17 15:59:04 2010 UTC (13 years, 9 months ago) by niro
File size: 2393 byte(s)
auto added: ver bump to 2.18-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.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 | mirror://${PNAME}/${PNAME}-${PVER}-fix-findmnt.patch |
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 | # fixes slang issues |
42 | mpatch ${PNAME}-${PVER}-slang.patch || die |
43 | |
44 | # handle non-wide ncurses as well |
45 | mpatch ${PNAME}-${PVER}-ncursesw.patch || die |
46 | |
47 | # fixes get_string() not calculating correct limits |
48 | mpatch ${PNAME}-${PVER}-cfdisk-string-len.patch || die |
49 | |
50 | # fixes some mount issues |
51 | mpatch ${PNAME}-${PVER}-fix-findmnt.patch || die |
52 | |
53 | # fhs compatibility |
54 | all-abis sed -i 's:etc/adjtime:var/lib/hwclock/adjtime:' hwclock/hwclock.c || die |
55 | |
56 | # regen configure |
57 | autoreconf --verbose --install --force || die |
58 | } |
59 | |
60 | src_compile() |
61 | { |
62 | # we are using blkid from util linux now (--with-fsprobe=built --enable-fsck) |
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 | mconfigure \ |
66 | --without-pam \ |
67 | --with-fsprobe=builtin \ |
68 | --enable-nls \ |
69 | --enable-agetty \ |
70 | --enable-cramfs \ |
71 | --enable-partx \ |
72 | --enable-raw \ |
73 | --enable-rdev \ |
74 | --enable-rename \ |
75 | --enable-schedutils \ |
76 | --enable-write \ |
77 | --disable-reset \ |
78 | --disable-login-utils \ |
79 | --disable-init \ |
80 | --disable-kill \ |
81 | --disable-last \ |
82 | --disable-mesg \ |
83 | --disable-wall \ |
84 | --enable-fsck \ |
85 | || die |
86 | |
87 | mmake || die |
88 | } |
89 | |
90 | src_install() |
91 | { |
92 | # needed directories |
93 | mkeepdir /var/lib/hwclock || die |
94 | |
95 | mmake DESTDIR=${BINDIR} install || die |
96 | minstalldocs HISTORY MAINTAINER README VERSION || die |
97 | } |