Contents of /branches/magellan-next/core/util-linux/util-linux-2.20_rc1-r1.smage2
Parent Directory | Revision Log
Revision 8899 -
(show annotations)
(download)
Fri Aug 12 15:49:28 2011 UTC (12 years, 9 months ago) by niro
File size: 2260 byte(s)
Fri Aug 12 15:49:28 2011 UTC (12 years, 9 months ago) by niro
File size: 2260 byte(s)
auto added: ver bump to 2.20_rc1-r1
1 | # $Id$ |
2 | |
3 | PNAME="util-linux" |
4 | PVER="2.20_rc1" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | |
9 | DESCRIPTION="Various useful Linux utilities." |
10 | HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux-ng/" |
11 | |
12 | DEPEND=">= virtual/glibc |
13 | >= sys-libs/ncurses-5.9 |
14 | >= sys-fs/e2fsprogs-1.41" |
15 | |
16 | SDEPEND=">= virtual/kernel-headers |
17 | >= sys-apps/sed-4 |
18 | >= sys-dev/gettext-0.18" |
19 | |
20 | SRCFILE="${PNAME}-${PVER/_/-}.tar.bz2" |
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/-}" |
22 | |
23 | sminclude mtools multilib |
24 | |
25 | SRC_URI=( |
26 | http://www.kernel.org/pub/linux/utils/${PNAME}-ng/v${PVER/%.?/}/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | ) |
29 | |
30 | UP2DATE="updatecmd \"${HOMEPAGE}/v\$(updatecmd ${HOMEPAGE} | grep v.*/ | sed -n 's/.*v\(.*\)\/.*/\1/;$ p')/?C=M;O=A\" | grep -v 'rc' | lasttarball" |
31 | |
32 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} || die |
35 | |
36 | # fhs compatibility |
37 | all-abis sed -i 's:etc/adjtime:var/lib/hwclock/adjtime:' hwclock/hwclock.c || die |
38 | |
39 | # regen configure |
40 | autoreconf --verbose --install --force || die |
41 | } |
42 | |
43 | src_compile() |
44 | { |
45 | # enabled libmount-mount to utilize mount with a mtab symlink |
46 | # which is needed by systemd |
47 | |
48 | # we are using blkid from util linux now (--with-fsprobe=built --enable-fsck) |
49 | # which merges the old blkid from e2fsprogs and udevs libvolume |
50 | # see: http://lists.freedesktop.org/archives/hal-commit/2009-May/004936.html |
51 | mconfigure \ |
52 | --without-pam \ |
53 | --with-fsprobe=builtin \ |
54 | --enable-nls \ |
55 | --enable-agetty \ |
56 | --enable-cramfs \ |
57 | --enable-partx \ |
58 | --enable-raw \ |
59 | --enable-rdev \ |
60 | --enable-rename \ |
61 | --enable-schedutils \ |
62 | --enable-write \ |
63 | --disable-reset \ |
64 | --disable-login-utils \ |
65 | --disable-init \ |
66 | --disable-kill \ |
67 | --disable-last \ |
68 | --disable-mesg \ |
69 | --disable-wall \ |
70 | --enable-fsck \ |
71 | --enable-libmount-mount \ |
72 | --disable-silent-rules \ |
73 | || die |
74 | |
75 | mmake || die |
76 | } |
77 | |
78 | src_install() |
79 | { |
80 | # needed directories |
81 | mkeepdir /var/lib/hwclock || die |
82 | |
83 | mmake DESTDIR=${BINDIR} install || die |
84 | minstalldocs HISTORY MAINTAINER README VERSION || die |
85 | } |
86 | |
87 | preinstall() |
88 | { |
89 | if [[ ! -z $(magequery -n linux32) ]] |
90 | then |
91 | echo -e ${COLRED} |
92 | echo -e "Error: dev-util/linux32 is installed!!" |
93 | echo -e "linux32 is now provided by util-linux and doesn't need an extra package anymore." |
94 | echo -e "Please uninstall dev-util/linux32 first!" |
95 | echo -e ${COLDEFAULT} |
96 | die "dev-util/linux32 found!" |
97 | fi |
98 | } |