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