summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Edgar <rocket@gentoo.org>2005-06-01 20:28:50 +0000
committerEric Edgar <rocket@gentoo.org>2005-06-01 20:28:50 +0000
commit4f130ce24276ba5b0761e170cf4dd52028863ab4 (patch)
treeb58ce74ac91a26a08f80b0c34a32da32a8f08550 /sys-fs/lvm-user
parentAdded mips check on squashfs-tools. (diff)
downloadgentoo-2-4f130ce24276ba5b0761e170cf4dd52028863ab4.tar.gz
gentoo-2-4f130ce24276ba5b0761e170cf4dd52028863ab4.tar.bz2
gentoo-2-4f130ce24276ba5b0761e170cf4dd52028863ab4.zip
New Ebuild to fix bug 27420 -- lvmcreate_initrd contains obsolete use of 'tail -1'
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'sys-fs/lvm-user')
-rw-r--r--sys-fs/lvm-user/ChangeLog8
-rw-r--r--sys-fs/lvm-user/files/digest-lvm-user-1.0.7-r41
-rw-r--r--sys-fs/lvm-user/lvm-user-1.0.7-r4.ebuild84
3 files changed, 92 insertions, 1 deletions
diff --git a/sys-fs/lvm-user/ChangeLog b/sys-fs/lvm-user/ChangeLog
index e60382354d04..61dc7728a58d 100644
--- a/sys-fs/lvm-user/ChangeLog
+++ b/sys-fs/lvm-user/ChangeLog
@@ -1,7 +1,13 @@
# ChangeLog for sys-fs/lvm-user
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm-user/ChangeLog,v 1.9 2005/05/03 20:15:02 plasmaroo Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/lvm-user/ChangeLog,v 1.10 2005/06/01 20:28:50 rocket Exp $
+*lvm-user-1.0.7-r4 (01 Jun 2005)
+
+ 01 Jun 2005; Eric Edgar <rocket@gentoo.org> +lvm-user-1.0.7-r4.ebuild:
+ New Ebuild to fix bug 27420 -- lvmcreate_initrd contains obsolete use of
+ 'tail -1'
+
03 May 2005; <plasmaroo@gentoo.org> lvm-user-1.0.7-r2.ebuild,
lvm-user-1.0.7-r3.ebuild:
Add !>=sys-kernel/linux-headers-2.6; bug #90897.
diff --git a/sys-fs/lvm-user/files/digest-lvm-user-1.0.7-r4 b/sys-fs/lvm-user/files/digest-lvm-user-1.0.7-r4
new file mode 100644
index 000000000000..b22fd4463c8c
--- /dev/null
+++ b/sys-fs/lvm-user/files/digest-lvm-user-1.0.7-r4
@@ -0,0 +1 @@
+MD5 de56e9ab0384596b795702802f1c1e6a lvm_1.0.7.tar.gz 372838
diff --git a/sys-fs/lvm-user/lvm-user-1.0.7-r4.ebuild b/sys-fs/lvm-user/lvm-user-1.0.7-r4.ebuild
new file mode 100644
index 000000000000..c3209818b9ed
--- /dev/null
+++ b/sys-fs/lvm-user/lvm-user-1.0.7-r4.ebuild
@@ -0,0 +1,84 @@
+# 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-r4.ebuild,v 1.1 2005/06/01 20:28:50 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
+ !>=sys-kernel/linux-headers-2.6
+ virtual/linux-sources" # Use lvm2 for 2.6; lvm-user is for 2.4; see #90897.
+
+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
+
+ # Fix tail
+ # bug 27420 -- lvmcreate_initrd contains obsolete use of `tail -1'
+ sed -i -e 's/tail -1/tail -n 1/' tools/lvmcreate_initrd
+
+ 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
+
+}