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: mdadm-3.0.2.ebuild ChangeLog
Date: Wed, 30 Sep 2009 03:19:32
Message-Id: E1Mspix-0006ib-Oh@stork.gentoo.org
1 vapier 09/09/30 03:19:27
2
3 Modified: ChangeLog
4 Added: mdadm-3.0.2.ebuild
5 Log:
6 Version bump #286544 by Krzysztof Oledzki.
7 (Portage version: 2.2_rc40/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.113 sys-fs/mdadm/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/ChangeLog?rev=1.113&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/ChangeLog?rev=1.113&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/ChangeLog?r1=1.112&r2=1.113
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v
19 retrieving revision 1.112
20 retrieving revision 1.113
21 diff -u -r1.112 -r1.113
22 --- ChangeLog 23 Aug 2009 11:19:38 -0000 1.112
23 +++ ChangeLog 30 Sep 2009 03:19:27 -0000 1.113
24 @@ -1,6 +1,11 @@
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.112 2009/08/23 11:19:38 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.113 2009/09/30 03:19:27 vapier Exp $
29 +
30 +*mdadm-3.0.2 (30 Sep 2009)
31 +
32 + 30 Sep 2009; Mike Frysinger <vapier@g.o> +mdadm-3.0.2.ebuild:
33 + Version bump #286544 by Krzysztof Oledzki.
34
35 *mdadm-3.0 (23 Aug 2009)
36
37
38
39
40 1.1 sys-fs/mdadm/mdadm-3.0.2.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/mdadm-3.0.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/mdadm-3.0.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: mdadm-3.0.2.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.0.2.ebuild,v 1.1 2009/09/30 03:19:27 vapier Exp $
50
51 inherit eutils flag-o-matic
52
53 DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools"
54 HOMEPAGE="http://neil.brown.name/blog/mdadm"
55 SRC_URI="mirror://kernel/linux/utils/raid/mdadm/${P}.tar.bz2"
56
57 LICENSE="GPL-2"
58 SLOT="0"
59 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
60 IUSE="static"
61
62 DEPEND=""
63 RDEPEND=">=sys-apps/util-linux-2.16"
64
65 src_unpack() {
66 unpack ${A}
67 cd "${S}"
68 epatch "${FILESDIR}"/${PN}-3.0-dont-make-man.patch
69 epatch "${FILESDIR}"/${PN}-2.6-syslog-updates.patch
70 epatch "${FILESDIR}"/${PN}-2.6.4-mdassemble.patch #211426
71 use static && append-ldflags -static
72 }
73
74 src_compile() {
75 emake \
76 CROSS_COMPILE=${CHOST}- \
77 CWFLAGS="-Wall" \
78 CXFLAGS="${CFLAGS}" \
79 all mdassemble \
80 || die "emake failed"
81 }
82
83 src_install() {
84 emake DESTDIR="${D}" install || die "make install failed"
85 into /
86 dosbin mdassemble || die
87 dodoc ChangeLog INSTALL TODO README* ANNOUNCE-${PV}
88
89 exeinto /$(get_libdir)/rcscripts/addons
90 newexe "${FILESDIR}"/raid-start.sh-3.0 raid-start.sh || die "addon failed"
91 newexe "${FILESDIR}"/raid-stop.sh raid-stop.sh || die "addon failed"
92
93 insinto /etc
94 newins mdadm.conf-example mdadm.conf
95 newinitd "${FILESDIR}"/mdadm.rc mdadm || die "installing mdadm.rc failed"
96 newconfd "${FILESDIR}"/mdadm.confd mdadm || die "installing mdadm.confd failed"
97 newinitd "${FILESDIR}"/mdraid.rc mdraid || die "installing mdraid.rc failed"
98
99 insinto /etc/udev/rules.d/
100 newins "${FILESDIR}"/udev-145-64-md-raid.rules 64-md-raid.rules || die
101 }
102
103 pkg_postinst() {
104 elog "If using baselayout-2 and not relying on kernel auto-detect"
105 elog "of your RAID devices, you need to add 'mdraid' to your 'boot'"
106 elog "runlevel. Run the following command:"
107 elog "rc-update add mdraid boot"
108 }