summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2007-04-30 14:21:11 +0000
committerDaniel Drake <dsd@gentoo.org>2007-04-30 14:21:11 +0000
commita2d107d2e37f1c14712e1071bbbaf875b386c67a (patch)
treef611e4f882cec1bee2fbbe173bae2a75d5918426 /sys-fs
parentStable on alpha wrt bug #158758 (diff)
downloadgentoo-2-a2d107d2e37f1c14712e1071bbbaf875b386c67a.tar.gz
gentoo-2-a2d107d2e37f1c14712e1071bbbaf875b386c67a.tar.bz2
gentoo-2-a2d107d2e37f1c14712e1071bbbaf875b386c67a.zip
Add baselayout-2 init script
(Portage version: 2.1.2.5)
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/device-mapper/ChangeLog8
-rw-r--r--sys-fs/device-mapper/device-mapper-1.02.18-r1.ebuild55
-rw-r--r--sys-fs/device-mapper/files/device-mapper.rc19
-rw-r--r--sys-fs/device-mapper/files/digest-device-mapper-1.02.18-r13
4 files changed, 84 insertions, 1 deletions
diff --git a/sys-fs/device-mapper/ChangeLog b/sys-fs/device-mapper/ChangeLog
index 272742aba7d7..3a5ff8dc4ced 100644
--- a/sys-fs/device-mapper/ChangeLog
+++ b/sys-fs/device-mapper/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-fs/device-mapper
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/device-mapper/ChangeLog,v 1.57 2007/04/07 10:07:19 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/device-mapper/ChangeLog,v 1.58 2007/04/30 14:21:11 dsd Exp $
+
+*device-mapper-1.02.18-r1 (30 Apr 2007)
+
+ 30 Apr 2007; Daniel Drake <dsd@gentoo.org> +files/device-mapper.rc,
+ +device-mapper-1.02.18-r1.ebuild:
+ Add baselayout-2 init script
*device-mapper-1.02.18 (07 Apr 2007)
diff --git a/sys-fs/device-mapper/device-mapper-1.02.18-r1.ebuild b/sys-fs/device-mapper/device-mapper-1.02.18-r1.ebuild
new file mode 100644
index 000000000000..967fa6c682a5
--- /dev/null
+++ b/sys-fs/device-mapper/device-mapper-1.02.18-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2007 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.02.18-r1.ebuild,v 1.1 2007/04/30 14:21:11 dsd Exp $
+
+inherit eutils multilib toolchain-funcs
+
+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
+ ftp://sources.redhat.com/pub/dm/old/${PN}.${PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="selinux"
+
+DEPEND="selinux? ( sys-libs/libselinux )"
+
+S=${WORKDIR}/${PN}.${PV}
+
+src_compile() {
+ econf --sbindir=/sbin $(use_enable selinux) || die "econf failed"
+ emake || die "compile problem"
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die
+
+ # move shared libs to /
+ mv "${D}"/usr/$(get_libdir) "${D}"/ || die "move libdir"
+ dolib.a lib/ioctl/libdevmapper.a || die "dolib.a"
+ gen_usr_ldscript libdevmapper.so
+
+ insinto /etc
+ doins "${FILESDIR}"/dmtab
+ insinto /lib/rcscripts/addons
+ doins "${FILESDIR}"/dm-start.sh
+
+ newinitd ${FILESDIR}/device-mapper.rc device-mapper || die
+
+ dodoc INSTALL INTRO README VERSION WHATS_NEW
+}
+
+pkg_preinst() {
+ local l=${ROOT}/$(get_libdir)/libdevmapper.so.1.01
+ [[ -e ${l} ]] && cp "${l}" "${D}"/$(get_libdir)/
+}
+
+pkg_postinst() {
+ preserve_old_lib_notify /$(get_libdir)/libdevmapper.so.1.01
+
+ elog "device-mapper volumes are no longer automatically created for"
+ elog "baselayout-2 users. If you are using baselayout-2, be sure to"
+ elog "run: # rc-update add device-mapper boot"
+}
diff --git a/sys-fs/device-mapper/files/device-mapper.rc b/sys-fs/device-mapper/files/device-mapper.rc
new file mode 100644
index 000000000000..fa08982aca8a
--- /dev/null
+++ b/sys-fs/device-mapper/files/device-mapper.rc
@@ -0,0 +1,19 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/device-mapper/files/device-mapper.rc,v 1.1 2007/04/30 14:21:11 dsd Exp $
+
+depend() {
+ before checkroot
+}
+
+start() {
+ if [ ! -e /lib/librc.so ]; then
+ eerror "The ${SVCNAME} init script is written for baselayout-2"
+ eerror "Please do not use it with baselayout-1"
+ return 1
+ fi
+
+ . /lib/rcscripts/addons/dm-start.sh
+}
+
diff --git a/sys-fs/device-mapper/files/digest-device-mapper-1.02.18-r1 b/sys-fs/device-mapper/files/digest-device-mapper-1.02.18-r1
new file mode 100644
index 000000000000..ba13241c616e
--- /dev/null
+++ b/sys-fs/device-mapper/files/digest-device-mapper-1.02.18-r1
@@ -0,0 +1,3 @@
+MD5 8ccb87923a9f33580205e5a9b39c8d58 device-mapper.1.02.18.tgz 177940
+RMD160 528425ce04de13f9be754d408738b4d3ee744cfe device-mapper.1.02.18.tgz 177940
+SHA256 d9a4f7674a728c6ccccd68d29eecb3903b660621def1ae3eccf1b7d8547b4c88 device-mapper.1.02.18.tgz 177940