Annotation of /smage/trunk/core/util-linux/util-linux-2.19-r2.smage2
Parent Directory | Revision Log
Revision 2792 -
(hide annotations)
(download)
Mon Aug 29 20:03:18 2011 UTC (12 years, 9 months ago) by niro
File size: 2682 byte(s)
Mon Aug 29 20:03:18 2011 UTC (12 years, 9 months ago) by niro
File size: 2682 byte(s)
-merged branch alx-0_6_0 into trunk
1 | niro | 2527 | # $Id$ |
2 | |||
3 | PNAME="util-linux" | ||
4 | PVER="2.19" | ||
5 | PBUILD="r2" | ||
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.8 | ||
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 | REMOVE_DEPRECATED_MAGE_TARGETS=1 | ||
24 | # keep fullfeatured /sbin/blkid for better fstype guessing and uuid handling | ||
25 | # mcookie is needed by xorg's startx | ||
26 | ALX_ONLY_KEEP="bin/umount sbin/cfdisk sbin/sfdisk sbin/blkid usr/bin/mcookie usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*" | ||
27 | sminclude mtools multilib cleanutils alx-split | ||
28 | |||
29 | SRC_URI=( | ||
30 | http://www.kernel.org/pub/linux/utils/${PNAME}/v${PVER/%.?/}/${SRCFILE} | ||
31 | mirror://${PNAME}/${SRCFILE} | ||
32 | ) | ||
33 | |||
34 | UP2DATE="updatecmd \"${HOMEPAGE}/v\$(updatecmd ${HOMEPAGE} | grep v.*/ | sed -n 's/.*v\(.*\)\/.*/\1/;$ p')/?C=M;O=A\" | grep -v 'rc' | lasttarball" | ||
35 | |||
36 | src_prepare() | ||
37 | { | ||
38 | munpack ${SRCFILE} || die | ||
39 | |||
40 | # fhs compatibility | ||
41 | all-abis sed -i 's:etc/adjtime:var/lib/hwclock/adjtime:' hwclock/hwclock.c || die | ||
42 | |||
43 | # regen configure | ||
44 | autoreconf --verbose --install --force || die | ||
45 | } | ||
46 | |||
47 | src_compile() | ||
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 | --disable-silent-rules \ | ||
73 | || die | ||
74 | |||
75 | mmake || die | ||
76 | } | ||
77 | |||
78 | alx_generic_src_install() | ||
79 | { | ||
80 | # needed directories | ||
81 | mkeepdir /var/lib/hwclock || die | ||
82 | |||
83 | mmake DESTDIR=${BINDIR} install || die | ||
84 | minstalldocs HISTORY MAINTAINER README VERSION || die | ||
85 | |||
86 | # only keep binaries which are not provided by busybox | ||
87 | niro | 2529 | zapmost ${BINDIR}/bin findmnt lsblk umount || die |
88 | niro | 2527 | zapmost ${BINDIR}/usr/bin chkdupexe col colcrt colrm column cytune ddate \ |
89 | fallocate ionice ipcmk isosize line look lscpu mcookie namei pg rename \ | ||
90 | rev script scriptreplay setterm tailf ul unshare uuidgen whereis || die | ||
91 | zapmost ${BINDIR}/sbin agetty blkid blockdev cfdisk ctrlaltdel fsck fsck.cramfs \ | ||
92 | fsck.minix fsfreeze fstrim mkfs mkfs.bfs mkfs.cramfs raw sfdisk swaplabel wipefs || die | ||
93 | zapmost ${BINDIR}/usr/sbin addpart delpart fdformat ldattach partx rtcwake tunelp uuidd || die | ||
94 | } |