From: | "Doug Goldstein (cardoe)" <cardoe@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-fs/device-mapper: ChangeLog device-mapper-1.02.22-r2.ebuild |
Date: | Thu, 04 Oct 2007 14:24:52 |
Message-Id: | E1IdRUJ-0005Wn-6K@stork.gentoo.org |
1 | cardoe 07/10/04 14:15:39 |
2 | |
3 | Modified: ChangeLog |
4 | Added: device-mapper-1.02.22-r2.ebuild |
5 | Log: |
6 | fix baselayout-2 init script to use start_addon |
7 | (Portage version: 2.1.3.11) |
8 | |
9 | Revision Changes Path |
10 | 1.85 sys-fs/device-mapper/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/device-mapper/ChangeLog?rev=1.85&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/device-mapper/ChangeLog?rev=1.85&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/device-mapper/ChangeLog?r1=1.84&r2=1.85 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/sys-fs/device-mapper/ChangeLog,v |
19 | retrieving revision 1.84 |
20 | retrieving revision 1.85 |
21 | diff -u -r1.84 -r1.85 |
22 | --- ChangeLog 2 Oct 2007 09:38:20 -0000 1.84 |
23 | +++ ChangeLog 4 Oct 2007 14:15:38 -0000 1.85 |
24 | @@ -1,6 +1,12 @@ |
25 | # ChangeLog for sys-fs/device-mapper |
26 | # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/sys-fs/device-mapper/ChangeLog,v 1.84 2007/10/02 09:38:20 robbat2 Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/sys-fs/device-mapper/ChangeLog,v 1.85 2007/10/04 14:15:38 cardoe Exp $ |
29 | + |
30 | +*device-mapper-1.02.22-r2 (04 Oct 2007) |
31 | + |
32 | + 04 Oct 2007; Doug Goldstein <cardoe@g.o> |
33 | + +files/device-mapper.rc-r1, +device-mapper-1.02.22-r2.ebuild: |
34 | + fix baselayout-2 init script to use start_addon |
35 | |
36 | 02 Oct 2007; Robin H. Johnson <robbat2@g.o> |
37 | device-mapper-1.02.22-r1.ebuild: |
38 | |
39 | |
40 | |
41 | 1.1 sys-fs/device-mapper/device-mapper-1.02.22-r2.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/device-mapper/device-mapper-1.02.22-r2.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/device-mapper/device-mapper-1.02.22-r2.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: device-mapper-1.02.22-r2.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2007 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/sys-fs/device-mapper/device-mapper-1.02.22-r2.ebuild,v 1.1 2007/10/04 14:15:38 cardoe Exp $ |
51 | |
52 | inherit eutils multilib toolchain-funcs |
53 | |
54 | DESCRIPTION="Device mapper ioctl library for use with LVM2 utilities" |
55 | HOMEPAGE="http://sources.redhat.com/dm/" |
56 | SRC_URI="ftp://sources.redhat.com/pub/dm/${PN}.${PV}.tgz |
57 | ftp://sources.redhat.com/pub/dm/old/${PN}.${PV}.tgz" |
58 | |
59 | LICENSE="GPL-2" |
60 | SLOT="0" |
61 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
62 | IUSE="selinux" |
63 | |
64 | DEPEND="selinux? ( sys-libs/libselinux )" |
65 | |
66 | S="${WORKDIR}/${PN}.${PV}" |
67 | |
68 | src_unpack() { |
69 | unpack ${A} |
70 | cd "${S}" |
71 | epatch "${FILESDIR}"/device-mapper-1.02.22-export-format.diff |
72 | } |
73 | |
74 | src_compile() { |
75 | econf --sbindir=/sbin $(use_enable selinux) --enable-dmeventd || die "econf failed" |
76 | emake || die "compile problem" |
77 | } |
78 | |
79 | src_install() { |
80 | emake install DESTDIR="${D}" || die |
81 | |
82 | # move shared libs to / |
83 | mv "${D}"/usr/$(get_libdir) "${D}"/ || die "move libdir" |
84 | dolib.a lib/ioctl/libdevmapper.a || die "dolib.a" |
85 | gen_usr_ldscript libdevmapper.so |
86 | |
87 | insinto /etc |
88 | doins "${FILESDIR}"/dmtab |
89 | insinto /lib/rcscripts/addons |
90 | doins "${FILESDIR}"/dm-start.sh |
91 | |
92 | newinitd "${FILESDIR}"/device-mapper.rc-r1 device-mapper || die |
93 | |
94 | newinitd "${FILESDIR}"/1.02.22-dmeventd.initd dmeventd || die |
95 | dolib.a dmeventd/libdevmapper-event.a || die |
96 | gen_usr_ldscript libdevmapper-event.so |
97 | |
98 | insinto /etc/udev/rules.d/ |
99 | newins "${FILESDIR}"/64-device-mapper.rules-1.02.22 64-device-mapper.rules |
100 | |
101 | dodoc INSTALL INTRO README VERSION WHATS_NEW |
102 | } |
103 | |
104 | pkg_preinst() { |
105 | local l="${ROOT}"/$(get_libdir)/libdevmapper.so.1.01 |
106 | [[ -e ${l} ]] && cp "${l}" "${D}"/$(get_libdir)/ |
107 | } |
108 | |
109 | pkg_postinst() { |
110 | preserve_old_lib_notify /$(get_libdir)/libdevmapper.so.1.01 |
111 | |
112 | elog "device-mapper volumes are no longer automatically created for" |
113 | elog "baselayout-2 users. If you are using baselayout-2, be sure to" |
114 | elog "run: # rc-update add device-mapper boot" |
115 | } |
116 | |
117 | |
118 | |
119 | -- |
120 | gentoo-commits@g.o mailing list |