Magellan Linux

Annotation of /branches/magellan-next/core/lvm2/lvm2-2.02.85-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7955 - (hide annotations) (download)
Sun Jun 5 17:21:14 2011 UTC (12 years, 11 months ago) by niro
File size: 1470 byte(s)
-do not prefix binaries with /usr
1 niro 7955 # $Id$
2    
3     PNAME="lvm2"
4     PVER="2.02.85"
5     PBUILD="r2"
6    
7     SPLIT_PACKAGES="device-mapper lvm2"
8     PCATEGORIE="sys-fs"
9    
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
27    
28     SRC_URI=(
29     ftp://sources.redhat.com/pub/lvm2/${SRCFILE}
30     mirror://${PNAME}/${SRCFILE}
31     )
32    
33     UP2DATE="updatecmd ftp://sources.redhat.com/pub/lvm2/ | grep .tgz | sed -n 's/.*LVM2.\(.*\).t.*/\1/;$ p'"
34    
35     split_info_device-mapper()
36     {
37     DESCRIPTION="Device mapper userspace library and tools."
38     DEPEND="${DM_DEPEND}"
39     }
40    
41     split_info_lvm2()
42     {
43     DESCRIPTION="Logical Volume Manager 2 utilities."
44     DEPEND="== sys-fs/device-mapper-${PVER}
45     ${LVM2_DEPEND}"
46     }
47    
48     src_compile()
49     {
50     cd ${SRCDIR}
51    
52     mconfigure \
53     --bindir=/bin \
54     --sbindir=/sbin \
55     --libdir=/$(mlibdir) \
56     --with-usrlibdir=/usr/$(mlibdir) \
57     --with-udevdir=/lib/udev/rules.d \
58     --enable-pkgconfig \
59     --enable-readline \
60     --enable-dmeventd \
61     --enable-cmdlib \
62     --enable-applib \
63     --enable-udev_sync \
64     --enable-udev_rules \
65     || die
66    
67     mmake || die
68     }
69    
70     src_install_device-mapper()
71     {
72     cd ${SRCDIR}
73     mmake DESTDIR=${BINDIR} install_device-mapper || die
74     }
75    
76     src_install_lvm2()
77     {
78     cd ${SRCDIR}
79     mmake DESTDIR=${BINDIR} install_lvm2 || die
80     mmake -C liblvm DESTDIR=${BINDIR} install || die
81     }
82