Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/util-linux/util-linux-2.19-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1964 - (show annotations) (download)
Fri May 6 22:54:41 2011 UTC (13 years, 1 month ago) by niro
File size: 2681 byte(s)
-keep mcookie
1 # $Id$
2
3 PNAME="util-linux"
4 PVER="2.19"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-apps"
8 STATE="unstable"
9
10 DESCRIPTION="Various useful Linux utilities."
11 HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux-ng/"
12
13 DEPEND=">= virtual/glibc
14 >= sys-libs/ncurses-5.8
15 >= sys-fs/e2fsprogs-1.41"
16
17 SDEPEND=">= virtual/kernel-headers
18 >= virtual/sed
19 >= sys-dev/gettext-0.18"
20
21 SRCFILE="${PNAME}-${PVER}.tar.bz2"
22 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
23
24 REMOVE_DEPRECATED_MAGE_TARGETS=1
25 # keep fullfeatured /sbin/blkid for better fstype guessing and uuid handling
26 # mcookie is needed by xorg's startx
27 ALX_ONLY_KEEP="sbin/cfdisk sbin/sfdisk sbin/blkid usr/bin/mcookie usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
28 sminclude mtools multilib cleanutils alx-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 alx_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 || 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 }