Annotation of /smage/trunk/core/util-linux/util-linux-2.20-r1.smage2
Parent Directory | Revision Log
Revision 1744 -
(hide annotations)
(download)
Mon Sep 19 08:56:51 2011 UTC (12 years, 7 months ago) by niro
File size: 2924 byte(s)
Mon Sep 19 08:56:51 2011 UTC (12 years, 7 months ago) by niro
File size: 2924 byte(s)
-kernel.org is down, use a gentoo-mirror as fallback
1 | niro | 1743 | # $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 | >= virtual/sed | ||
18 | >= sys-dev/gettext-0.18" | ||
19 | |||
20 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
22 | |||
23 | # keep bin/mount too, need a fully featured one for fstype guessing -> mount -f --guess-fstype | ||
24 | #MCORE_ONLY_KEEP="sbin/cfdisk sbin/sfdisk bin/mount usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*" | ||
25 | # keep fullfeatured sbbin/blkid for better fsyte guessing and uuid handling | ||
26 | # mcookie is needed by xorg's startx | ||
27 | MCORE_ONLY_KEEP="bin/umount sbin/cfdisk sbin/sfdisk sbin/blkid usr/bin/mcookie usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*" | ||
28 | sminclude mtools multilib cleanutils mcore-split | ||
29 | |||
30 | SRC_URI=( | ||
31 | http://www.kernel.org/pub/linux/utils/${PNAME}/v${PVER/%.?/}/${SRCFILE} | ||
32 | niro | 1744 | http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE} |
33 | niro | 1743 | mirror://${PNAME}/${SRCFILE} |
34 | ) | ||
35 | |||
36 | UP2DATE="updatecmd \"${HOMEPAGE}/v\$(updatecmd ${HOMEPAGE} | grep v.*/ | sed -n 's/.*v\(.*\)\/.*/\1/;$ p')/?C=M;O=A\" | grep -v 'rc' | lasttarball" | ||
37 | |||
38 | src_prepare() | ||
39 | { | ||
40 | munpack ${SRCFILE} || die | ||
41 | |||
42 | # fhs compatibility | ||
43 | all-abis sed -i 's:etc/adjtime:var/lib/hwclock/adjtime:' hwclock/hwclock.c || die | ||
44 | |||
45 | # regen configure | ||
46 | autoreconf --verbose --install --force || die | ||
47 | } | ||
48 | |||
49 | src_compile() | ||
50 | { | ||
51 | # we are using blkid from util linux now (--with-fsprobe=built --enable-fsck) | ||
52 | # which merges the old blkid from e2fsprogs and udevs libvolume | ||
53 | # see: http://lists.freedesktop.org/archives/hal-commit/2009-May/004936.html | ||
54 | mconfigure \ | ||
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 | --disable-silent-rules \ | ||
75 | || die | ||
76 | |||
77 | mmake || die | ||
78 | } | ||
79 | |||
80 | mcore_generic_src_install() | ||
81 | { | ||
82 | # needed directories | ||
83 | mkeepdir /var/lib/hwclock || die | ||
84 | |||
85 | mmake DESTDIR=${BINDIR} install || die | ||
86 | minstalldocs HISTORY MAINTAINER README VERSION || die | ||
87 | |||
88 | # only keep binaries which are not provided by busybox | ||
89 | zapmost ${BINDIR}/bin findmnt lsblk umount || die | ||
90 | zapmost ${BINDIR}/usr/bin chkdupexe col colcrt colrm column cytune ddate \ | ||
91 | fallocate ionice ipcmk isosize line look lscpu mcookie namei pg rename \ | ||
92 | rev script scriptreplay setterm tailf ul unshare uuidgen whereis || die | ||
93 | zapmost ${BINDIR}/sbin agetty blkid blockdev cfdisk ctrlaltdel fsck fsck.cramfs \ | ||
94 | fsck.minix fsfreeze fstrim mkfs mkfs.bfs mkfs.cramfs raw sfdisk swaplabel wipefs || die | ||
95 | zapmost ${BINDIR}/usr/sbin addpart delpart fdformat ldattach partx rtcwake tunelp uuidd || die | ||
96 | } |