Magellan Linux

Contents of /smage/trunk/core/util-linux/util-linux-2.20-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2963 - (show annotations) (download)
Wed Sep 7 15:05:41 2011 UTC (12 years, 8 months ago) by niro
File size: 2724 byte(s)
-use a mirror, as kernel.org is down atm
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 fullfeatured /sbin/blkid for better fstype guessing and uuid handling
24 # mcookie is needed by xorg's startx
25 ALX_ONLY_KEEP="bin/umount sbin/cfdisk sbin/sfdisk sbin/blkid usr/bin/mcookie usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
26 sminclude mtools multilib cleanutils alx-split
27
28 SRC_URI=(
29 http://www.kernel.org/pub/linux/utils/${PNAME}/v${PVER/%.?/}/${SRCFILE}
30 http://ftp.portlane.com/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 zapmost ${BINDIR}/bin findmnt lsblk umount || die
88 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 }