Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 31270 - (show annotations) (download)
Tue Jun 19 09:02:56 2018 UTC (5 years, 10 months ago) by niro
File size: 1656 byte(s)
-added missing libaio dep
1 # $Id$
2
3 PNAME="lvm2"
4 PVER="2.02.179"
5 PBUILD="r1"
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 >= sys-libs/readline-7.0
18 ${LIBUDEV_DEPEND}
19 >= sys-apps/util-linux-2.24
20 >= dev-libs/libaio-0.3"
21
22 SDEPEND="${DM_DEPEND}
23 ${LVM2_DEPEND}"
24
25 SRCFILE="LVM2.${PVER}.tgz"
26 SRCDIR="${BUILDDIR}/LVM2.${PVER}"
27
28 sminclude multilib mbuild 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 UP2SEPERATOR="LVM2."
38 UP2DATE="updatecmd http://mirrors.kernel.org/sourceware/lvm2/ | highesttarball tgz"
39
40 split_info_device-mapper()
41 {
42 DESCRIPTION="Device mapper userspace library and tools."
43 DEPEND="${DM_DEPEND}"
44 }
45
46 split_info_lvm2()
47 {
48 DESCRIPTION="Logical Volume Manager 2 utilities."
49 DEPEND="== sys-fs/device-mapper-${PVER}
50 ${LVM2_DEPEND}"
51 }
52
53 src_compile()
54 {
55 # disable multilib-abi ldflags to fix linking issues when lvm2 is already installed
56 export EXPORT_ABI_LDFLAGS="false"
57
58 mconfigure \
59 --with-usrlibdir=/usr/'$(mlibdir)' \
60 --with-udevdir=$(mget-udev-rules-dir) \
61 --enable-pkgconfig \
62 --enable-readline \
63 --enable-dmeventd \
64 --enable-cmdlib \
65 --enable-applib \
66 --enable-udev_sync \
67 --enable-udev_rules \
68 --disable-selinux \
69 || die
70
71 mmake || die
72 }
73
74 src_install_device-mapper()
75 {
76 mmake DESTDIR=${BINDIR} install_device-mapper || die
77 }
78
79 src_install_lvm2()
80 {
81 mmake DESTDIR=${BINDIR} install_lvm2 || die
82 mmake -C liblvm DESTDIR=${BINDIR} install || die
83 }
84