Gentoo Archives: gentoo-commits

From: "Doug Goldstein (cardoe)" <cardoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/mdadm: ChangeLog mdadm-2.6.3-r1.ebuild
Date: Tue, 02 Oct 2007 22:11:36
Message-Id: E1Icpot-0006ka-Vq@stork.gentoo.org
1 cardoe 07/10/02 22:02:23
2
3 Modified: ChangeLog
4 Added: mdadm-2.6.3-r1.ebuild
5 Log:
6 Adds baselayout-2 compatible init script to fix bug #177954
7 (Portage version: 2.1.3.11)
8
9 Revision Changes Path
10 1.81 sys-fs/mdadm/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/ChangeLog?rev=1.81&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/ChangeLog?rev=1.81&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/ChangeLog?r1=1.80&r2=1.81
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v
19 retrieving revision 1.80
20 retrieving revision 1.81
21 diff -u -r1.80 -r1.81
22 --- ChangeLog 1 Sep 2007 03:52:40 -0000 1.80
23 +++ ChangeLog 2 Oct 2007 22:02:23 -0000 1.81
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sys-fs/mdadm
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.80 2007/09/01 03:52:40 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.81 2007/10/02 22:02:23 cardoe Exp $
29 +
30 +*mdadm-2.6.3-r1 (02 Oct 2007)
31 +
32 + 02 Oct 2007; Doug Goldstein <cardoe@g.o> +files/mdraid.rc,
33 + +mdadm-2.6.3-r1.ebuild:
34 + Adds baselayout-2 compatible init script to fix bug #177954
35
36 *mdadm-2.6.3 (01 Sep 2007)
37
38
39
40
41 1.1 sys-fs/mdadm/mdadm-2.6.3-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/mdadm-2.6.3-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/mdadm-2.6.3-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mdadm-2.6.3-r1.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/mdadm/mdadm-2.6.3-r1.ebuild,v 1.1 2007/10/02 22:02:23 cardoe Exp $
51
52 inherit eutils flag-o-matic
53
54 DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools"
55 HOMEPAGE="http://cgi.cse.unsw.edu.au/~neilb/mdadm"
56 SRC_URI="mirror://kernel/linux/utils/raid/mdadm/${P}.tar.bz2"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
61 IUSE="static"
62
63 src_unpack() {
64 unpack ${A}
65 cd "${S}"
66 epatch "${FILESDIR}"/${PN}-1.9.0-dont-make-man.patch
67 epatch "${FILESDIR}"/${PN}-2.6-syslog-updates.patch
68 use static && append-ldflags -static
69 }
70
71 src_compile() {
72 emake \
73 CROSS_COMPILE=${CHOST}- \
74 CWFLAGS="-Wall" \
75 CXFLAGS="${CFLAGS}" \
76 || die "emake failed"
77 }
78
79 src_install() {
80 emake DESTDIR="${D}" install || die "make install failed"
81 exeinto /$(get_libdir)/rcscripts/addons
82 doexe "${FILESDIR}"/raid-{start,stop}.sh || die "addon failed"
83 dodoc INSTALL TODO "ANNOUNCE-${PV}"
84
85 insinto /etc
86 newins mdadm.conf-example mdadm.conf
87 newinitd "${FILESDIR}"/mdadm.rc mdadm || die "installing mdadm.rc failed"
88 newconfd "${FILESDIR}"/mdadm.confd mdadm || die "installing mdadm.confd failed"
89 newinitd "${FILESDIR}"/mdraid.rc mdraid || die "installing mdraid.rc failed"
90 }
91
92 pkg_postinst() {
93 elog "If using baselayout-2 and not relying on kernel auto-detect"
94 elog "of your RAID devices, you need to add 'mdraid' to your 'boot'"
95 elog "runlevel. Run the following command:"
96 elog "rc-update add mdraid boot"
97 }
98
99
100
101 --
102 gentoo-commits@g.o mailing list