Contents of /branches/magellan-next/core/util-linux/util-linux-2.20.1-r1.smage2
Parent Directory | Revision Log
Revision 9757 -
(show annotations)
(download)
Tue Jan 10 16:15:23 2012 UTC (12 years, 8 months ago) by niro
File size: 2420 byte(s)
Tue Jan 10 16:15:23 2012 UTC (12 years, 8 months ago) by niro
File size: 2420 byte(s)
-fixed doc installation
1 | # $Id$ |
2 | |
3 | PNAME="util-linux" |
4 | PVER="2.20.1" |
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 | ftp://ftp.infradead.org/pub/util-linux/v${PVER/%.?/}/${SRCFILE} |
27 | http://www.kernel.org/pub/linux/utils/${PNAME}-ng/v${PVER/%.?/}/${SRCFILE} |
28 | http://www.kernel.org/pub/linux/utils/${PNAME}-ng/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 | autoreconf --verbose --install --force || 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 | --without-pam \ |
55 | --with-fsprobe=builtin \ |
56 | --enable-nls \ |
57 | --enable-agetty \ |
58 | --enable-cramfs \ |
59 | --enable-partx \ |
60 | --enable-raw \ |
61 | --enable-rdev \ |
62 | --enable-rename \ |
63 | --enable-schedutils \ |
64 | --enable-write \ |
65 | --disable-reset \ |
66 | --disable-login-utils \ |
67 | --disable-init \ |
68 | --disable-kill \ |
69 | --disable-last \ |
70 | --disable-mesg \ |
71 | --disable-wall \ |
72 | --enable-fsck \ |
73 | --enable-libmount-mount \ |
74 | --disable-silent-rules \ |
75 | || die |
76 | |
77 | mmake || die |
78 | } |
79 | |
80 | src_install() |
81 | { |
82 | # needed directories |
83 | mkeepdir /var/lib/hwclock || die |
84 | |
85 | mmake DESTDIR=${BINDIR} install || die |
86 | minstalldocs AUTHORS COPYING ChangeLog DECRECATED NEWS README* TODO || die |
87 | } |
88 | |
89 | preinstall() |
90 | { |
91 | if [[ ! -z $(magequery -n linux32) ]] |
92 | then |
93 | echo -e ${COLRED} |
94 | echo -e "Error: dev-util/linux32 is installed!!" |
95 | echo -e "linux32 is now provided by util-linux and doesn't need an extra package anymore." |
96 | echo -e "Please uninstall dev-util/linux32 first!" |
97 | echo -e ${COLDEFAULT} |
98 | die "dev-util/linux32 found!" |
99 | fi |
100 | } |