Annotation of /branches/magellan-next/core/util-linux/util-linux-2.18-r1.smage2
Parent Directory | Revision Log
Revision 5918 -
(hide annotations)
(download)
Tue Aug 17 15:51:41 2010 UTC (13 years, 9 months ago) by niro
File size: 2326 byte(s)
Tue Aug 17 15:51:41 2010 UTC (13 years, 9 months ago) by niro
File size: 2326 byte(s)
-added patch to fix some mount issues
1 | niro | 5916 | # $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 | niro | 5917 | mirror://${PNAME}/${PNAME}-${PVER}-slang.patch |
30 | mirror://${PNAME}/${PNAME}-${PVER}-ncursesw.patch | ||
31 | mirror://${PNAME}/${PNAME}-${PVER}-cfdisk-string-len.patch | ||
32 | niro | 5918 | mirror://${PNAME}/${PNAME}-${PVER}-fix-findmnt.patch |
33 | niro | 5916 | ) |
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 | niro | 5917 | # 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 | niro | 5918 | # fixes some mount issues |
51 | mpatch ${PNAME}-${PVER}-fix-findmnt.patch || die | ||
52 | |||
53 | niro | 5916 | # fhs compatibility |
54 | all-abis sed -i 's:etc/adjtime:var/lib/hwclock/adjtime:' hwclock/hwclock.c || die | ||
55 | } | ||
56 | |||
57 | src_compile() | ||
58 | { | ||
59 | # we are using blkid from util linux now (--with-fsprobe=built --enable-fsck) | ||
60 | # which merges the old blkid from e2fsprogs and udevs libvolume | ||
61 | # see: http://lists.freedesktop.org/archives/hal-commit/2009-May/004936.html | ||
62 | mconfigure \ | ||
63 | --without-pam \ | ||
64 | --with-fsprobe=builtin \ | ||
65 | --enable-nls \ | ||
66 | --enable-agetty \ | ||
67 | --enable-cramfs \ | ||
68 | --enable-partx \ | ||
69 | --enable-raw \ | ||
70 | --enable-rdev \ | ||
71 | --enable-rename \ | ||
72 | --enable-schedutils \ | ||
73 | --enable-write \ | ||
74 | --disable-reset \ | ||
75 | --disable-login-utils \ | ||
76 | --disable-init \ | ||
77 | --disable-kill \ | ||
78 | --disable-last \ | ||
79 | --disable-mesg \ | ||
80 | --disable-wall \ | ||
81 | --enable-fsck \ | ||
82 | || die | ||
83 | |||
84 | mmake || die | ||
85 | } | ||
86 | |||
87 | src_install() | ||
88 | { | ||
89 | # needed directories | ||
90 | mkeepdir /var/lib/hwclock || die | ||
91 | |||
92 | mmake DESTDIR=${BINDIR} install || die | ||
93 | minstalldocs HISTORY MAINTAINER README VERSION || die | ||
94 | } |