Magellan Linux

Contents of /smage/trunk/core/util-linux/util-linux-2.16.1-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 544 - (show annotations) (download)
Sat May 8 10:16:23 2010 UTC (13 years, 11 months ago) by niro
File size: 2103 byte(s)
auto added: ver bump to 2.16.1-r2
1 # $Id$
2
3 PNAME="util-linux"
4 PVER="2.16.1"
5 PBUILD="r2"
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.7
15 >= sys-fs/e2fsprogs-1.41"
16
17 SDEPEND=">= virtual/kernel-headers
18 >= sys-apps/sed-4
19 >= sys-dev/gettext-0.17"
20
21 SRCFILE="${PNAME}-ng-${PVER}.tar.bz2"
22 SRCDIR="${BUILDDIR}/${PNAME}-ng-${PVER}"
23
24 # keep bin/mount too, need a fully featured one for fstype guessing -> mount -f --guess-fstype
25 #MCORE_ONLY_KEEP="sbin/cfdisk sbin/sfdisk bin/mount usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
26 # keep fullfeatured sbbin/blkid for better fsyte guessing and uuid handling
27 MCORE_ONLY_KEEP="sbin/cfdisk sbin/sfdisk sbin/blkid usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
28 sminclude mtools multilib mcore-split
29
30 SRC_URI=(
31 http://www.kernel.org/pub/linux/utils/${PNAME}-ng/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
45 src_compile()
46 {
47 # we are using blkid from util linux now (--with-fsprobe=built --enable-fsck)
48 # which merges the old blkid from e2fsprogs and udevs libvolume
49 # see: http://lists.freedesktop.org/archives/hal-commit/2009-May/004936.html
50 mconfigure \
51 --without-pam \
52 --with-fsprobe=builtin \
53 --enable-nls \
54 --enable-agetty \
55 --enable-cramfs \
56 --enable-partx \
57 --enable-raw \
58 --enable-rdev \
59 --enable-rename \
60 --enable-schedutils \
61 --enable-write \
62 --disable-reset \
63 --disable-login-utils \
64 --disable-init \
65 --disable-kill \
66 --disable-last \
67 --disable-mesg \
68 --disable-wall \
69 --enable-fsck \
70 || die
71
72 mmake || die
73 }
74
75 mcore_generic_src_install()
76 {
77 # needed directories
78 mkeepdir /var/lib/hwclock || die
79
80 mmake DESTDIR=${BINDIR} install || die
81 minstalldocs HISTORY MAINTAINER README VERSION || die
82 }

Properties

Name Value
svn:keywords Id