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 112 - (show annotations) (download)
Wed Jan 6 13:32:50 2010 UTC (14 years, 3 months ago) by niro
File size: 1814 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 MCORE_ONLY_KEEP="sbin/cfdisk sbin/sfdisk usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
25 sminclude mtools multilib
26
27 SRC_URI=(
28 http://www.kernel.org/pub/linux/utils/${PNAME}-ng/v${PVER/%.?/}/${SRCFILE}
29 mirror://${PNAME}/${SRCFILE}
30 )
31
32 UP2DATE="updatecmd \"${HOMEPAGE}/v$(updatecmd ${HOMEPAGE} | grep v.*/ | sed -n 's/.*v\(.*\)\/.*/\1/;$ p')/?C=M;O=A\" | grep -v 'rc' | lasttarball"
33
34 src_prepare()
35 {
36 munpack ${SRCFILE} || die
37
38 # fhs compatibility
39 all-abis sed -i 's:etc/adjtime:var/lib/hwclock/adjtime:' hwclock/hwclock.c || die
40 }
41
42 src_compile()
43 {
44 # we are using blkid from util linux now (--with-fsprobe=built --enable-fsck)
45 # which merges the old blkid from e2fsprogs and udevs libvolume
46 # see: http://lists.freedesktop.org/archives/hal-commit/2009-May/004936.html
47 mconfigure \
48 --without-pam \
49 --with-fsprobe=builtin \
50 --enable-nls \
51 --enable-agetty \
52 --enable-cramfs \
53 --enable-partx \
54 --enable-raw \
55 --enable-rdev \
56 --enable-rename \
57 --enable-schedutils \
58 --enable-write \
59 --disable-reset \
60 --disable-login-utils \
61 --disable-init \
62 --disable-kill \
63 --disable-last \
64 --disable-mesg \
65 --disable-wall \
66 --enable-fsck \
67 || die
68
69 mmake || die
70 }
71
72 mcore_generic_src_install()
73 {
74 # needed directories
75 mkeepdir /var/lib/hwclock || die
76
77 mmake DESTDIR=${BINDIR} install || die
78 minstalldocs HISTORY MAINTAINER README VERSION || die
79 }

Properties

Name Value
svn:keywords Id