Magellan Linux

Contents of /smage/trunk/core/lvm2/lvm2-2.02.114-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6650 - (show annotations) (download)
Wed Jul 15 12:01:34 2015 UTC (8 years, 10 months ago) by niro
File size: 1676 byte(s)
auto added: ver bump to 2.02.114-r2
1 # $Id$
2
3 PNAME="lvm2"
4 PVER="2.02.114"
5 PBUILD="r2"
6
7 SPLIT_PACKAGES="device-mapper lvm2"
8
9 PCAT="sys-fs"
10 HOMEPAGE="http://sourceware.org/lvm2/"
11
12 LIBUDEV_DEPEND=">= sys-fs/libudev-218"
13 DM_DEPEND=">= virtual/glibc
14 ${LIBUDEV_DEPEND}"
15
16 LVM2_DEPEND=">= app-shells/bash-4.2
17 ${LIBUDEV_DEPEND}
18 >= sys-apps/util-linux-2.24"
19
20 SDEPEND="${DM_DEPEND}
21 ${LVM2_DEPEND}
22 >= sys-fs/libudev-dev-218
23 >= sys-apps/util-linux-dev-2.24"
24
25 SRCFILE="LVM2.${PVER}.tgz"
26 SRCDIR="${BUILDDIR}/LVM2.${PVER}"
27
28 sminclude mbuild multilib udev
29 msetfeature "!check"
30
31 SRC_URI=(
32 http://mirrors.kernel.org/sourceware/lvm2/${SRCFILE}
33 ftp://sources.redhat.com/pub/lvm2/${SRCFILE}
34 mirror://${PNAME}/${SRCFILE}
35 )
36
37 UP2DATE="updatecmd http://mirrors.kernel.org/sourceware/lvm2/ | grep .tgz | sed -n 's/.*LVM2.\(.*\).t.*/\1/;$ p'"
38
39 split_info_device-mapper()
40 {
41 DESCRIPTION="Device mapper userspace library and tools."
42 DEPEND="${DM_DEPEND}"
43 }
44
45 split_info_lvm2()
46 {
47 DESCRIPTION="Logical Volume Manager 2 utilities."
48 DEPEND="== sys-fs/device-mapper-${PVER}
49 ${LVM2_DEPEND}"
50 }
51
52 src_compile()
53 {
54 # disable multilib-abi ldflags to fix linking issues when lvm2 is already installed
55 export EXPORT_ABI_LDFLAGS="false"
56
57 mconfigure \
58 --with-usrlibdir=/usr/'$(mlibdir)' \
59 --with-udevdir=$(mget-udev-rules-dir) \
60 --enable-pkgconfig \
61 --disable-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