diff options
author | 2008-09-08 08:59:49 +0000 | |
---|---|---|
committer | 2008-09-08 08:59:49 +0000 | |
commit | 4756684fbe420289abe269f923affdf6ae3b3f9d (patch) | |
tree | 4ff913b07e2a1af99cc533e423972b9123525920 /sys-fs | |
parent | Removed bashism from start script (diff) | |
download | historical-4756684fbe420289abe269f923affdf6ae3b3f9d.tar.gz historical-4756684fbe420289abe269f923affdf6ae3b3f9d.tar.bz2 historical-4756684fbe420289abe269f923affdf6ae3b3f9d.zip |
Dropped old revisions.
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.27-rc4 x86_64
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/evms/ChangeLog | 6 | ||||
-rw-r--r-- | sys-fs/evms/Manifest | 5 | ||||
-rw-r--r-- | sys-fs/evms/evms-2.5.5-r6.ebuild | 154 | ||||
-rw-r--r-- | sys-fs/evms/evms-2.5.5-r7.ebuild | 170 | ||||
-rw-r--r-- | sys-fs/evms/evms-2.5.5-r9.ebuild | 171 |
5 files changed, 6 insertions, 500 deletions
diff --git a/sys-fs/evms/ChangeLog b/sys-fs/evms/ChangeLog index 3a2940641761..9c02e9fa10c8 100644 --- a/sys-fs/evms/ChangeLog +++ b/sys-fs/evms/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-fs/evms # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/evms/ChangeLog,v 1.89 2008/09/08 08:57:08 dev-zero Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/evms/ChangeLog,v 1.90 2008/09/08 08:59:49 dev-zero Exp $ + + 08 Sep 2008; Tiziano Müller <dev-zero@gentoo.org> -evms-2.5.5-r6.ebuild, + -evms-2.5.5-r7.ebuild, -evms-2.5.5-r9.ebuild: + Dropped old revisions. 08 Sep 2008; Tiziano Müller <dev-zero@gentoo.org> files/evms2-start.sh: Removed bashism from start script diff --git a/sys-fs/evms/Manifest b/sys-fs/evms/Manifest index 03009946af44..b7f583fef688 100644 --- a/sys-fs/evms/Manifest +++ b/sys-fs/evms/Manifest @@ -24,8 +24,5 @@ DIST evms-2.5.5.tar.gz 2286321 RMD160 716d6b34f48f6f7a3f5f4627bc4a2c34957607f7 S DIST evms-patches-2.5.5-1.tbz2 8191 RMD160 81065940081001de0d8bff7b286679436bf4192a SHA1 7ca94a59fe53001ea7f51d92d1f4d4f4c306fcce SHA256 1c0bd06e44782ac1175e9ed091d0cb0ea88c07b004d3d0f353edc849da173bd8 EBUILD evms-2.5.5-r10.ebuild 5269 RMD160 6662a5219fee78b0a62138223ee497384cb7a41e SHA1 3bfcb5e126c8bd435e251b756034bc662db2b7f4 SHA256 d49239edd1610eda75fd091a662de111e5b288df41e22ecf33b5ac6829504396 EBUILD evms-2.5.5-r5.ebuild 4892 RMD160 4e998bb4a476dd841f624f4bf51d0f78d9724716 SHA1 cd0fb789199199050b320debcb53f2cbc4f693b9 SHA256 4a96bd738031df807ea56a3b4e8e63c13998e8cd64262233151ea894488b9a82 -EBUILD evms-2.5.5-r6.ebuild 4941 RMD160 d3fda576474408579f55a525c0641d7359112456 SHA1 bb0cca2d091da2f21af36ff11481687c03a212a4 SHA256 28f84780ac48075f8ee551b936f4e9795d9c3e6debc00497ad621bc49b02ebbc -EBUILD evms-2.5.5-r7.ebuild 5435 RMD160 1a567e2c2c311f3e4757d5aae0e8679b8984bd0d SHA1 484ad17488828e12b77fcf190f0725ff7fd6b3ac SHA256 e783a73ef0cbe062cc39f0af18de6564c8838728512d7cb862963226f12195f5 -EBUILD evms-2.5.5-r9.ebuild 5523 RMD160 f194583819705d65e57d76d6b371268bd88e8cea SHA1 f8677e4d98598f826b45eb8a3f1eb15d4cec48d3 SHA256 1853dc06d667577ab269c337e01e45099980051d4debe6b88c70c2fca9bbcac7 -MISC ChangeLog 17564 RMD160 7e74cc550460fb7787d3d42d24157838f2167187 SHA1 24ae357b9853bb31e242ab4657d347d5f20c9b1d SHA256 ac5c5a0d2f293cb27e9544fa2da2aee25f5b82bccf2bbd114289aa0418112383 +MISC ChangeLog 17714 RMD160 4eac0024a5101aac22528ee07aba59991d9fd59c SHA1 5c342d4547eab3427549a5ac3c550173111576e5 SHA256 18892686ac34c3b19e9e16ef5e93514f63dfa3d31ab0ebf02ff69f8ad2b342b1 MISC metadata.xml 515 RMD160 327b123e22ca5b253f14debdc2aa8634762a5a97 SHA1 f7dcda50a94a640c47876e57950010a2c3a898cc SHA256 33e0cd2191f5b27a21d1a1ca93db919ef7d023be6294ec51603bf0c083ddf29d diff --git a/sys-fs/evms/evms-2.5.5-r6.ebuild b/sys-fs/evms/evms-2.5.5-r6.ebuild deleted file mode 100644 index 27bd023fd847..000000000000 --- a/sys-fs/evms/evms-2.5.5-r6.ebuild +++ /dev/null @@ -1,154 +0,0 @@ -# Copyright 1999-2007 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-r6.ebuild,v 1.3 2007/08/30 22:12:26 dev-zero Exp $ - -WANT_AUTOMAKE="latest" -WANT_AUTOCONF="latest" - -inherit eutils flag-o-matic multilib toolchain-funcs autotools - -DESCRIPTION="Utilities for the IBM Enterprise Volume Management System" -HOMEPAGE="http://www.sourceforge.net/projects/evms" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="debug gtk ncurses nls" - -#EVMS uses libuuid from e2fsprogs -RDEPEND="virtual/libc - sys-fs/e2fsprogs - sys-fs/device-mapper - >=sys-apps/baselayout-1.9.4-r6 - gtk? ( =x11-libs/gtk+-1* - =dev-libs/glib-1* ) - ncurses? ( sys-libs/ncurses - >=dev-libs/glib-2.12.4-r1 )" -DEPEND="${RDEPEND}" - -src_unpack() { - unpack ${A} - cd "${S}" - - epatch "${FILESDIR}/${PV}/md_super_fix.patch" - epatch "${FILESDIR}/${PV}/ntfs_unmkfs.patch" - epatch "${FILESDIR}/${PV}/raid5_degrade_fix.patch" - epatch "${FILESDIR}/${PV}/raid5_remove_spare_fix.patch" - epatch "${FILESDIR}/${PV}/raid5_remove_spare_fix_2.patch" - epatch "${FILESDIR}/${PV}/raid5_algorithm.patch" - epatch "${FILESDIR}/${PV}/cli_reload_options.patch" - epatch "${FILESDIR}/${PV}/cli_query_segfault.patch" - epatch "${FILESDIR}/${PV}/get_geometry.patch" - epatch "${FILESDIR}/${PV}/BaseName.patch" - epatch "${FILESDIR}/${PV}/disk_cache.patch" - - epatch "${FILESDIR}/${P}-as-needed.patch" - epatch "${FILESDIR}/${P}-glib_dep.patch" - epatch "${FILESDIR}/${P}-ocfs2.patch" - epatch "${FILESDIR}/${P}-use_disk_group.patch" - epatch "${FILESDIR}/${P}-pagesize.patch" - - eautoreconf -} - -src_compile() { - # Bug #54856 - # filter-flags "-fstack-protector" - replace-flags -O3 -O2 - replace-flags -Os -O2 - - local excluded_interfaces="" - use ncurses || excluded_interfaces="--disable-text-mode" - use gtk || excluded_interfaces="${excluded_interfaces} --disable-gui" - - # We have to link statically against glib because evmsn resides in /sbin - econf \ - --libdir=/$(get_libdir) \ - --sbindir=/sbin \ - --includedir=/usr/include \ - --with-static-glib \ - $(use_with debug) \ - $(use_enable nls) \ - ${excluded_interfaces} || die "Failed configure" - emake || die "Failed emake" -} - -src_install() { - emake DESTDIR="${D}" install || die "Make install died" - dodoc ChangeLog INSTALL* PLUGIN.IDS README TERMINOLOGY doc/linuxrc - - insinto /$(get_libdir)/rcscripts/addons - newins "${FILESDIR}/evms2-start.sh" evms-start.sh || die "rcscript addon failed" - - # install the sample configuration into the doc dir - dodoc "${D}/etc/evms.conf.sample" - rm -f "${D}/etc/evms.conf.sample" - - # 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/* - - # move static libraries to /usr/lib - dodir /usr/$(get_libdir) - mv -f ${D}/$(get_libdir)/*.a "${D}/usr/$(get_libdir)" - - # Create linker scripts for dynamic libs in /lib, else gcc - # links to the static ones in /usr/lib first. Bug #4411. - for x in "${D}/usr/$(get_libdir)"/*.a ; do - if [ -f ${x} ] ; then - local lib="${x##*/}" - gen_usr_ldscript ${lib/\.a/\.so} - fi - done - - # the gtk+ frontend should live in /usr/sbin - if use gtk ; then - dodir /usr/sbin - mv -f ${D}/sbin/evmsgui ${D}/usr/sbin - fi - - # Needed for bug #51252 - dosym libevms-2.5.so.0.0 /$(get_libdir)/libevms-2.5.so.0 -} - -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=loop/0" - 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 - - volume=$(readlink "/dev/${EVMS_TEST_VOLUME}") - einfo "Disabling sandbox for:" - einfo " - /dev/${volume:-${EVMS_TEST_VOLUME}}" - addwrite /dev/${volume:-${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:${PATH}" ./run_tests ${EVMS_TEST_VOLUME} || die "tests failed" -} diff --git a/sys-fs/evms/evms-2.5.5-r7.ebuild b/sys-fs/evms/evms-2.5.5-r7.ebuild deleted file mode 100644 index f48ff8dcba36..000000000000 --- a/sys-fs/evms/evms-2.5.5-r7.ebuild +++ /dev/null @@ -1,170 +0,0 @@ -# Copyright 1999-2007 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-r7.ebuild,v 1.4 2007/10/11 11:29:08 corsair Exp $ - -WANT_AUTOMAKE="latest" -WANT_AUTOCONF="latest" - -inherit eutils flag-o-matic multilib toolchain-funcs autotools - -DESCRIPTION="Utilities for the IBM Enterprise Volume Management System" -HOMEPAGE="http://www.sourceforge.net/projects/evms" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="debug gtk hb hb2 ncurses nls" - -#EVMS uses libuuid from e2fsprogs -RDEPEND="virtual/libc - sys-fs/e2fsprogs - sys-fs/device-mapper - >=sys-apps/baselayout-1.9.4-r6 - gtk? ( =x11-libs/gtk+-1* - =dev-libs/glib-1* ) - hb? ( !hb2? ( =sys-cluster/heartbeat-1* ) ) - hb2? ( >=sys-cluster/heartbeat-2 ) - ncurses? ( sys-libs/ncurses - >=dev-libs/glib-2.12.4-r1 )" -DEPEND="${RDEPEND}" - -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 -} - -src_unpack() { - unpack ${A} - cd "${S}" - - epatch "${FILESDIR}/${PV}/md_super_fix.patch" - epatch "${FILESDIR}/${PV}/ntfs_unmkfs.patch" - epatch "${FILESDIR}/${PV}/raid5_degrade_fix_v2.patch" - epatch "${FILESDIR}/${PV}/raid5_remove_spare_fix.patch" - epatch "${FILESDIR}/${PV}/raid5_remove_spare_fix_2.patch" - epatch "${FILESDIR}/${PV}/raid5_algorithm.patch" - epatch "${FILESDIR}/${PV}/cli_reload_options.patch" - epatch "${FILESDIR}/${PV}/cli_query_segfault.patch" - epatch "${FILESDIR}/${PV}/get_geometry.patch" - epatch "${FILESDIR}/${PV}/BaseName.patch" - epatch "${FILESDIR}/${PV}/disk_cache.patch" - - epatch "${FILESDIR}/${P}-as-needed.patch" - epatch "${FILESDIR}/${P}-glib_dep.patch" - epatch "${FILESDIR}/${P}-ocfs2.patch" - epatch "${FILESDIR}/${P}-use_disk_group.patch" - epatch "${FILESDIR}/${P}-pagesize.patch" - - eautoreconf -} - -src_compile() { - # Bug #54856 - # filter-flags "-fstack-protector" - replace-flags -O3 -O2 - replace-flags -Os -O2 - - local excluded_interfaces="" - use ncurses || excluded_interfaces="--disable-text-mode" - use gtk || excluded_interfaces="${excluded_interfaces} --disable-gui" - - # hb2 should override hb - local myconf="$(use_enable hb ha) --disable-hb2" - use hb2 && myconf="--disable-ha --enable-hb2" - - # We have to link statically against glib because evmsn resides in /sbin - econf \ - --libdir=/$(get_libdir) \ - --sbindir=/sbin \ - --includedir=/usr/include \ - --with-static-glib \ - $(use_with debug) \ - $(use_enable nls) \ - ${myconf} \ - ${excluded_interfaces} || die "Failed configure" - emake || die "Failed emake" -} - -src_install() { - emake DESTDIR="${D}" install || die "Make install died" - dodoc ChangeLog INSTALL* PLUGIN.IDS README TERMINOLOGY doc/linuxrc - - insinto /$(get_libdir)/rcscripts/addons - newins "${FILESDIR}/evms2-start.sh" evms-start.sh || die "rcscript addon failed" - - # install the sample configuration into the doc dir - dodoc "${D}/etc/evms.conf.sample" - rm -f "${D}/etc/evms.conf.sample" - - # 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/* - - # move static libraries to /usr/lib - dodir /usr/$(get_libdir) - mv -f ${D}/$(get_libdir)/*.a "${D}/usr/$(get_libdir)" - - # Create linker scripts for dynamic libs in /lib, else gcc - # links to the static ones in /usr/lib first. Bug #4411. - for x in "${D}/usr/$(get_libdir)"/*.a ; do - if [ -f ${x} ] ; then - local lib="${x##*/}" - gen_usr_ldscript ${lib/\.a/\.so} - fi - done - - # the gtk+ frontend should live in /usr/sbin - if use gtk ; then - dodir /usr/sbin - mv -f ${D}/sbin/evmsgui ${D}/usr/sbin - fi - - # Needed for bug #51252 - dosym libevms-2.5.so.0.0 /$(get_libdir)/libevms-2.5.so.0 - - newinitd "${FILESDIR}/evms.initd" -} - -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=loop/0" - 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 - - volume=$(readlink "/dev/${EVMS_TEST_VOLUME}") - einfo "Disabling sandbox for:" - einfo " - /dev/${volume:-${EVMS_TEST_VOLUME}}" - addwrite /dev/${volume:-${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:${PATH}" ./run_tests ${EVMS_TEST_VOLUME} || die "tests failed" -} diff --git a/sys-fs/evms/evms-2.5.5-r9.ebuild b/sys-fs/evms/evms-2.5.5-r9.ebuild deleted file mode 100644 index d9a68ff9fd21..000000000000 --- a/sys-fs/evms/evms-2.5.5-r9.ebuild +++ /dev/null @@ -1,171 +0,0 @@ -# Copyright 1999-2007 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-r9.ebuild,v 1.3 2007/10/22 14:33:01 armin76 Exp $ - -WANT_AUTOMAKE="latest" -WANT_AUTOCONF="latest" - -inherit eutils flag-o-matic multilib toolchain-funcs autotools - -DESCRIPTION="Utilities for the IBM Enterprise Volume Management System" -HOMEPAGE="http://www.sourceforge.net/projects/evms" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="debug gtk hb hb2 ncurses nls" - -#EVMS uses libuuid from e2fsprogs -RDEPEND="virtual/libc - sys-fs/e2fsprogs - sys-fs/device-mapper - >=sys-apps/baselayout-1.9.4-r6 - gtk? ( =x11-libs/gtk+-1* - =dev-libs/glib-1* ) - hb? ( !hb2? ( =sys-cluster/heartbeat-1* ) ) - hb2? ( >=sys-cluster/heartbeat-2 ) - ncurses? ( sys-libs/ncurses - >=dev-libs/glib-2.12.4-r1 )" -DEPEND="${RDEPEND}" - -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 -} - -src_unpack() { - unpack ${A} - cd "${S}" - - epatch "${FILESDIR}/${PV}/md_super_fix.patch" - epatch "${FILESDIR}/${PV}/ntfs_unmkfs.patch" - epatch "${FILESDIR}/${PV}/raid5_degrade_fix_v2.patch" - epatch "${FILESDIR}/${PV}/raid5_remove_spare_fix.patch" - epatch "${FILESDIR}/${PV}/raid5_remove_spare_fix_2.patch" - epatch "${FILESDIR}/${PV}/raid5_algorithm.patch" - epatch "${FILESDIR}/${PV}/cli_reload_options.patch" - epatch "${FILESDIR}/${PV}/cli_query_segfault.patch" - epatch "${FILESDIR}/${PV}/get_geometry.patch" - epatch "${FILESDIR}/${PV}/BaseName.patch" - epatch "${FILESDIR}/${PV}/disk_cache.patch" - - epatch "${FILESDIR}/${P}-as-needed.patch" - epatch "${FILESDIR}/${P}-glib_dep.patch" - epatch "${FILESDIR}/${P}-ocfs2.patch" - epatch "${FILESDIR}/${P}-use_disk_group.patch" - epatch "${FILESDIR}/${P}-pagesize.patch" - - eautoreconf -} - -src_compile() { - # Bug #54856 - # filter-flags "-fstack-protector" - replace-flags -O3 -O2 - replace-flags -Os -O2 - - local excluded_interfaces="" - use ncurses || excluded_interfaces="--disable-text-mode" - use gtk || excluded_interfaces="${excluded_interfaces} --disable-gui" - - # hb2 should override hb - local myconf="$(use_enable hb ha) --disable-hb2" - use hb2 && myconf="--disable-ha --enable-hb2" - - # We have to link statically against glib because evmsn resides in /sbin - econf \ - --libdir=/$(get_libdir) \ - --sbindir=/sbin \ - --includedir=/usr/include \ - --with-static-glib \ - $(use_with debug) \ - $(use_enable nls) \ - ${myconf} \ - ${excluded_interfaces} || die "Failed configure" - emake || die "Failed emake" -} - -src_install() { - emake DESTDIR="${D}" install || die "Make install died" - dodoc ChangeLog INSTALL* PLUGIN.IDS README TERMINOLOGY doc/linuxrc - - insinto /$(get_libdir)/rcscripts/addons - newins "${FILESDIR}/evms2-start.sh" evms-start.sh || die "rcscript addon failed" - - # install the sample configuration into the doc dir - dodoc "${D}/etc/evms.conf.sample" - rm -f "${D}/etc/evms.conf.sample" - - # 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/* - - # move static libraries to /usr/lib - dodir /usr/$(get_libdir) - mv -f "${D}"/$(get_libdir)/*.a "${D}/usr/$(get_libdir)" - - # Create linker scripts for dynamic libs in /lib, else gcc - # links to the static ones in /usr/lib first. Bug #4411. - for x in "${D}/usr/$(get_libdir)"/*.a ; do - if [ -f ${x} ] ; then - local lib="${x##*/}" - gen_usr_ldscript ${lib/\.a/\.so} - fi - done - - # the gtk+ frontend should live in /usr/sbin - if use gtk ; then - dodir /usr/sbin - mv -f "${D}"/sbin/evmsgui "${D}"/usr/sbin - fi - - # Needed for bug #51252 - dosym libevms-2.5.so.0.0 /$(get_libdir)/libevms-2.5.so.0 - - newinitd "${FILESDIR}"/evms.initd-2.5.5-r9 evms || die - newconfd "${FILESDIR}"/evms.conf-2.5.5-r9 evms || die -} - -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=loop/0" - 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 - - volume=$(readlink "/dev/${EVMS_TEST_VOLUME}") - einfo "Disabling sandbox for:" - einfo " - /dev/${volume:-${EVMS_TEST_VOLUME}}" - addwrite /dev/${volume:-${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:${PATH}" ./run_tests ${EVMS_TEST_VOLUME} || die "tests failed" -} |