summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Edgar <rocket@gentoo.org>2005-02-23 03:47:44 +0000
committerEric Edgar <rocket@gentoo.org>2005-02-23 03:47:44 +0000
commit734bde8feb1da740b072c05ee9ca35c844d4229c (patch)
treed572f18cd91179a3c9cf32d0709876656583f800 /sys-fs/lvm-user
parentInitial import. Ebuild by me. Closes bug #70914. (diff)
downloadgentoo-2-734bde8feb1da740b072c05ee9ca35c844d4229c.tar.gz
gentoo-2-734bde8feb1da740b072c05ee9ca35c844d4229c.tar.bz2
gentoo-2-734bde8feb1da740b072c05ee9ca35c844d4229c.zip
New ebuild to install lvm-user-start.sh and lvm-user-stop.sh into /lib/rcscripts/addons to initialize lvm at startup and shutdown
(Portage version: 2.0.51-r15)
Diffstat (limited to 'sys-fs/lvm-user')
-rw-r--r--sys-fs/lvm-user/ChangeLog11
-rw-r--r--sys-fs/lvm-user/Manifest4
-rw-r--r--sys-fs/lvm-user/files/digest-lvm-user-1.0.7-r31
-rwxr-xr-xsys-fs/lvm-user/files/lvm-user-start.sh24
-rwxr-xr-xsys-fs/lvm-user/files/lvm-user-stop.sh14
-rw-r--r--sys-fs/lvm-user/lvm-user-1.0.7-r2.ebuild4
-rw-r--r--sys-fs/lvm-user/lvm-user-1.0.7-r3.ebuild79
7 files changed, 133 insertions, 4 deletions
diff --git a/sys-fs/lvm-user/ChangeLog b/sys-fs/lvm-user/ChangeLog
index 1f233fbb91d2..adb2146676e1 100644
--- a/sys-fs/lvm-user/ChangeLog
+++ b/sys-fs/lvm-user/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sys-fs/lvm-user
-# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm-user/ChangeLog,v 1.7 2004/11/10 05:57:03 vapier Exp $
+# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm-user/ChangeLog,v 1.8 2005/02/23 03:47:44 rocket Exp $
+
+*lvm-user-1.0.7-r3 (22 Feb 2005)
+
+ 22 Feb 2005; Eric Edgar <rocket@gentoo.org> +files/lvm-user-start.sh,
+ +files/lvm-user-stop.sh, +lvm-user-1.0.7-r3.ebuild:
+ New ebuild to install lvm-user-start.sh and lvm-user-stop.sh into
+ /lib/rcscripts/addons to initialize lvm at startup and shutdown
*lvm-user-1.0.7-r2 (10 Nov 2004)
diff --git a/sys-fs/lvm-user/Manifest b/sys-fs/lvm-user/Manifest
index fb4c803349da..784d459c6341 100644
--- a/sys-fs/lvm-user/Manifest
+++ b/sys-fs/lvm-user/Manifest
@@ -1,6 +1,10 @@
MD5 250022cc4ace02039e8148d8e40b6794 ChangeLog 4774
MD5 7f92c5ec2f170256735409be93e67918 lvm-user-1.0.7-r2.ebuild 1701
MD5 7b301d7420e1c916ab2c582cf98928ff metadata.xml 256
+MD5 a7b9d67cb3bb81411e6e147ac91a3eb4 lvm-user-1.0.7-r3.ebuild 1834
MD5 b8c544acbd931e92ce7d68d1f54ef230 files/digest-lvm-user-1.0.7-r2 61
MD5 7484cb0ecb2a997be4910a8612e951cf files/lvm-user-1.0.7-statics.patch 1040
MD5 5a13a84be2257b542d2ff7dce74e3af7 files/lvm-user-1.0.7-tmpfile.patch 554
+MD5 75b6df16c98b6e6bfdd2106c80a0ab23 files/lvm-user-start.sh 688
+MD5 de13bea8b0b152ec8e54718908ffdbfa files/lvm-user-stop.sh 340
+MD5 b8c544acbd931e92ce7d68d1f54ef230 files/digest-lvm-user-1.0.7-r3 61
diff --git a/sys-fs/lvm-user/files/digest-lvm-user-1.0.7-r3 b/sys-fs/lvm-user/files/digest-lvm-user-1.0.7-r3
new file mode 100644
index 000000000000..b22fd4463c8c
--- /dev/null
+++ b/sys-fs/lvm-user/files/digest-lvm-user-1.0.7-r3
@@ -0,0 +1 @@
+MD5 de56e9ab0384596b795702802f1c1e6a lvm_1.0.7.tar.gz 372838
diff --git a/sys-fs/lvm-user/files/lvm-user-start.sh b/sys-fs/lvm-user/files/lvm-user-start.sh
new file mode 100755
index 000000000000..114477e0c1d8
--- /dev/null
+++ b/sys-fs/lvm-user/files/lvm-user-start.sh
@@ -0,0 +1,24 @@
+# /lib/rcscripts/addons/lvm-user-start.sh
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm-user/files/lvm-user-start.sh,v 1.1 2005/02/23 03:47:44 rocket Exp $
+
+# LVM support for /usr, /home, /opt ....
+# This should be done *before* checking local
+# volumes, or they never get checked.
+
+# NOTE: Add needed modules for LVM or RAID, etc
+# to /etc/modules.autoload if needed
+if [ -z "${CDBOOT}" -a -x /sbin/vgscan ] && \
+ [ -d /proc/lvm -o "$(grep device-mapper /proc/misc 2>/dev/null)" ]
+then
+ ebegin "Setting up the Logical Volume Manager"
+ #still echo stderr for debugging
+ /sbin/vgscan >/dev/null
+ if [ "$?" -eq 0 ] && [ -x /sbin/vgchange ] && \
+ [ -f /etc/lvmtab -o -d /etc/lvm ]
+ then
+ /sbin/vgchange -a y >/dev/null
+ fi
+ eend $? "Failed to setup the LVM"
+fi
+
+# vim:ts=4
diff --git a/sys-fs/lvm-user/files/lvm-user-stop.sh b/sys-fs/lvm-user/files/lvm-user-stop.sh
new file mode 100755
index 000000000000..8854845d5995
--- /dev/null
+++ b/sys-fs/lvm-user/files/lvm-user-stop.sh
@@ -0,0 +1,14 @@
+# /lib/rcscripts/addons/lvm-user-stop.sh
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm-user/files/lvm-user-stop.sh,v 1.1 2005/02/23 03:47:44 rocket Exp $
+
+# Stop LVM
+
+if [ -x /sbin/vgchange ] && [ -f /etc/lvmtab -o -d /etc/lvm ] && \
+ [ -d /proc/lvm -o "`grep device-mapper /proc/misc 2>/dev/null`" ]
+then
+ ebegin "Shutting down the Logical Volume Manager"
+ /sbin/vgchange -a n >/dev/null
+ eend $? "Failed to shut LVM down"
+fi
+
+# vim:ts=4
diff --git a/sys-fs/lvm-user/lvm-user-1.0.7-r2.ebuild b/sys-fs/lvm-user/lvm-user-1.0.7-r2.ebuild
index 3b9d67e11123..e06ec7901209 100644
--- a/sys-fs/lvm-user/lvm-user-1.0.7-r2.ebuild
+++ b/sys-fs/lvm-user/lvm-user-1.0.7-r2.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm-user/lvm-user-1.0.7-r2.ebuild,v 1.1 2004/11/10 05:57:04 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm-user/lvm-user-1.0.7-r2.ebuild,v 1.2 2005/02/23 03:47:44 rocket Exp $
inherit flag-o-matic eutils
diff --git a/sys-fs/lvm-user/lvm-user-1.0.7-r3.ebuild b/sys-fs/lvm-user/lvm-user-1.0.7-r3.ebuild
new file mode 100644
index 000000000000..325cb6b6baf1
--- /dev/null
+++ b/sys-fs/lvm-user/lvm-user-1.0.7-r3.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm-user/lvm-user-1.0.7-r3.ebuild,v 1.1 2005/02/23 03:47:44 rocket Exp $
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="User-land utilities for LVM (Logical Volume Manager) software"
+HOMEPAGE="http://www.sistina.com/products_lvm.htm"
+SRC_URI="ftp://ftp.sistina.com/pub/LVM/1.0/lvm_${PV}.tar.gz"
+
+LICENSE=" || ( GPL-2 LGPL-2 )"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa -ppc sparc x86"
+IUSE="static"
+
+RDEPEND="!sys-fs/lvm2"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4.0
+ virtual/linux-sources"
+
+S=${WORKDIR}/LVM/${PV}
+
+pkg_setup() {
+ check_KV
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-tmpfile.patch
+}
+
+src_compile() {
+ local myconf
+
+ filter-flags -fomit-frame-pointer #598
+
+ if use static; then
+ myconf="--enable-static_link"
+ else
+ # bug 29694 -- make static vgscan and vgchange for initrds
+ epatch ${FILESDIR}/lvm-user-1.0.7-statics.patch
+ fi
+
+ ./configure --prefix=/ \
+ --mandir=/usr/share/man \
+ --with-kernel_dir="/usr/src/linux" \
+ ${myconf} || die "configure failed"
+
+ # Fix flags
+ sed -i -e "54,56d" -e "73d" make.tmpl
+
+ make || die "Make failed"
+}
+
+src_install() {
+ einstall sbindir=${D}/sbin libdir=${D}/lib
+
+ if use static; then
+ # already static, make symlinks
+ dosym vgscan /sbin/vgscan.static
+ dosym vgchange /sbin/vgchange.static
+ else
+ # install vgscan.static and vgchange.static
+ into /
+ dosbin ${S}/tools/{vgscan,vgchange}.static
+ fi
+
+ # no need for a static library in /lib
+ dodir /usr/lib
+ mv ${D}/lib/*.a ${D}/usr/lib
+
+ dodoc ABSTRACT CONTRIBUTORS INSTALL LVM-HOWTO TODO CHANGELOG FAQ KNOWN_BUGS README WHATSNEW
+
+ insinto /lib/rcscripts/addons
+ newins ${FILESDIR}/lvm-user-start.sh lvm-start.sh
+ newins ${FILESDIR}/lvm-user-stop.sh lvm-stop.sh
+
+}