Annotation of /smage/trunk/core/util-linux/util-linux-2.18-r1.smage2
Parent Directory | Revision Log
Revision 667 -
(hide annotations)
(download)
Thu Oct 21 12:22:04 2010 UTC (13 years, 6 months ago) by niro
File size: 2972 byte(s)
Thu Oct 21 12:22:04 2010 UTC (13 years, 6 months ago) by niro
File size: 2972 byte(s)
-mcore
1 | niro | 666 | # $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 | niro | 667 | # 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 | niro | 666 | |
30 | SRC_URI=( | ||
31 | http://www.kernel.org/pub/linux/utils/${PNAME}-ng/v${PVER/%.?/}/${SRCFILE} | ||
32 | mirror://${PNAME}/${SRCFILE} | ||
33 | mirror://${PNAME}/${PNAME}-${PVER}-slang.patch | ||
34 | mirror://${PNAME}/${PNAME}-${PVER}-ncursesw.patch | ||
35 | mirror://${PNAME}/${PNAME}-${PVER}-cfdisk-string-len.patch | ||
36 | mirror://${PNAME}/${PNAME}-${PVER}-fix-findmnt.patch | ||
37 | mirror://${PNAME}/${PNAME}-${PVER}-mount-loopdev.patch | ||
38 | ) | ||
39 | |||
40 | UP2DATE="updatecmd \"${HOMEPAGE}/v$(updatecmd ${HOMEPAGE} | grep v.*/ | sed -n 's/.*v\(.*\)\/.*/\1/;$ p')/?C=M;O=A\" | grep -v 'rc' | lasttarball" | ||
41 | |||
42 | src_prepare() | ||
43 | { | ||
44 | munpack ${SRCFILE} || die | ||
45 | |||
46 | # fixes slang issues | ||
47 | mpatch ${PNAME}-${PVER}-slang.patch || die | ||
48 | |||
49 | # handle non-wide ncurses as well | ||
50 | mpatch ${PNAME}-${PVER}-ncursesw.patch || die | ||
51 | |||
52 | # fixes get_string() not calculating correct limits | ||
53 | mpatch ${PNAME}-${PVER}-cfdisk-string-len.patch || die | ||
54 | |||
55 | # fixes some mount issues | ||
56 | mpatch ${PNAME}-${PVER}-fix-findmnt.patch || die | ||
57 | |||
58 | # iso images listed in fstab are mounted twice at boot | ||
59 | mpatch ${PNAME}-${PVER}-mount-loopdev.patch || die | ||
60 | |||
61 | # fhs compatibility | ||
62 | all-abis sed -i 's:etc/adjtime:var/lib/hwclock/adjtime:' hwclock/hwclock.c || die | ||
63 | |||
64 | # regen configure | ||
65 | autoreconf --verbose --install --force || die | ||
66 | } | ||
67 | |||
68 | src_compile() | ||
69 | { | ||
70 | # we are using blkid from util linux now (--with-fsprobe=built --enable-fsck) | ||
71 | # which merges the old blkid from e2fsprogs and udevs libvolume | ||
72 | # see: http://lists.freedesktop.org/archives/hal-commit/2009-May/004936.html | ||
73 | mconfigure \ | ||
74 | --without-pam \ | ||
75 | --with-fsprobe=builtin \ | ||
76 | --enable-nls \ | ||
77 | --enable-agetty \ | ||
78 | --enable-cramfs \ | ||
79 | --enable-partx \ | ||
80 | --enable-raw \ | ||
81 | --enable-rdev \ | ||
82 | --enable-rename \ | ||
83 | --enable-schedutils \ | ||
84 | --enable-write \ | ||
85 | --disable-reset \ | ||
86 | --disable-login-utils \ | ||
87 | --disable-init \ | ||
88 | --disable-kill \ | ||
89 | --disable-last \ | ||
90 | --disable-mesg \ | ||
91 | --disable-wall \ | ||
92 | --enable-fsck \ | ||
93 | --disable-silent-rules \ | ||
94 | || die | ||
95 | |||
96 | mmake || die | ||
97 | } | ||
98 | |||
99 | niro | 667 | mcore_generic_src_install() |
100 | niro | 666 | { |
101 | # needed directories | ||
102 | mkeepdir /var/lib/hwclock || die | ||
103 | |||
104 | mmake DESTDIR=${BINDIR} install || die | ||
105 | minstalldocs HISTORY MAINTAINER README VERSION || die | ||
106 | } |