Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/mdadm: ChangeLog mdadm-3.1.2.ebuild
Date: Thu, 03 Jun 2010 02:05:48
Message-Id: 20100603020545.0E3932CF37@corvid.gentoo.org
1 vapier 10/06/03 02:05:44
2
3 Modified: ChangeLog
4 Added: mdadm-3.1.2.ebuild
5 Log:
6 Version bump #322055 by Xake which also fixes #301396 by Torsten Kurbad. Add tip about rc_need to mdraid conf.d #223475 #301617.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.130 sys-fs/mdadm/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/ChangeLog?rev=1.130&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/ChangeLog?rev=1.130&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/ChangeLog?r1=1.129&r2=1.130
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v
19 retrieving revision 1.129
20 retrieving revision 1.130
21 diff -u -r1.129 -r1.130
22 --- ChangeLog 3 Jun 2010 02:03:40 -0000 1.129
23 +++ ChangeLog 3 Jun 2010 02:05:44 -0000 1.130
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sys-fs/mdadm
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.129 2010/06/03 02:03:40 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.130 2010/06/03 02:05:44 vapier Exp $
29 +
30 +*mdadm-3.1.2 (03 Jun 2010)
31 +
32 + 03 Jun 2010; Mike Frysinger <vapier@g.o> +mdadm-3.1.2.ebuild,
33 + +files/mdraid.confd:
34 + Version bump #322055 by Xake which also fixes #301396 by Torsten Kurbad.
35 + Add tip about rc_need to mdraid conf.d #223475 #301617.
36
37 03 Jun 2010; Mike Frysinger <vapier@g.o> files/raid-start.sh-3.0:
38 Drop mdadm.conf parsing now that auto assembling is requied with newer
39
40
41
42 1.1 sys-fs/mdadm/mdadm-3.1.2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/mdadm-3.1.2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/mdadm-3.1.2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mdadm-3.1.2.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.1.2.ebuild,v 1.1 2010/06/03 02:05:44 vapier Exp $
52
53 inherit eutils flag-o-matic
54
55 DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools"
56 HOMEPAGE="http://neil.brown.name/blog/mdadm"
57 SRC_URI="mirror://kernel/linux/utils/raid/mdadm/${P}.tar.bz2"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
62 IUSE="static"
63
64 DEPEND=""
65 RDEPEND=">=sys-apps/util-linux-2.16"
66
67 src_unpack() {
68 unpack ${A}
69 cd "${S}"
70 epatch "${FILESDIR}"/${PN}-3.0-dont-make-man.patch
71 epatch "${FILESDIR}"/${PN}-2.6-syslog-updates.patch
72 epatch "${FILESDIR}"/${PN}-2.6.4-mdassemble.patch #211426
73 use static && append-ldflags -static
74 }
75
76 src_compile() {
77 emake \
78 CROSS_COMPILE=${CHOST}- \
79 CWFLAGS="-Wall" \
80 CXFLAGS="${CFLAGS}" \
81 all mdassemble \
82 || die "emake failed"
83 }
84
85 src_install() {
86 emake DESTDIR="${D}" install || die
87 into /
88 dosbin mdassemble || die
89 dodoc ChangeLog INSTALL TODO README* ANNOUNCE-${PV}
90
91 exeinto /$(get_libdir)/rcscripts/addons
92 newexe "${FILESDIR}"/raid-start.sh-3.0 raid-start.sh || die
93 newexe "${FILESDIR}"/raid-stop.sh raid-stop.sh || die
94
95 insinto /etc
96 newins mdadm.conf-example mdadm.conf
97 newinitd "${FILESDIR}"/mdadm.rc mdadm || die
98 newconfd "${FILESDIR}"/mdadm.confd mdadm || die
99 newinitd "${FILESDIR}"/mdraid.rc-3.1.1 mdraid || die
100 newconfd "${FILESDIR}"/mdraid.confd mdraid || die
101
102 # do not rely on /lib -> /libXX link
103 sed -i \
104 -e "s-/lib/rcscripts/-/$(get_libdir)/rcscripts/-" \
105 "${D}"/etc/init.d/*
106 }
107
108 pkg_postinst() {
109 elog "If using baselayout-2 and not relying on kernel auto-detect"
110 elog "of your RAID devices, you need to add 'mdraid' to your 'boot'"
111 elog "runlevel. Run the following command:"
112 elog "rc-update add mdraid boot"
113 }