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