diff options
author | Maciej Mrozowski <reavertm@gentoo.org> | 2011-07-03 19:43:57 +0000 |
---|---|---|
committer | Maciej Mrozowski <reavertm@gentoo.org> | 2011-07-03 19:43:57 +0000 |
commit | fea8d6f7d1474d0e5c86bfd297e9a2f33e1f5202 (patch) | |
tree | 3813bf4fb2d74036a384fea7e645db13407ccea0 /sys-fs/evms | |
parent | Version bump #373937 by Lars Wendler. (diff) | |
download | gentoo-2-fea8d6f7d1474d0e5c86bfd297e9a2f33e1f5202.tar.gz gentoo-2-fea8d6f7d1474d0e5c86bfd297e9a2f33e1f5202.tar.bz2 gentoo-2-fea8d6f7d1474d0e5c86bfd297e9a2f33e1f5202.zip |
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.
(Portage version: 2.2.0_alpha43/cvs/Linux x86_64)
Diffstat (limited to 'sys-fs/evms')
-rw-r--r-- | sys-fs/evms/ChangeLog | 13 | ||||
-rw-r--r-- | sys-fs/evms/evms-2.5.5-r12.ebuild | 156 | ||||
-rw-r--r-- | sys-fs/evms/metadata.xml | 15 |
3 files changed, 184 insertions, 0 deletions
diff --git a/sys-fs/evms/ChangeLog b/sys-fs/evms/ChangeLog new file mode 100644 index 000000000000..451f6862dd4f --- /dev/null +++ b/sys-fs/evms/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for sys-fs/evms +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/evms/ChangeLog,v 1.102 2011/07/03 19:43:57 reavertm Exp $ + +*evms-2.5.5-r12 (03 Jul 2011) + + 03 Jul 2011; Maciej Mrozowski <reavertm@gentoo.org> +evms-2.5.5-r12.ebuild, + +metadata.xml: + 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. + diff --git a/sys-fs/evms/evms-2.5.5-r12.ebuild b/sys-fs/evms/evms-2.5.5-r12.ebuild new file mode 100644 index 000000000000..1d16607d980a --- /dev/null +++ b/sys-fs/evms/evms-2.5.5-r12.ebuild @@ -0,0 +1,156 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +EAPI=4 + +inherit autotools-utils flag-o-matic toolchain-funcs linux-info + +PATCHVER="${PV}-3" + +DESCRIPTION="Utilities for the IBM Enterprise Volume Management System" +HOMEPAGE="http://www.sourceforge.net/projects/evms" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz mirror://gentoo/${PN}-patches-${PATCHVER}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="hb hb2 ncurses nls" + +# sys-apps/util-linux: libuuid +# sys-libs/readline: evms cli +RDEPEND=" + sys-apps/util-linux + sys-libs/readline + || ( + sys-fs/device-mapper + >=sys-fs/lvm2-2.02.45 + ) + hb? ( + !hb2? ( =sys-cluster/heartbeat-1* ) + ) + hb2? ( >=sys-cluster/heartbeat-2 ) + ncurses? ( + >=dev-libs/glib-2.12.4-r1 + sys-libs/ncurses + ) +" +DEPEND="${RDEPEND} + ncurses? ( dev-util/pkgconfig ) +" + +# While the test-concept holds, many of them fail due to unknown reasons. +# Since upstream is almost dead, we have to ignore that for now. +RESTRICT="test" + +AUTOTOOLS_IN_SOURCE_BUILD=1 + +pkg_setup() { + if use hb && use hb2 ; then + ewarn "It's not possible to have support for heartbeat version 1 and 2 at the same time." + ewarn "Assuming that you want heartbeat-2, if not, please do not enable the hb2 use flag." + fi + + get_running_version + if [[ ${KV_MAJOR} -eq 2 ]]; then + if [[ ${KV_PATCH} -lt 19 ]] || [[ ${KV_MINOR} -eq 4 ]]; then + ewarn "This revision of EVMS may not work correctly with kernels prior to 2.6.19 when" + ewarn "using snapshots due to API changes. Please update your kernel or use EVMS 2.5.5-r9." + ebeep 5 + fi + fi +} + +src_prepare() { + EPATCH_SOURCE="${WORKDIR}/patches" + EPATCH_SUFFIX="patch" + epatch + autotools-utils_src_prepare + eautoreconf +} + +src_configure() { + # Bug #54856 + # filter-flags "-fstack-protector" + replace-flags -O3 -O2 + replace-flags -Os -O2 + + # hb2 should override hb + local myeconfargs=( + $(use_enable hb ha) + --disable-hb2 + ) + use hb2 && myeconfargs=( + --disable-ha + --enable-hb2 + ) + + myeconfargs+=( + --disable-gui + --enable-cli + --without-debug + $(use_enable ncurses text-mode) + $(use_enable nls) + ) + + autotools-utils_src_configure +} + +src_install() { + DOCS=(ChangeLog INSTALL* PLUGIN.IDS README TERMINOLOGY) + autotools-utils_src_install + + # Remove static libs + find "${D}" -name '*.a' -exec rm -f {} + || die + + # the kernel patches may come handy for people compiling their own kernel + docinto kernel/2.4 + dodoc kernel/2.4/* + docinto kernel/2.6 + dodoc kernel/2.6/* +} + +src_test() { + if [[ -z ${EVMS_TEST_VOLUME} ]] ; then + eerror "This is a volume manager and it therefore needs a volume" + eerror "for testing. You have to define EVMS_TEST_VOLUME as" + eerror "a volume evms can operate on." + eerror "Example: export EVMS_TEST_VOLUME=sda" + eerror "Note: The volume-name can not be a symlink." + eerror "WARNING: EVMS WILL DESTROY EVERYTHING ON IT." + einfo "If you don't have an empty disk, you can use the loopback-device:" + einfo "- Create a large file using dd (this creates a 4GB file):" + einfo " dd if=/dev/zero of=/tmp/evms_test_file bs=1M count=4096" + einfo "- Activate a loop device on this file:" + einfo " losetup /dev/loop0 /tmp/evms_test_file" + einfo "- export EVMS_TEST_VOLUME=loop0" + einfo "The disk has to be at least 4GB!" + einfo "To deactivate the loop-device afterwards:" + einfo "- losetup -d /dev/loop0" + hasq userpriv ${FEATURES} && ewarn "These tests have to run as root. Disable userpriv!" + die "need test-volume" + fi + + if hasq userpriv ${FEATURES} ; then + eerror "These tests need root privileges. Disable userpriv!" + die "userpriv is not supported" + fi + + einfo "Disabling sandbox for:" + einfo " - /dev/${EVMS_TEST_VOLUME}" + addwrite /dev/${EVMS_TEST_VOLUME} + einfo " - /dev/evms" + addwrite /dev/evms + einfo " - /var/lock/evms-engine" + addwrite /var/lock/evms-engine + + cd "${S}/tests/suite" + PATH="${S}/ui/cli:${S}/tests:/sbin:/usr/sbin:${PATH}" ./run_tests ${EVMS_TEST_VOLUME} || die "tests failed" +} + +pkg_postinst() { + elog "This version of EVMS is meant for data migration and" + elog "disk maintenance only. Auto-activating EVMS volumes (i.e. for booting" + elog "purpose) is no longer supported." + elog "Please use this package to migrate to LVM2" +} diff --git a/sys-fs/evms/metadata.xml b/sys-fs/evms/metadata.xml new file mode 100644 index 000000000000..9e0c8b16a5db --- /dev/null +++ b/sys-fs/evms/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>reavertm@gentoo.org</email> + <name>Maciej Mrozowski</name> + </maintainer> + <longdescription>evms is a volume management system written by IBM, it's open source</longdescription> + <use> + <flag name='hb'>Enable support for heartbeat-1</flag> + <flag name='hb2'>Enable support for heartbeat-2</flag> + </use> +</pkgmetadata> |