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.33.ebuild
Date: Thu, 07 Feb 2008 02:01:52
Message-Id: E1JMw5G-0002YS-3j@stork.gentoo.org
1 robbat2 08/02/07 02:01:50
2
3 Modified: ChangeLog
4 Added: lvm2-2.02.33.ebuild
5 Log:
6 Version bump, related to bug #207612.
7 (Portage version: 2.1.4.1)
8
9 Revision Changes Path
10 1.128 sys-fs/lvm2/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/ChangeLog?rev=1.128&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/ChangeLog?rev=1.128&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/ChangeLog?r1=1.127&r2=1.128
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v
19 retrieving revision 1.127
20 retrieving revision 1.128
21 diff -p -w -b -B -u -u -r1.127 -r1.128
22 --- ChangeLog 1 Feb 2008 12:40:41 -0000 1.127
23 +++ ChangeLog 7 Feb 2008 02:01:49 -0000 1.128
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.127 2008/02/01 12:40:41 flameeyes Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm2/ChangeLog,v 1.128 2008/02/07 02:01:49 robbat2 Exp $
29 +
30 +*lvm2-2.02.33 (07 Feb 2008)
31 +
32 + 07 Feb 2008; Robin H. Johnson <robbat2@g.o>
33 + +files/lvm.conf-2.02.33.patch, +lvm2-2.02.33.ebuild:
34 + Version bump, related to bug #207612.
35
36 01 Feb 2008; Diego Pettenò <flameeyes@g.o>
37 files/lvm.rc-2.02.28-r1, files/lvm.rc-2.02.28-r2, files/lvm.rc:
38
39
40
41 1.1 sys-fs/lvm2/lvm2-2.02.33.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/lvm2-2.02.33.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/lvm2/lvm2-2.02.33.ebuild?rev=1.1&content-type=text/plain
45
46 Index: lvm2-2.02.33.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.33.ebuild,v 1.1 2008/02/07 02:01:49 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.22-r5
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.33.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} || die
139 emake || die "compile problem"
140 }
141
142 src_install() {
143 emake DESTDIR="${D}" install
144 # TODO: At some point in the future, we need to stop installing the static
145 # as the /sbin/lvm name, and have both variants seperate.
146 if use static; then
147 cp -f "${D}"/sbin/lvm.static "${D}"/sbin/lvm \
148 || die "Failed to copy lvm.static"
149 fi
150
151 dodir /$(get_libdir)
152 # Put these in root so we can reach before /usr is up
153 for i in libdevmapper-event-lvm2mirror liblvm2{format1,snapshot} ; do
154 b="${D}"/usr/$(get_libdir)/${i}
155 if [ -f "${b}".so ]; then
156 mv -f "${b}".so* "${D}"/$(get_libdir) || die
157 fi
158 done
159
160 dodoc README VERSION WHATS_NEW doc/*.{conf,c,txt}
161 insinto /lib/rcscripts/addons
162 newins "${FILESDIR}"/lvm2-start.sh-2.02.28-r2 lvm-start.sh || die
163 newins "${FILESDIR}"/lvm2-stop.sh-2.02.28-r5 lvm-stop.sh || die
164 newinitd "${FILESDIR}"/lvm.rc-2.02.28-r2 lvm || die
165 newconfd "${FILESDIR}"/lvm.confd-2.02.28-r2 lvm || die
166 if use clvm; then
167 newinitd "${FILESDIR}"/clvmd.rc-2.02.28-r3 clvmd || die
168 fi
169
170 elog "use flag nocman is deprecated and replaced"
171 elog "with cman and gulm use flags."
172 elog ""
173 elog "use flags clvm,cman and gulm are masked"
174 elog "by default and need to be unmasked to use them"
175 elog ""
176 elog "Rebuild your genkernel initramfs if you are using lvm"
177 use nolvmstatic && \
178 elog "USE=nolvmstatic has changed to USE=static via package.use"
179 use nolvm1 && \
180 elog "USE=nolvm1 has changed to USE=lvm1 via package.use"
181 }
182
183 pkg_postinst() {
184 elog "lvm volumes are no longer automatically created for"
185 elog "baselayout-2 users. If you are using baselayout-2, be sure to"
186 elog "run: # rc-update add lvm boot"
187 }
188
189
190
191 --
192 gentoo-commits@l.g.o mailing list