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.0.ebuild
Date: Sun, 23 Aug 2009 11:19:41
Message-Id: E1MfB6p-0000Mg-0R@stork.gentoo.org
1 vapier 09/08/23 11:19:39
2
3 Modified: ChangeLog
4 Added: mdadm-3.0.ebuild
5 Log:
6 Version bump #274444 by Michael Evans. Stop creating devices nodes ourselves in boot hook #266724 by Sven E.
7 (Portage version: 2.2_rc38/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.112 sys-fs/mdadm/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/ChangeLog?rev=1.112&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/ChangeLog?rev=1.112&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/ChangeLog?r1=1.111&r2=1.112
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v
19 retrieving revision 1.111
20 retrieving revision 1.112
21 diff -u -r1.111 -r1.112
22 --- ChangeLog 29 Jul 2009 19:14:32 -0000 1.111
23 +++ ChangeLog 23 Aug 2009 11:19:38 -0000 1.112
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sys-fs/mdadm
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.111 2009/07/29 19:14:32 robbat2 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.112 2009/08/23 11:19:38 vapier Exp $
29 +
30 +*mdadm-3.0 (23 Aug 2009)
31 +
32 + 23 Aug 2009; Mike Frysinger <vapier@g.o> +files/raid-start.sh-3.0,
33 + +mdadm-3.0.ebuild, +files/mdadm-3.0-dont-make-man.patch:
34 + Version bump #274444 by Michael Evans. Stop creating devices nodes
35 + ourselves in boot hook #266724 by Sven E.
36
37 *mdadm-2.6.9-r1 (29 Jul 2009)
38
39
40
41
42 1.1 sys-fs/mdadm/mdadm-3.0.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/mdadm-3.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/mdadm-3.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mdadm-3.0.ebuild
48 ===================================================================
49 # Copyright 1999-2009 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.0.ebuild,v 1.1 2009/08/23 11:19:38 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 "make install failed"
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 "addon failed"
93 newexe "${FILESDIR}"/raid-stop.sh raid-stop.sh || die "addon failed"
94
95 insinto /etc
96 newins mdadm.conf-example mdadm.conf
97 newinitd "${FILESDIR}"/mdadm.rc mdadm || die "installing mdadm.rc failed"
98 newconfd "${FILESDIR}"/mdadm.confd mdadm || die "installing mdadm.confd failed"
99 newinitd "${FILESDIR}"/mdraid.rc mdraid || die "installing mdraid.rc failed"
100
101 insinto /etc/udev/rules.d/
102 newins "${FILESDIR}"/udev-145-64-md-raid.rules 64-md-raid.rules || die
103 }
104
105 pkg_postinst() {
106 elog "If using baselayout-2 and not relying on kernel auto-detect"
107 elog "of your RAID devices, you need to add 'mdraid' to your 'boot'"
108 elog "runlevel. Run the following command:"
109 elog "rc-update add mdraid boot"
110 }