Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/lvm2: ChangeLog lvm2-2.02.36.ebuild
Date: Wed, 30 Apr 2008 06:53:28
Message-Id: E1Jr6Bx-0007UA-5g@stork.gentoo.org
1 robbat2 08/04/30 06:53:25
2
3 Modified: ChangeLog
4 Added: lvm2-2.02.36.ebuild
5 Log:
6 Version bump per bug 219091.
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.134 sys-fs/lvm2/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/ChangeLog?rev=1.134&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/ChangeLog?rev=1.134&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/ChangeLog?r1=1.133&r2=1.134
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v
19 retrieving revision 1.133
20 retrieving revision 1.134
21 diff -p -w -b -B -u -u -r1.133 -r1.134
22 --- ChangeLog 14 Mar 2008 10:33:39 -0000 1.133
23 +++ ChangeLog 30 Apr 2008 06:53:24 -0000 1.134
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sys-fs/lvm2
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v 1.133 2008/03/14 10:33:39 phreak Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v 1.134 2008/04/30 06:53:24 robbat2 Exp $
29 +
30 +*lvm2-2.02.36 (30 Apr 2008)
31 +
32 + 30 Apr 2008; Robin H. Johnson <robbat2@g.o>
33 + +files/lvm.conf-2.02.36.patch, +lvm2-2.02.36.ebuild:
34 + Version bump per bug 219091.
35
36 14 Mar 2008; Christian Heim <phreak@g.o> metadata.xml:
37 Removing Eric Edgar (rocket, #78547) from metadata.xml.
38
39
40
41 1.1 sys-fs/lvm2/lvm2-2.02.36.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/lvm2-2.02.36.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/lvm2-2.02.36.ebuild?rev=1.1&content-type=text/plain
45
46 Index: lvm2-2.02.36.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/lvm2-2.02.36.ebuild,v 1.1 2008/04/30 06:53:24 robbat2 Exp $
51
52 inherit eutils multilib
53
54 DESCRIPTION="User-land utilities for LVM2 (device-mapper) software."
55 HOMEPAGE="http://sources.redhat.com/lvm2/"
56 SRC_URI="ftp://sources.redhat.com/pub/lvm2/${PN/lvm/LVM}.${PV}.tgz"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
61
62 IUSE="readline static clvm cman gulm lvm1 selinux"
63
64 DEPEND=">=sys-fs/device-mapper-1.02.24
65 clvm? ( >=sys-cluster/dlm-1.01.00
66 cman? ( >=sys-cluster/cman-1.01.00 )
67 gulm? ( >=sys-cluster/gulm-1.00.00 ) )"
68
69 RDEPEND="${DEPEND}
70 !sys-fs/lvm-user
71 !sys-fs/clvm"
72
73 S="${WORKDIR}/${PN/lvm/LVM}.${PV}"
74
75 pkg_setup() {
76 use nolvmstatic && eerror "USE=nolvmstatic has changed to USE=static via package.use"
77 use nolvm1 && eerror "USE=nolvm1 has changed to USE=lvm1 via package.use"
78 }
79
80 src_unpack() {
81 unpack ${A}
82 epatch "${FILESDIR}"/lvm.conf-2.02.36.patch
83 }
84
85 src_compile() {
86 # Static compile of lvm2 so that the install described in the handbook works
87 # http://www.gentoo.org/doc/en/lvm2.xml
88 # fixes http://bugs.gentoo.org/show_bug.cgi?id=84463
89 local myconf
90 local buildmode
91
92 # fsadm is broken, don't include it (2.02.28)
93 myconf="${myconf} --enable-dmeventd --enable-cmdlib"
94
95 # Most of this package does weird stuff.
96 # The build options are tristate, and --without is NOT supported
97 # options: 'none', 'internal', 'shared'
98 if use static ; then
99 einfo "Building static LVM, for usage inside genkernel"
100 myconf="${myconf} --enable-static_link"
101 buildmode="internal"
102 else
103 ewarn "Building shared LVM, it will not work inside genkernel!"
104 buildmode="shared"
105 fi
106
107 # dmeventd requires mirrors to be internal, and snapshot available
108 # so we cannot disable them
109 myconf="${myconf} --with-mirrors=internal"
110 myconf="${myconf} --with-snapshots=internal"
111
112 if use lvm1 ; then
113 myconf="${myconf} --with-lvm1=${buildmode}"
114 else
115 myconf="${myconf} --with-lvm1=none"
116 fi
117
118 # disable O_DIRECT support on hppa, breaks pv detection (#99532)
119 use hppa && myconf="${myconf} --disable-o_direct"
120
121 if use clvm; then
122 myconf="${myconf} --with-cluster=${buildmode}"
123 # 4-state!
124 local clvmd="none"
125 use cman && clvmd="cman"
126 use gulm && clvmd="${clvmd}gulm"
127 clvmd="${clvmd/cmangulm/all}"
128 myconf="${myconf} --with-clvmd=${clvmd}"
129 myconf="${myconf} --with-pool=${buildmode}"
130 else
131 myconf="${myconf} --with-clvmd=none --with-cluster=none"
132 fi
133
134 myconf="${myconf} --sbindir=/sbin --with-staticdir=/sbin"
135 econf $(use_enable readline) \
136 $(use_enable selinux) \
137 --libdir=/usr/$(get_libdir) \
138 ${myconf} \
139 CLDFLAGS="${LDFLAGS}" || die
140 emake || die "compile problem"
141 }
142
143 src_install() {
144 emake DESTDIR="${D}" install
145 # TODO: At some point in the future, we need to stop installing the static
146 # as the /sbin/lvm name, and have both variants seperate.
147 if use static; then
148 cp -f "${D}"/sbin/lvm.static "${D}"/sbin/lvm \
149 || die "Failed to copy lvm.static"
150 fi
151
152 dodir /$(get_libdir)
153 # Put these in root so we can reach before /usr is up
154 for i in libdevmapper-event-lvm2mirror liblvm2{format1,snapshot} ; do
155 b="${D}"/usr/$(get_libdir)/${i}
156 if [ -f "${b}".so ]; then
157 mv -f "${b}".so* "${D}"/$(get_libdir) || die
158 fi
159 done
160
161 dodoc README VERSION WHATS_NEW doc/*.{conf,c,txt}
162 insinto /lib/rcscripts/addons
163 newins "${FILESDIR}"/lvm2-start.sh-2.02.28-r2 lvm-start.sh || die
164 newins "${FILESDIR}"/lvm2-stop.sh-2.02.28-r5 lvm-stop.sh || die
165 newinitd "${FILESDIR}"/lvm.rc-2.02.28-r2 lvm || die
166 newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm || die
167 if use clvm; then
168 newinitd "${FILESDIR}"/clvmd.rc-2.02.28-r3 clvmd || die
169 fi
170
171 elog "use flag nocman is deprecated and replaced"
172 elog "with cman and gulm use flags."
173 elog ""
174 elog "use flags clvm,cman and gulm are masked"
175 elog "by default and need to be unmasked to use them"
176 elog ""
177 elog "Rebuild your genkernel initramfs if you are using lvm"
178 use nolvmstatic && \
179 elog "USE=nolvmstatic has changed to USE=static via package.use"
180 use nolvm1 && \
181 elog "USE=nolvm1 has changed to USE=lvm1 via package.use"
182 }
183
184 pkg_postinst() {
185 elog "lvm volumes are no longer automatically created for"
186 elog "baselayout-2 users. If you are using baselayout-2, be sure to"
187 elog "run: # rc-update add lvm boot"
188 }
189
190 src_test() {
191 einfo "Testcases disabled because of device-node mucking"
192 einfo "If you want them, compile the package and see ${S}/tests"
193 }
194
195
196
197 --
198 gentoo-commits@l.g.o mailing list