summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-03-01 22:45:26 +0000
committerMike Frysinger <vapier@gentoo.org>2005-03-01 22:45:26 +0000
commite9f8f5a5eeff66653b27e33cefc7b9da938d86df (patch)
treeaa3907f7376c476ab2a7d7e7791ebd21b6f672c3 /sys-fs
parentold (diff)
downloadhistorical-e9f8f5a5eeff66653b27e33cefc7b9da938d86df.tar.gz
historical-e9f8f5a5eeff66653b27e33cefc7b9da938d86df.tar.bz2
historical-e9f8f5a5eeff66653b27e33cefc7b9da938d86df.zip
move from sys-libs
Package-Manager: portage-2.0.51.18
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/device-mapper/ChangeLog132
-rw-r--r--sys-fs/device-mapper/Manifest8
-rw-r--r--sys-fs/device-mapper/device-mapper-1.00.17-r1.ebuild47
-rw-r--r--sys-fs/device-mapper/device-mapper-1.00.19-r2.ebuild43
-rw-r--r--sys-fs/device-mapper/files/digest-device-mapper-1.00.17-r11
-rw-r--r--sys-fs/device-mapper/files/digest-device-mapper-1.00.19-r21
-rw-r--r--sys-fs/device-mapper/files/dm-start.sh80
-rw-r--r--sys-fs/device-mapper/files/dmtab12
-rw-r--r--sys-fs/device-mapper/metadata.xml5
9 files changed, 329 insertions, 0 deletions
diff --git a/sys-fs/device-mapper/ChangeLog b/sys-fs/device-mapper/ChangeLog
new file mode 100644
index 000000000000..1dfed1a2a14f
--- /dev/null
+++ b/sys-fs/device-mapper/ChangeLog
@@ -0,0 +1,132 @@
+# ChangeLog for sys-libs/device-mapper
+# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/device-mapper/ChangeLog,v 1.1 2005/03/01 22:45:26 vapier Exp $
+
+ 23 Feb 2005; Martin Schlemmer <azarah@gentoo.org> files/dm-start.sh:
+ Fix error printing. Remove sourcing of functions.sh.
+
+*device-mapper-1.00.19-r2 (23 Feb 2005)
+
+ 23 Feb 2005; Martin Schlemmer <azarah@gentoo.org> +files/dm-start.sh,
+ +files/dmtab, +device-mapper-1.00.19-r2.ebuild:
+ Install static library again. Add /etc/dmtab and new rc-scripts addon for
+ setting up DM volumes at boot. Note that this need upcomming baselayout
+ release.
+
+ 25 Nov 2004; Guy Martin <gmsoft@gentoo.org> device-mapper-1.00.19-r1.ebuild:
+ Stable on hppa.
+
+ 14 Nov 2004; <max@gentoo.org> device-mapper-1.00.07-r1.ebuild,
+ device-mapper-1.00.07.ebuild, device-mapper-1.00.08-r1.ebuild,
+ device-mapper-1.00.08.ebuild, device-mapper-1.00.17-r1.ebuild,
+ device-mapper-1.00.17.ebuild, device-mapper-1.00.18-r1.ebuild,
+ device-mapper-1.00.18.ebuild, device-mapper-1.00.19.ebuild:
+ Add empty IUSE to silence repoman errors. Fix SRC_URI as per bug #65807.
+
+ 31 Oct 2004; Jason Wever <weeve@gentoo.org>
+ device-mapper-1.00.17-r1.ebuild:
+ Stable on sparc (as much as 2.6 kernel stuff can be stable on sparc).
+
+ 01 Oct 2004; Simon Stelling <blubb@gentoo.org>
+ device-mapper-1.00.19-r1.ebuild:
+ get_libdir-ized and added IUSE=""
+
+ 17 Aug 2004; <agriffis@gentoo.org> device-mapper-1.00.19-r1.ebuild:
+ add ~alpha #60071
+
+*device-mapper-1.00.07-r1 (24 Jul 2004)
+
+ 24 Jul 2004; Martin Schlemmer <azarah@gentoo.org>
+ +device-mapper-1.00.07-r1.ebuild, +device-mapper-1.00.08-r1.ebuild,
+ +device-mapper-1.00.17-r1.ebuild, +device-mapper-1.00.18-r1.ebuild,
+ +device-mapper-1.00.19-r1.ebuild:
+ Add linker script to fixup bug #4411
+
+*device-mapper-1.00.19 (23 Jul 2004)
+
+ 23 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
+ +device-mapper-1.00.19.ebuild:
+ Marked 1.00.17 stable on x86 and amd64. Version bumps close bug #54534
+
+ 29 May 2004; Tom Gall <tgall@gentoo.org> device-mapper-1.00.17.ebuild:
+ mark stable on ppc64, bug #52331
+
+ 26 Apr 2004; Aron Griffis <agriffis@gentoo.org>
+ device-mapper-1.00.07.ebuild, device-mapper-1.00.08.ebuild,
+ device-mapper-1.00.17.ebuild:
+ Add die following econf for bug 48950
+
+*device-mapper-1.00.17 (24 Apr 2004)
+
+ 24 Apr 2004; Max Kalika <max@gentoo.org> device-mapper-1.00.17.ebuild:
+ Bump to version 1.00.17.
+
+ 13 Apr 2004; Jason Wever <weeve@gentoo.org> device-mapper-1.00.08.ebuild:
+ Stable on sparc.
+
+ 15 Mar 2004; Max Kalika <max@gentoo.org> device-mapper-1.00.08.ebuild:
+ Bump to stable x86.
+
+ 10 Mar 2004; Bartosch Pixa <darkspecter@gentoo.org>
+ device-mapper-1.00.07.ebuild:
+ set ppc in keywords
+
+ 10 Mar 2004; Max Kalika <max@gentoo.org> device-mapper-1.00.08.ebuild:
+ Install the static library into /usr as well. Fixes bug #44223.
+
+*device-mapper-1.00.08 (09 Mar 2004)
+
+ 09 Mar 2004; Max Kalika <max@gentoo.org> device-mapper-1.00.05.ebuild,
+ device-mapper-1.00.07.ebuild, device-mapper-1.00.08.ebuild:
+ Update SRC_URI as per bug #43880. Update HOMEPAGE as well. Bump to 1.00.08.
+
+ 22 Jan 2004; Markus Nigbur <pyrania@gentoo.org>
+ device-mapper-1.00.07.ebuild:
+ Marked stable on sparc.
+
+ 26 Dec 2003; Ciaran McCreesh <ciaranm@gentoo.org>
+ device-mapper-1.00.07.ebuild:
+ Added ~sparc keyword
+
+ 13 Dec 2003; Brad House <brad_mssw@gentoo.org> device-mapper-1.00.07.ebuild:
+ mark stable on amd64
+
+ 08 Dec 2003; <max@gentoo.org> device-mapper-1.00.07.ebuild:
+ Bump to stable x86 and add ~amd64 as per bug 34779.
+
+*device-mapper-1.00.07 (02 Dec 2003)
+
+ 02 Dec 2003; <max@gentoo.org> device-mapper-1.00.07.ebuild:
+ Bump to version 1.00.07. Make it ~x86 for now.
+
+ 29 Oct 2003; Max Kalika <max@gentoo.org> device-mapper-1.00.05.ebuild:
+ Put the kernel check back in pkg_setup(). Fixes bug 32044.
+
+ 27 Oct 2003; Max Kalika <max@gentoo.org> device-mapper-1.00.05.ebuild:
+ Fix kernel support check.
+
+ 21 Oct 2003; Max Kalika <max@gentoo.org> device-mapper-1.00.05.ebuild:
+ Bump to stable x86.
+
+*device-mapper-1.00.05 (02 Sep 2003)
+
+ 02 Sep 2003; Max Kalika <max@gentoo.org> device-mapper-1.00.05.ebuild:
+ Bump version to 1.00.05.
+
+ 03 Jul 2003; Max Kalika <max@gentoo.org> device-mapper-0.96.08.ebuild:
+ Set KEYWORDS to ~x86.
+
+ 12 Jun 2003; Max Kalika <max@gentoo.org> device-mapper-0.96.08.ebuild:
+ Drop unneccessary die() calls.
+
+ 29 May 2003; Max Kalika <max@gentoo.org> device-mapper-0.96.08.ebuild:
+ Better kernel-support error message.
+
+ 23 May 2003; Max Kalika <max@gentoo.org> device-mapper-0.96.08.ebuild:
+ Install libdevmapper.so to /lib as well.
+
+*device-mapper-0.96.08 (12 May 2003)
+
+ 12 May 2003; Max Kalika <max@gentoo.org> device-mapper-0.96.08.ebuild:
+ Initial version.
+
diff --git a/sys-fs/device-mapper/Manifest b/sys-fs/device-mapper/Manifest
new file mode 100644
index 000000000000..a917566b021b
--- /dev/null
+++ b/sys-fs/device-mapper/Manifest
@@ -0,0 +1,8 @@
+MD5 6760940ce223ff26501b4e38b88ce81a ChangeLog 4793
+MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
+MD5 f362fc580199f7c495a54da707803ec1 device-mapper-1.00.17-r1.ebuild 1191
+MD5 f051c5ddc506fc6a65c4644d7ee3352d device-mapper-1.00.19-r2.ebuild 1170
+MD5 3722791187466d3005f5b7f129c3ed7a files/digest-device-mapper-1.00.17-r1 70
+MD5 b5dd92354fb75caa4956a92d5aa2e0ea files/digest-device-mapper-1.00.19-r2 70
+MD5 4da8149fc2d10e2e95f680184c3a08d8 files/dm-start.sh 1941
+MD5 aaf96e8a4fd3711078f75fe3fac2072b files/dmtab 426
diff --git a/sys-fs/device-mapper/device-mapper-1.00.17-r1.ebuild b/sys-fs/device-mapper/device-mapper-1.00.17-r1.ebuild
new file mode 100644
index 000000000000..ab50303a2779
--- /dev/null
+++ b/sys-fs/device-mapper/device-mapper-1.00.17-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/device-mapper/device-mapper-1.00.17-r1.ebuild,v 1.1 2005/03/01 22:45:26 vapier Exp $
+
+inherit eutils
+
+DESCRIPTION="Device mapper ioctl library for use with LVM2 utilities."
+HOMEPAGE="http://sources.redhat.com/dm/"
+SRC_URI="ftp://sources.redhat.com/pub/dm/old/${PN}.${PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ppc sparc amd64 ppc64"
+IUSE=""
+
+DEPEND="virtual/linux-sources"
+
+S="${WORKDIR}/${PN}.${PV}"
+
+pkg_setup() {
+ if [ ! -e "/usr/src/linux/include/linux/dm-ioctl.h" ] ; then
+ eerror
+ eerror "Your currently linked kernel (/usr/src/linux) hasn't"
+ eerror "been patched for device mapper support."
+ eerror
+ die "kernel not patched for device mapper support"
+ fi
+
+ return 0
+}
+
+src_compile() {
+ econf || die "econf failed"
+
+ # Parallel build doesn't work.
+ emake -j1 || die "compile problem"
+}
+
+src_install() {
+ einstall sbindir="${D}/sbin" libdir="${D}/lib"
+ dolib.a lib/ioctl/libdevmapper.a
+
+ # bug #4411
+ gen_usr_ldscript libdevmapper.so || die "gen_usr_ldscript failed"
+
+ dodoc COPYING* INSTALL INTRO README VERSION WHATS_NEW
+}
diff --git a/sys-fs/device-mapper/device-mapper-1.00.19-r2.ebuild b/sys-fs/device-mapper/device-mapper-1.00.19-r2.ebuild
new file mode 100644
index 000000000000..67d3b7cc12e2
--- /dev/null
+++ b/sys-fs/device-mapper/device-mapper-1.00.19-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/device-mapper/device-mapper-1.00.19-r2.ebuild,v 1.1 2005/03/01 22:45:26 vapier Exp $
+
+inherit eutils
+
+DESCRIPTION="Device mapper ioctl library for use with LVM2 utilities."
+HOMEPAGE="http://sources.redhat.com/dm/"
+SRC_URI="ftp://sources.redhat.com/pub/dm/${PN}.${PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sparc x86"
+IUSE=""
+
+DEPEND=""
+
+S=${WORKDIR}/${PN}.${PV}
+
+src_compile() {
+ econf || die "econf failed"
+
+ # Parallel build doesn't work.
+ emake -j1 || die "compile problem"
+}
+
+src_install() {
+ einstall sbindir="${D}/sbin" \
+ libdir="${D}/$(get_libdir)" || die "install failed"
+
+ # Please do not use $(get_libdir) here again, as it is where it is
+ # _located_, and not to where it is installed!
+ dolib.a ${S}/lib/ioctl/libdevmapper.a
+ # bug #4411
+ gen_usr_ldscript libdevmapper.so || die "gen_usr_ldscript failed"
+
+ insinto /etc
+ doins ${FILESDIR}/dmtab
+ insinto /lib/rcscripts/addons
+ doins ${FILESDIR}/dm-start.sh
+
+ dodoc COPYING* INSTALL INTRO README VERSION WHATS_NEW
+}
diff --git a/sys-fs/device-mapper/files/digest-device-mapper-1.00.17-r1 b/sys-fs/device-mapper/files/digest-device-mapper-1.00.17-r1
new file mode 100644
index 000000000000..fbd0ecb3318d
--- /dev/null
+++ b/sys-fs/device-mapper/files/digest-device-mapper-1.00.17-r1
@@ -0,0 +1 @@
+MD5 b74bb5fa232c77bf74f87eac2f53e1e4 device-mapper.1.00.17.tgz 637694
diff --git a/sys-fs/device-mapper/files/digest-device-mapper-1.00.19-r2 b/sys-fs/device-mapper/files/digest-device-mapper-1.00.19-r2
new file mode 100644
index 000000000000..689aeecbec74
--- /dev/null
+++ b/sys-fs/device-mapper/files/digest-device-mapper-1.00.19-r2
@@ -0,0 +1 @@
+MD5 a7a97c469f22e3ec2cdcb5aae5603f3f device-mapper.1.00.19.tgz 640411
diff --git a/sys-fs/device-mapper/files/dm-start.sh b/sys-fs/device-mapper/files/dm-start.sh
new file mode 100644
index 000000000000..5770ca6a9a17
--- /dev/null
+++ b/sys-fs/device-mapper/files/dm-start.sh
@@ -0,0 +1,80 @@
+# /lib/rcscripts/addons/dm-start.sh: Setup DM volumes at boot
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/device-mapper/files/dm-start.sh,v 1.1 2005/03/01 22:45:26 vapier Exp $
+
+# char **get_new_dm_volumes(void)
+#
+# Return dmsetup commands to setup volumes
+get_new_dm_volumes() {
+ local volume params
+
+ # Filter comments and blank lines
+ grep -v -e '^[[:space:]]*\(#\|$\)' /etc/dmtab | \
+ while read volume params; do
+ # If it exists, skip it
+ dmvolume_exists "${volume%:}" && continue
+ # Assemble the command to run to create volume
+ echo "echo ${params} | /sbin/dmsetup create ${volume%:}"
+ done
+
+ return 0
+}
+
+# int dmvolume_exists(volume)
+#
+# Return true if volume exists in DM table
+dmvolume_exists() {
+ local x line volume=$1
+
+ [[ -z ${volume} ]] && return 1
+
+ while read line; do
+ for x in ${line}; do
+ [[ ${x} == "${volume}" ]] && return 0
+ # We only want to check the volume name
+ break
+ done
+ done <<<"$(/sbin/dmsetup ls 2>/dev/null)"
+
+ return 1
+}
+
+# int is_empty_dm_volume(volume)
+#
+# Return true if the volume exists in DM table, but is empty/non-valid
+is_empty_dm_volume() {
+ local table volume=$1
+
+ table=$(/sbin/dmsetup table 2>/dev/null | grep -e "^${volume}:")
+
+ # dmsetup seems to print an space after the colon for the moment
+ [[ -n ${table} && -z ${table/${volume}:*} ]] && return 0
+
+ return 1
+}
+
+local x volume
+
+if [[ -x /sbin/dmsetup && -c /dev/mapper/control && -f /etc/dmtab ]]; then
+ [[ -n $(get_new_dm_volumes) ]] && \
+ einfo " Setting up device-mapper volumes:"
+
+ while read x; do
+ [[ -n ${x} ]] || continue
+
+ volume="${x##* }"
+
+ ebegin " Creating volume: ${volume}"
+ if ! eval ${x} &>/dev/null; then
+ eend 1 " Error creating volume: ${volume}"
+ # dmsetup still adds an empty volume in some cases,
+ # so lets remove it
+ is_empty_dm_volume "${volume}" && \
+ /sbin/dmsetup remove "${volume}" &>/dev/null
+ else
+ eend 0
+ fi
+ done <<< "$(get_new_dm_volumes)"
+fi
+
+
+# vim:ts=4
diff --git a/sys-fs/device-mapper/files/dmtab b/sys-fs/device-mapper/files/dmtab
new file mode 100644
index 000000000000..96c6640675a7
--- /dev/null
+++ b/sys-fs/device-mapper/files/dmtab
@@ -0,0 +1,12 @@
+#/etc/dmraid: config file for adding device-mapper volumes at boot
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/device-mapper/files/dmtab,v 1.1 2005/03/01 22:45:26 vapier Exp $
+
+# Format: <volume name>: <table>
+# Example: isw0: 0 312602976 striped 2 128 /dev/sda 0 /dev/sdb 0
+#
+# Alternatively you can create all your volumes the first time, and just run:
+#
+# dmsetup table >> /etc/dmtab
+#
+# and verify that they are correct.
+
diff --git a/sys-fs/device-mapper/metadata.xml b/sys-fs/device-mapper/metadata.xml
new file mode 100644
index 000000000000..96a2d586367d
--- /dev/null
+++ b/sys-fs/device-mapper/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>base-system</herd>
+</pkgmetadata>