diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-04-14 22:47:46 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-04-14 22:47:46 +0000 |
commit | 16f710cdb9525a9326fb4250bbe32af43b2cb405 (patch) | |
tree | f27ea8db910acfb2523fe3c8284629a2a49d8b47 /sys-fs/device-mapper | |
parent | And fix a typo ;) (diff) | |
download | gentoo-2-16f710cdb9525a9326fb4250bbe32af43b2cb405.tar.gz gentoo-2-16f710cdb9525a9326fb4250bbe32af43b2cb405.tar.bz2 gentoo-2-16f710cdb9525a9326fb4250bbe32af43b2cb405.zip |
Version bump.
(Portage version: 2.2_pre5)
Diffstat (limited to 'sys-fs/device-mapper')
-rw-r--r-- | sys-fs/device-mapper/ChangeLog | 8 | ||||
-rw-r--r-- | sys-fs/device-mapper/device-mapper-1.02.25.ebuild | 74 |
2 files changed, 81 insertions, 1 deletions
diff --git a/sys-fs/device-mapper/ChangeLog b/sys-fs/device-mapper/ChangeLog index 4b6c36aea391..195911207c3a 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-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/device-mapper/ChangeLog,v 1.106 2008/02/11 22:03:52 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/device-mapper/ChangeLog,v 1.107 2008/04/14 22:47:46 vapier Exp $ + +*device-mapper-1.02.25 (14 Apr 2008) + + 14 Apr 2008; Mike Frysinger <vapier@gentoo.org> + +device-mapper-1.02.25.ebuild: + Version bump. *device-mapper-1.02.24-r1 (11 Feb 2008) diff --git a/sys-fs/device-mapper/device-mapper-1.02.25.ebuild b/sys-fs/device-mapper/device-mapper-1.02.25.ebuild new file mode 100644 index 000000000000..8452abec5307 --- /dev/null +++ b/sys-fs/device-mapper/device-mapper-1.02.25.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2008 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.25.ebuild,v 1.1 2008/04/14 22:47:46 vapier 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 )" +RDEPEND="!<sys-fs/udev-115-r1 + ${DEPEND}" + +S="${WORKDIR}/${PN}.${PV}" + +src_unpack() { + unpack ${A} + EPATCH_OPTS="-p1 -d${S}" epatch "${FILESDIR}"/device-mapper-1.02.24-export-format.diff +} + +src_compile() { + econf \ + --sbindir=/sbin \ + --enable-dmeventd \ + $(use_enable selinux) \ + CLDFLAGS="${LDFLAGS}" || die "econf failed" + emake || die "compile problem" +} + +src_install() { + emake 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-1.02.22-r3 device-mapper || die + newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper || die + + newinitd "${FILESDIR}"/1.02.22-dmeventd.initd dmeventd || die + dolib.a dmeventd/libdevmapper-event.a || die + gen_usr_ldscript libdevmapper-event.so + + insinto /etc/udev/rules.d/ + newins "${FILESDIR}"/64-device-mapper.rules-1.02.22-r5 64-device-mapper.rules + + 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" +} |