Gentoo Archives: gentoo-commits

From: "Maciej Mrozowski (reavertm)" <reavertm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/evms: evms-2.5.5-r12.ebuild ChangeLog metadata.xml
Date: Sun, 03 Jul 2011 19:44:22
Message-Id: 20110703194357.B638C2004B@flycatcher.gentoo.org
1 reavertm 11/07/03 19:43:57
2
3 Added: evms-2.5.5-r12.ebuild ChangeLog metadata.xml
4 Log:
5 Version bump, deps cleaned (gtk1 dep removed hence gtk gui support), patches cleaned, rc scripts removed (evms volumes not supported anymore by Gentoo), static libs removed, libs and binaries moved to /usr. Added message that this package is meant for data migration only.
6
7 (Portage version: 2.2.0_alpha43/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 sys-fs/evms/evms-2.5.5-r12.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/evms/evms-2.5.5-r12.ebuild?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/evms/evms-2.5.5-r12.ebuild?rev=1.1&content-type=text/plain
14
15 Index: evms-2.5.5-r12.ebuild
16 ===================================================================
17 # Copyright 1999-2011 Gentoo Foundation
18 # Distributed under the terms of the GNU General Public License v2
19 # $Header: /var/cvsroot/gentoo-x86/sys-fs/evms/evms-2.5.5-r12.ebuild,v 1.1 2011/07/03 19:43:57 reavertm Exp $
20
21 EAPI=4
22
23 inherit autotools-utils flag-o-matic toolchain-funcs linux-info
24
25 PATCHVER="${PV}-3"
26
27 DESCRIPTION="Utilities for the IBM Enterprise Volume Management System"
28 HOMEPAGE="http://www.sourceforge.net/projects/evms"
29 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz mirror://gentoo/${PN}-patches-${PATCHVER}.tar.bz2"
30
31 LICENSE="GPL-2"
32 SLOT="0"
33 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
34 IUSE="hb hb2 ncurses nls"
35
36 # sys-apps/util-linux: libuuid
37 # sys-libs/readline: evms cli
38 RDEPEND="
39 sys-apps/util-linux
40 sys-libs/readline
41 || (
42 sys-fs/device-mapper
43 >=sys-fs/lvm2-2.02.45
44 )
45 hb? (
46 !hb2? ( =sys-cluster/heartbeat-1* )
47 )
48 hb2? ( >=sys-cluster/heartbeat-2 )
49 ncurses? (
50 >=dev-libs/glib-2.12.4-r1
51 sys-libs/ncurses
52 )
53 "
54 DEPEND="${RDEPEND}
55 ncurses? ( dev-util/pkgconfig )
56 "
57
58 # While the test-concept holds, many of them fail due to unknown reasons.
59 # Since upstream is almost dead, we have to ignore that for now.
60 RESTRICT="test"
61
62 AUTOTOOLS_IN_SOURCE_BUILD=1
63
64 pkg_setup() {
65 if use hb && use hb2 ; then
66 ewarn "It's not possible to have support for heartbeat version 1 and 2 at the same time."
67 ewarn "Assuming that you want heartbeat-2, if not, please do not enable the hb2 use flag."
68 fi
69
70 get_running_version
71 if [[ ${KV_MAJOR} -eq 2 ]]; then
72 if [[ ${KV_PATCH} -lt 19 ]] || [[ ${KV_MINOR} -eq 4 ]]; then
73 ewarn "This revision of EVMS may not work correctly with kernels prior to 2.6.19 when"
74 ewarn "using snapshots due to API changes. Please update your kernel or use EVMS 2.5.5-r9."
75 ebeep 5
76 fi
77 fi
78 }
79
80 src_prepare() {
81 EPATCH_SOURCE="${WORKDIR}/patches"
82 EPATCH_SUFFIX="patch"
83 epatch
84 autotools-utils_src_prepare
85 eautoreconf
86 }
87
88 src_configure() {
89 # Bug #54856
90 # filter-flags "-fstack-protector"
91 replace-flags -O3 -O2
92 replace-flags -Os -O2
93
94 # hb2 should override hb
95 local myeconfargs=(
96 $(use_enable hb ha)
97 --disable-hb2
98 )
99 use hb2 && myeconfargs=(
100 --disable-ha
101 --enable-hb2
102 )
103
104 myeconfargs+=(
105 --disable-gui
106 --enable-cli
107 --without-debug
108 $(use_enable ncurses text-mode)
109 $(use_enable nls)
110 )
111
112 autotools-utils_src_configure
113 }
114
115 src_install() {
116 DOCS=(ChangeLog INSTALL* PLUGIN.IDS README TERMINOLOGY)
117 autotools-utils_src_install
118
119 # Remove static libs
120 find "${D}" -name '*.a' -exec rm -f {} + || die
121
122 # the kernel patches may come handy for people compiling their own kernel
123 docinto kernel/2.4
124 dodoc kernel/2.4/*
125 docinto kernel/2.6
126 dodoc kernel/2.6/*
127 }
128
129 src_test() {
130 if [[ -z ${EVMS_TEST_VOLUME} ]] ; then
131 eerror "This is a volume manager and it therefore needs a volume"
132 eerror "for testing. You have to define EVMS_TEST_VOLUME as"
133 eerror "a volume evms can operate on."
134 eerror "Example: export EVMS_TEST_VOLUME=sda"
135 eerror "Note: The volume-name can not be a symlink."
136 eerror "WARNING: EVMS WILL DESTROY EVERYTHING ON IT."
137 einfo "If you don't have an empty disk, you can use the loopback-device:"
138 einfo "- Create a large file using dd (this creates a 4GB file):"
139 einfo " dd if=/dev/zero of=/tmp/evms_test_file bs=1M count=4096"
140 einfo "- Activate a loop device on this file:"
141 einfo " losetup /dev/loop0 /tmp/evms_test_file"
142 einfo "- export EVMS_TEST_VOLUME=loop0"
143 einfo "The disk has to be at least 4GB!"
144 einfo "To deactivate the loop-device afterwards:"
145 einfo "- losetup -d /dev/loop0"
146 hasq userpriv ${FEATURES} && ewarn "These tests have to run as root. Disable userpriv!"
147 die "need test-volume"
148 fi
149
150 if hasq userpriv ${FEATURES} ; then
151 eerror "These tests need root privileges. Disable userpriv!"
152 die "userpriv is not supported"
153 fi
154
155 einfo "Disabling sandbox for:"
156 einfo " - /dev/${EVMS_TEST_VOLUME}"
157 addwrite /dev/${EVMS_TEST_VOLUME}
158 einfo " - /dev/evms"
159 addwrite /dev/evms
160 einfo " - /var/lock/evms-engine"
161 addwrite /var/lock/evms-engine
162
163 cd "${S}/tests/suite"
164 PATH="${S}/ui/cli:${S}/tests:/sbin:/usr/sbin:${PATH}" ./run_tests ${EVMS_TEST_VOLUME} || die "tests failed"
165 }
166
167 pkg_postinst() {
168 elog "This version of EVMS is meant for data migration and"
169 elog "disk maintenance only. Auto-activating EVMS volumes (i.e. for booting"
170 elog "purpose) is no longer supported."
171 elog "Please use this package to migrate to LVM2"
172 }
173
174
175
176 1.102 sys-fs/evms/ChangeLog
177
178 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/evms/ChangeLog?rev=1.102&view=markup
179 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/evms/ChangeLog?rev=1.102&content-type=text/plain
180 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/evms/ChangeLog?r1=1.101&r2=1.102
181
182
183
184
185 1.7 sys-fs/evms/metadata.xml
186
187 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/evms/metadata.xml?rev=1.7&view=markup
188 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/evms/metadata.xml?rev=1.7&content-type=text/plain
189 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/evms/metadata.xml?r1=1.6&r2=1.7