Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11301 - (hide annotations) (download)
Fri Mar 2 15:49:02 2012 UTC (12 years, 3 months ago) by niro
File size: 1732 byte(s)
-fixed multilib and linking issues and do not filter --as-needed anymore
1 niro 11297 # $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 niro 11301 src_prepare()
50     {
51     munpack ${SRCFILE} || die
52     # fix multilib issues
53     all-abis 'sed -i "s:CC ?= @CC@:CC = @CC@:" make.tmpl.in' || die
54     }
55    
56 niro 11297 src_compile()
57     {
58 niro 11301 # disable multilib-abi ldflags to fix linking issues when lvm2 is already installed
59     export EXPORT_ABI_LDFLAGS="false"
60 niro 11299
61 niro 11297 mconfigure \
62     --bindir=/bin \
63     --sbindir=/sbin \
64     --libdir=/'$(mlibdir)' \
65     --with-usrlibdir=/usr/'$(mlibdir)' \
66     --with-udevdir=/lib/udev/rules.d \
67     --enable-pkgconfig \
68     --enable-readline \
69     --enable-dmeventd \
70     --enable-cmdlib \
71     --enable-applib \
72     --enable-udev_sync \
73     --enable-udev_rules \
74 niro 11298 --disable-selinux \
75 niro 11297 || die
76    
77     mmake || die
78     }
79    
80     src_install_device-mapper()
81     {
82     mmake DESTDIR=${BINDIR} install_device-mapper || die
83     }
84    
85     src_install_lvm2()
86     {
87     mmake DESTDIR=${BINDIR} install_lvm2 || die
88     mmake -C liblvm DESTDIR=${BINDIR} install || die
89     }
90