Magellan Linux

Contents of /trunk/core/lvm2/lvm2-2.02.93-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11299 - (show annotations) (download)
Fri Mar 2 15:19:51 2012 UTC (12 years, 2 months ago) by niro
File size: 1544 byte(s)
-filter --as-needed from LDFLAGS
1 # $Id$
2
3 PNAME="lvm2"
4 PVER="2.02.93"
5 PBUILD="r1"
6
7 SPLIT_PACKAGES="device-mapper lvm2"
8
9 PCAT="sys-fs"
10 HOMEPAGE="http://sourceware.org/lvm2/"
11
12 DM_DEPEND=">= virtual/glibc
13 >= sys-fs/udev-171"
14
15 LVM2_DEPEND=">= app-shells/bash-4.2
16 >= sys-libs/readline-6.2
17 >= sys-fs/udev-171
18 >= sys-apps/util-linux-2.19"
19
20 SRCDEPEND="${DM_DEPEND}
21 ${LVM2_DEPEND}"
22
23 SRCFILE="LVM2.${PVER}.tgz"
24 SRCDIR="${BUILDDIR}/LVM2.${PVER}"
25
26 sminclude mbuild multilib
27 msetfeature "!check"
28
29 SRC_URI=(
30 ftp://sources.redhat.com/pub/lvm2/${SRCFILE}
31 mirror://${PNAME}/${SRCFILE}
32 )
33
34 UP2DATE="updatecmd ftp://sources.redhat.com/pub/lvm2/ | grep .tgz | sed -n 's/.*LVM2.\(.*\).t.*/\1/;$ p'"
35
36 split_info_device-mapper()
37 {
38 DESCRIPTION="Device mapper userspace library and tools."
39 DEPEND="${DM_DEPEND}"
40 }
41
42 split_info_lvm2()
43 {
44 DESCRIPTION="Logical Volume Manager 2 utilities."
45 DEPEND="== sys-fs/device-mapper-${PVER}
46 ${LVM2_DEPEND}"
47 }
48
49 src_compile()
50 {
51 # filter as-needed
52 export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
53
54 mconfigure \
55 --bindir=/bin \
56 --sbindir=/sbin \
57 --libdir=/'$(mlibdir)' \
58 --with-usrlibdir=/usr/'$(mlibdir)' \
59 --with-udevdir=/lib/udev/rules.d \
60 --enable-pkgconfig \
61 --enable-readline \
62 --enable-dmeventd \
63 --enable-cmdlib \
64 --enable-applib \
65 --enable-udev_sync \
66 --enable-udev_rules \
67 --disable-selinux \
68 || die
69
70 mmake || die
71 }
72
73 src_install_device-mapper()
74 {
75 mmake DESTDIR=${BINDIR} install_device-mapper || die
76 }
77
78 src_install_lvm2()
79 {
80 mmake DESTDIR=${BINDIR} install_lvm2 || die
81 mmake -C liblvm DESTDIR=${BINDIR} install || die
82 }
83