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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Oct 2 09:38:20 2007 UTC (6 years, 6 months ago) by robbat2
Branch: MAIN
Changes since 1.1: +2 -2 lines
emake/make cleanup of current ebuild.
(Portage version: 2.1.3.11)

1 # Copyright 1999-2007 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-r1.ebuild,v 1.1 2007/10/02 08:12:27 robbat2 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
19 S="${WORKDIR}/${PN}.${PV}"
20
21 src_unpack() {
22 unpack ${A}
23 cd "${S}"
24 epatch "${FILESDIR}"/device-mapper-1.02.22-export-format.diff
25 }
26
27 src_compile() {
28 econf --sbindir=/sbin $(use_enable selinux) --enable-dmeventd || die "econf failed"
29 emake || die "compile problem"
30 }
31
32 src_install() {
33 emake install DESTDIR="${D}" || die
34
35 # move shared libs to /
36 mv "${D}"/usr/$(get_libdir) "${D}"/ || die "move libdir"
37 dolib.a lib/ioctl/libdevmapper.a || die "dolib.a"
38 gen_usr_ldscript libdevmapper.so
39
40 insinto /etc
41 doins "${FILESDIR}"/dmtab
42 insinto /lib/rcscripts/addons
43 doins "${FILESDIR}"/dm-start.sh
44
45 newinitd "${FILESDIR}"/device-mapper.rc device-mapper || die
46
47 newinitd "${FILESDIR}"/1.02.22-dmeventd.initd dmeventd || die
48 dolib.a dmeventd/libdevmapper-event.a || die
49 gen_usr_ldscript libdevmapper-event.so
50
51 insinto /etc/udev/rules.d/
52 newins "${FILESDIR}"/64-device-mapper.rules-1.02.22 64-device-mapper.rules
53
54 dodoc INSTALL INTRO README VERSION WHATS_NEW
55 }
56
57 pkg_preinst() {
58 local l="${ROOT}"/$(get_libdir)/libdevmapper.so.1.01
59 [[ -e ${l} ]] && cp "${l}" "${D}"/$(get_libdir)/
60 }
61
62 pkg_postinst() {
63 preserve_old_lib_notify /$(get_libdir)/libdevmapper.so.1.01
64
65 elog "device-mapper volumes are no longer automatically created for"
66 elog "baselayout-2 users. If you are using baselayout-2, be sure to"
67 elog "run: # rc-update add device-mapper boot"
68 }

  ViewVC Help
Powered by ViewVC 1.1.20