Magellan Linux

Annotation of /branches/R11-unstable/core/lvm2/lvm2-2.02.114-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25012 - (hide annotations) (download)
Tue Nov 25 02:49:42 2014 UTC (9 years, 5 months ago) by niro
File size: 1641 byte(s)
-release branches/R11-unstable
1 niro 24763 # $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     >= sys-libs/readline-6.3
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     UP2DATE="updatecmd http://mirrors.kernel.org/sourceware/lvm2/ | grep .tgz | sed -n 's/.*LVM2.\(.*\).t.*/\1/;$ p'"
37    
38     split_info_device-mapper()
39     {
40     DESCRIPTION="Device mapper userspace library and tools."
41     DEPEND="${DM_DEPEND}"
42     }
43    
44     split_info_lvm2()
45     {
46     DESCRIPTION="Logical Volume Manager 2 utilities."
47     DEPEND="== sys-fs/device-mapper-${PVER}
48     ${LVM2_DEPEND}"
49     }
50    
51     src_compile()
52     {
53     # disable multilib-abi ldflags to fix linking issues when lvm2 is already installed
54     export EXPORT_ABI_LDFLAGS="false"
55    
56     mconfigure \
57     --with-usrlibdir=/usr/'$(mlibdir)' \
58     --with-udevdir=$(mget-udev-rules-dir) \
59     --enable-pkgconfig \
60     --enable-readline \
61     --enable-dmeventd \
62     --enable-cmdlib \
63     --enable-applib \
64     --enable-udev_sync \
65     --enable-udev_rules \
66     --disable-selinux \
67     || die
68    
69     mmake || die
70     }
71    
72     src_install_device-mapper()
73     {
74     mmake DESTDIR=${BINDIR} install_device-mapper || die
75     }
76    
77     src_install_lvm2()
78     {
79     mmake DESTDIR=${BINDIR} install_lvm2 || die
80     mmake -C liblvm DESTDIR=${BINDIR} install || die
81     }
82