Magellan Linux

Contents of /branches/magellan-next/core/util-linux/util-linux-2.18-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5916 - (show annotations) (download)
Tue Aug 17 15:16:52 2010 UTC (13 years, 8 months ago) by niro
File size: 1775 byte(s)
auto added: ver bump to 2.18-r1
1 # $Id: util-linux-2.16.1-r2.smage2 3631 2009-10-27 22:33:50Z niro $
2
3 PNAME="util-linux"
4 PVER="2.18"
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.7
15 >= sys-fs/e2fsprogs-1.41"
16
17 SDEPEND=">= virtual/kernel-headers
18 >= sys-apps/sed-4
19 >= sys-dev/gettext-0.18"
20
21 SRCFILE="${PNAME}-ng-${PVER}.tar.bz2"
22 SRCDIR="${BUILDDIR}/${PNAME}-ng-${PVER}"
23
24 sminclude mtools multilib
25
26 SRC_URI=(
27 http://www.kernel.org/pub/linux/utils/${PNAME}-ng/v${PVER/%.?/}/${SRCFILE}
28 mirror://${PNAME}/${SRCFILE}
29 )
30
31 UP2DATE="updatecmd \"${HOMEPAGE}/v$(updatecmd ${HOMEPAGE} | grep v.*/ | sed -n 's/.*v\(.*\)\/.*/\1/;$ p')/?C=M;O=A\" | grep -v 'rc' | lasttarball"
32
33 src_prepare()
34 {
35 munpack ${SRCFILE} || die
36
37 # fhs compatibility
38 all-abis sed -i 's:etc/adjtime:var/lib/hwclock/adjtime:' hwclock/hwclock.c || die
39 }
40
41 src_compile()
42 {
43 # we are using blkid from util linux now (--with-fsprobe=built --enable-fsck)
44 # which merges the old blkid from e2fsprogs and udevs libvolume
45 # see: http://lists.freedesktop.org/archives/hal-commit/2009-May/004936.html
46 mconfigure \
47 --without-pam \
48 --with-fsprobe=builtin \
49 --enable-nls \
50 --enable-agetty \
51 --enable-cramfs \
52 --enable-partx \
53 --enable-raw \
54 --enable-rdev \
55 --enable-rename \
56 --enable-schedutils \
57 --enable-write \
58 --disable-reset \
59 --disable-login-utils \
60 --disable-init \
61 --disable-kill \
62 --disable-last \
63 --disable-mesg \
64 --disable-wall \
65 --enable-fsck \
66 || die
67
68 mmake || die
69 }
70
71 src_install()
72 {
73 # needed directories
74 mkeepdir /var/lib/hwclock || die
75
76 mmake DESTDIR=${BINDIR} install || die
77 minstalldocs HISTORY MAINTAINER README VERSION || die
78 }