Magellan Linux

Contents of /trunk/core/util-linux/util-linux-2.14.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1132 - (show annotations) (download)
Wed Apr 22 20:59:00 2009 UTC (15 years ago) by niro
File size: 1499 byte(s)
auto added: ver bump to 2.14.2-r1
1 # $Id$
2
3 PNAME="util-linux"
4 PVER="2.14.2"
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.17"
20
21 SRCFILE="${PNAME}-ng-${PVER}.tar.bz2"
22 SRCDIR="${BUILDDIR}/${PNAME}-ng-${PVER}"
23
24 sminclude mtools
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 cd ${SRCDIR}
37
38 # fhs compatibility
39 sed -i 's:etc/adjtime:var/lib/hwclock/adjtime:' hwclock/hwclock.c || die
40 }
41
42 src_compile()
43 {
44 cd ${SRCDIR}
45
46 mconfigure \
47 --without-pam \
48 --with-fsprobe=blkid \
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 || die
66
67 mmake || die
68 }
69
70 src_install()
71 {
72 cd ${SRCDIR}
73 # needed directories
74 mkeepdir /var/lib/hwclock || die
75
76 mmake DESTDIR=${BINDIR} install || die
77 minstalldocs HISTORY MAINTAINER README VERSION || die
78 }

Properties

Name Value
svn:keywords Id