Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30211 - (hide annotations) (download)
Mon Nov 6 10:15:20 2017 UTC (6 years, 6 months ago) by niro
File size: 1632 byte(s)
auto added: ver bump to 2.02.176-r1
1 niro 30211 # $Id$
2    
3     PNAME="lvm2"
4     PVER="2.02.176"
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    
21     SDEPEND="${DM_DEPEND}
22     ${LVM2_DEPEND}"
23    
24     SRCFILE="LVM2.${PVER}.tgz"
25     SRCDIR="${BUILDDIR}/LVM2.${PVER}"
26    
27     sminclude mbuild multilib udev
28     msetfeature "!check"
29    
30     SRC_URI=(
31     http://mirrors.kernel.org/sourceware/lvm2/${SRCFILE}
32     ftp://sources.redhat.com/pub/lvm2/${SRCFILE}
33     mirror://${PNAME}/${SRCFILE}
34     )
35    
36     UP2SEPERATOR="LVM2."
37     UP2DATE="updatecmd http://mirrors.kernel.org/sourceware/lvm2/ | highesttarball tgz"
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     --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