/[gentoo-x86]/sys-fs/device-mapper/device-mapper-1.02.22-r5.ebuild
Gentoo

Contents of /sys-fs/device-mapper/device-mapper-1.02.22-r5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sun Feb 6 10:51:16 2011 UTC (3 years, 8 months ago) by leio
Branch: MAIN
Changes since 1.12: +3 -3 lines
Drop to ~mips

(Portage version: 2.1.9.35/cvs/Linux mips64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-fs/device-mapper/device-mapper-1.02.22-r5.ebuild,v 1.12 2007/12/11 23:54:58 vapier Exp $
4
5 inherit eutils multilib toolchain-funcs
6
7 DESCRIPTION="Device mapper ioctl library for use with LVM2 utilities"
8 HOMEPAGE="http://sources.redhat.com/dm/"
9 SRC_URI="ftp://sources.redhat.com/pub/dm/${PN}.${PV}.tgz
10 ftp://sources.redhat.com/pub/dm/old/${PN}.${PV}.tgz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86"
15 IUSE="selinux"
16
17 DEPEND="selinux? ( sys-libs/libselinux )"
18 RDEPEND="!<sys-fs/udev-115-r1
19 ${DEPEND}"
20
21 S="${WORKDIR}/${PN}.${PV}"
22
23 src_unpack() {
24 unpack ${A}
25 cd "${S}"
26 epatch "${FILESDIR}"/device-mapper-1.02.22-export-format-r1.diff
27 }
28
29 src_compile() {
30 econf --sbindir=/sbin $(use_enable selinux) --enable-dmeventd || die "econf failed"
31 emake || die "compile problem"
32 }
33
34 src_install() {
35 emake install DESTDIR="${D}" || die
36
37 # move shared libs to /
38 mv "${D}"/usr/$(get_libdir) "${D}"/ || die "move libdir"
39 dolib.a lib/ioctl/libdevmapper.a || die "dolib.a"
40 gen_usr_ldscript libdevmapper.so
41
42 insinto /etc
43 doins "${FILESDIR}"/dmtab
44 insinto /lib/rcscripts/addons
45 doins "${FILESDIR}"/dm-start.sh
46
47 newinitd "${FILESDIR}"/device-mapper.rc-1.02.22-r3 device-mapper || die
48 newconfd "${FILESDIR}"/device-mapper.conf-1.02.22-r3 device-mapper || die
49
50 newinitd "${FILESDIR}"/1.02.22-dmeventd.initd dmeventd || die
51 dolib.a dmeventd/libdevmapper-event.a || die
52 gen_usr_ldscript libdevmapper-event.so
53
54 insinto /etc/udev/rules.d/
55 newins "${FILESDIR}"/64-device-mapper.rules-1.02.22-r5 64-device-mapper.rules
56
57 dodoc INSTALL INTRO README VERSION WHATS_NEW
58 }
59
60 pkg_preinst() {
61 local l="${ROOT}"/$(get_libdir)/libdevmapper.so.1.01
62 [[ -e ${l} ]] && cp "${l}" "${D}"/$(get_libdir)/
63 }
64
65 pkg_postinst() {
66 preserve_old_lib_notify /$(get_libdir)/libdevmapper.so.1.01
67
68 elog "device-mapper volumes are no longer automatically created for"
69 elog "baselayout-2 users. If you are using baselayout-2, be sure to"
70 elog "run: # rc-update add device-mapper boot"
71 }

  ViewVC Help
Powered by ViewVC 1.1.20