Gentoo Archives: gentoo-commits

From: "Doug Goldstein (cardoe)" <cardoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/evms: ChangeLog evms-2.5.5-r9.ebuild evms-2.5.5-r8.ebuild
Date: Tue, 09 Oct 2007 03:27:57
Message-Id: E1If5bu-0004mj-2z@stork.gentoo.org
1 cardoe 07/10/09 03:18:18
2
3 Modified: ChangeLog
4 Added: evms-2.5.5-r9.ebuild
5 Removed: evms-2.5.5-r8.ebuild
6 Log:
7 Bad day for me to edit stuff. Actually make the changes as described in the previous ChangeLog entry
8 (Portage version: 2.1.3.12)
9
10 Revision Changes Path
11 1.74 sys-fs/evms/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/evms/ChangeLog?rev=1.74&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/evms/ChangeLog?rev=1.74&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/evms/ChangeLog?r1=1.73&r2=1.74
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/evms/ChangeLog,v
20 retrieving revision 1.73
21 retrieving revision 1.74
22 diff -u -r1.73 -r1.74
23 --- ChangeLog 8 Oct 2007 22:01:17 -0000 1.73
24 +++ ChangeLog 9 Oct 2007 03:18:17 -0000 1.74
25 @@ -1,6 +1,14 @@
26 # ChangeLog for sys-fs/evms
27 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/evms/ChangeLog,v 1.73 2007/10/08 22:01:17 cardoe Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/evms/ChangeLog,v 1.74 2007/10/09 03:18:17 cardoe Exp $
30 +
31 +*evms-2.5.5-r9 (09 Oct 2007)
32 +
33 + 09 Oct 2007; Doug Goldstein <cardoe@g.o> -files/evms.conf-2.5.5-r8,
34 + -files/evms.initd-2.5.5-r8, +files/evms.conf-2.5.5-r9,
35 + +files/evms.initd-2.5.5-r9, -evms-2.5.5-r8.ebuild, +evms-2.5.5-r9.ebuild:
36 + Bad day for me to edit stuff. Actually make the changes as described in the
37 + previous ChangeLog entry
38
39 *evms-2.5.5-r8 (08 Oct 2007)
40
41
42
43
44 1.1 sys-fs/evms/evms-2.5.5-r9.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/evms/evms-2.5.5-r9.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/evms/evms-2.5.5-r9.ebuild?rev=1.1&content-type=text/plain
48
49 Index: evms-2.5.5-r9.ebuild
50 ===================================================================
51 # Copyright 1999-2007 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sys-fs/evms/evms-2.5.5-r9.ebuild,v 1.1 2007/10/09 03:18:17 cardoe Exp $
54
55 WANT_AUTOMAKE="latest"
56 WANT_AUTOCONF="latest"
57
58 inherit eutils flag-o-matic multilib toolchain-funcs autotools
59
60 DESCRIPTION="Utilities for the IBM Enterprise Volume Management System"
61 HOMEPAGE="http://www.sourceforge.net/projects/evms"
62 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
67 IUSE="debug gtk hb hb2 ncurses nls"
68
69 #EVMS uses libuuid from e2fsprogs
70 RDEPEND="virtual/libc
71 sys-fs/e2fsprogs
72 sys-fs/device-mapper
73 >=sys-apps/baselayout-1.9.4-r6
74 gtk? ( =x11-libs/gtk+-1*
75 =dev-libs/glib-1* )
76 hb? ( !hb2? ( =sys-cluster/heartbeat-1* ) )
77 hb2? ( >=sys-cluster/heartbeat-2 )
78 ncurses? ( sys-libs/ncurses
79 >=dev-libs/glib-2.12.4-r1 )"
80 DEPEND="${RDEPEND}"
81
82 pkg_setup() {
83 if use hb && use hb2 ; then
84 ewarn "It's not possible to have support for heartbeat version 1 and 2 at the same time."
85 ewarn "Assuming that you want heartbeat-2, if not, please do not enable the hb2 use flag."
86 fi
87 }
88
89 src_unpack() {
90 unpack ${A}
91 cd "${S}"
92
93 epatch "${FILESDIR}/${PV}/md_super_fix.patch"
94 epatch "${FILESDIR}/${PV}/ntfs_unmkfs.patch"
95 epatch "${FILESDIR}/${PV}/raid5_degrade_fix_v2.patch"
96 epatch "${FILESDIR}/${PV}/raid5_remove_spare_fix.patch"
97 epatch "${FILESDIR}/${PV}/raid5_remove_spare_fix_2.patch"
98 epatch "${FILESDIR}/${PV}/raid5_algorithm.patch"
99 epatch "${FILESDIR}/${PV}/cli_reload_options.patch"
100 epatch "${FILESDIR}/${PV}/cli_query_segfault.patch"
101 epatch "${FILESDIR}/${PV}/get_geometry.patch"
102 epatch "${FILESDIR}/${PV}/BaseName.patch"
103 epatch "${FILESDIR}/${PV}/disk_cache.patch"
104
105 epatch "${FILESDIR}/${P}-as-needed.patch"
106 epatch "${FILESDIR}/${P}-glib_dep.patch"
107 epatch "${FILESDIR}/${P}-ocfs2.patch"
108 epatch "${FILESDIR}/${P}-use_disk_group.patch"
109 epatch "${FILESDIR}/${P}-pagesize.patch"
110
111 eautoreconf
112 }
113
114 src_compile() {
115 # Bug #54856
116 # filter-flags "-fstack-protector"
117 replace-flags -O3 -O2
118 replace-flags -Os -O2
119
120 local excluded_interfaces=""
121 use ncurses || excluded_interfaces="--disable-text-mode"
122 use gtk || excluded_interfaces="${excluded_interfaces} --disable-gui"
123
124 # hb2 should override hb
125 local myconf="$(use_enable hb ha) --disable-hb2"
126 use hb2 && myconf="--disable-ha --enable-hb2"
127
128 # We have to link statically against glib because evmsn resides in /sbin
129 econf \
130 --libdir=/$(get_libdir) \
131 --sbindir=/sbin \
132 --includedir=/usr/include \
133 --with-static-glib \
134 $(use_with debug) \
135 $(use_enable nls) \
136 ${myconf} \
137 ${excluded_interfaces} || die "Failed configure"
138 emake || die "Failed emake"
139 }
140
141 src_install() {
142 emake DESTDIR="${D}" install || die "Make install died"
143 dodoc ChangeLog INSTALL* PLUGIN.IDS README TERMINOLOGY doc/linuxrc
144
145 insinto /$(get_libdir)/rcscripts/addons
146 newins "${FILESDIR}/evms2-start.sh" evms-start.sh || die "rcscript addon failed"
147
148 # install the sample configuration into the doc dir
149 dodoc "${D}/etc/evms.conf.sample"
150 rm -f "${D}/etc/evms.conf.sample"
151
152 # the kernel patches may come handy for people compiling their own kernel
153 docinto kernel/2.4
154 dodoc kernel/2.4/*
155 docinto kernel/2.6
156 dodoc kernel/2.6/*
157
158 # move static libraries to /usr/lib
159 dodir /usr/$(get_libdir)
160 mv -f "${D}"/$(get_libdir)/*.a "${D}/usr/$(get_libdir)"
161
162 # Create linker scripts for dynamic libs in /lib, else gcc
163 # links to the static ones in /usr/lib first. Bug #4411.
164 for x in "${D}/usr/$(get_libdir)"/*.a ; do
165 if [ -f ${x} ] ; then
166 local lib="${x##*/}"
167 gen_usr_ldscript ${lib/\.a/\.so}
168 fi
169 done
170
171 # the gtk+ frontend should live in /usr/sbin
172 if use gtk ; then
173 dodir /usr/sbin
174 mv -f "${D}"/sbin/evmsgui "${D}"/usr/sbin
175 fi
176
177 # Needed for bug #51252
178 dosym libevms-2.5.so.0.0 /$(get_libdir)/libevms-2.5.so.0
179
180 newinitd "${FILESDIR}"/evms.initd-2.5.5-r9 evms || die
181 newconfd "${FILESDIR}"/evms.conf-2.5.5-r9 evms || die
182 }
183
184 src_test() {
185 if [[ -z ${EVMS_TEST_VOLUME} ]] ; then
186 eerror "This is a volume manager and it therefore needs a volume"
187 eerror "for testing. You have to define EVMS_TEST_VOLUME as"
188 eerror "a volume evms can operate on."
189 eerror "Example: export EVMS_TEST_VOLUME=sda"
190 eerror "Note: The volume-name can not be a symlink."
191 eerror "WARNING: EVMS WILL DESTROY EVERYTHING ON IT."
192 einfo "If you don't have an empty disk, you can use the loopback-device:"
193 einfo "- Create a large file using dd (this creates a 4GB file):"
194 einfo " dd if=/dev/zero of=/tmp/evms_test_file bs=1M count=4096"
195 einfo "- Activate a loop device on this file:"
196 einfo " losetup /dev/loop0 /tmp/evms_test_file"
197 einfo "- export EVMS_TEST_VOLUME=loop/0"
198 einfo "The disk has to be at least 4GB!"
199 einfo "To deactivate the loop-device afterwards:"
200 einfo "- losetup -d /dev/loop0"
201 hasq userpriv ${FEATURES} && ewarn "These tests have to run as root. Disable userpriv!"
202 die "need test-volume"
203 fi
204
205 if hasq userpriv ${FEATURES} ; then
206 eerror "These tests need root privileges. Disable userpriv!"
207 die "userpriv is not supported"
208 fi
209
210 volume=$(readlink "/dev/${EVMS_TEST_VOLUME}")
211 einfo "Disabling sandbox for:"
212 einfo " - /dev/${volume:-${EVMS_TEST_VOLUME}}"
213 addwrite /dev/${volume:-${EVMS_TEST_VOLUME}}
214 einfo " - /dev/evms"
215 addwrite /dev/evms
216 einfo " - /var/lock/evms-engine"
217 addwrite /var/lock/evms-engine
218
219 cd "${S}/tests/suite"
220 PATH="${S}/ui/cli:${S}/tests:/sbin:${PATH}" ./run_tests ${EVMS_TEST_VOLUME} || die "tests failed"
221 }
222
223
224
225 --
226 gentoo-commits@g.o mailing list