Contents of /smage/trunk/core/util-linux/util-linux-2.20-r1.smage2
Parent Directory | Revision Log
Revision 1743 -
(show annotations)
(download)
Mon Sep 19 08:53:45 2011 UTC (12 years, 7 months ago) by niro
File size: 2844 byte(s)
Mon Sep 19 08:53:45 2011 UTC (12 years, 7 months ago) by niro
File size: 2844 byte(s)
auto added: ver bump to 2.20-r1
1 | # $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 | mirror://${PNAME}/${SRCFILE} |
33 | ) |
34 | |
35 | UP2DATE="updatecmd \"${HOMEPAGE}/v\$(updatecmd ${HOMEPAGE} | grep v.*/ | sed -n 's/.*v\(.*\)\/.*/\1/;$ p')/?C=M;O=A\" | grep -v 'rc' | lasttarball" |
36 | |
37 | src_prepare() |
38 | { |
39 | munpack ${SRCFILE} || die |
40 | |
41 | # fhs compatibility |
42 | all-abis sed -i 's:etc/adjtime:var/lib/hwclock/adjtime:' hwclock/hwclock.c || die |
43 | |
44 | # regen configure |
45 | autoreconf --verbose --install --force || die |
46 | } |
47 | |
48 | src_compile() |
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 | --disable-silent-rules \ |
74 | || die |
75 | |
76 | mmake || die |
77 | } |
78 | |
79 | mcore_generic_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 | # only keep binaries which are not provided by busybox |
88 | zapmost ${BINDIR}/bin findmnt lsblk umount || die |
89 | zapmost ${BINDIR}/usr/bin chkdupexe col colcrt colrm column cytune ddate \ |
90 | fallocate ionice ipcmk isosize line look lscpu mcookie namei pg rename \ |
91 | rev script scriptreplay setterm tailf ul unshare uuidgen whereis || die |
92 | zapmost ${BINDIR}/sbin agetty blkid blockdev cfdisk ctrlaltdel fsck fsck.cramfs \ |
93 | fsck.minix fsfreeze fstrim mkfs mkfs.bfs mkfs.cramfs raw sfdisk swaplabel wipefs || die |
94 | zapmost ${BINDIR}/usr/sbin addpart delpart fdformat ldattach partx rtcwake tunelp uuidd || die |
95 | } |