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-r3.ebuild
Date: Thu, 04 Oct 2007 14:36:37
Message-Id: E1IdRfg-0005jf-7z@stork.gentoo.org
1 cardoe 07/10/04 14:27:24
2
3 Modified: ChangeLog
4 Added: mdadm-2.6.3-r3.ebuild
5 Log:
6 remove lvm from before check since this needs to be user configurable
7 (Portage version: 2.1.3.11)
8
9 Revision Changes Path
10 1.83 sys-fs/mdadm/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/ChangeLog?rev=1.83&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/ChangeLog?rev=1.83&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/ChangeLog?r1=1.82&r2=1.83
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v
19 retrieving revision 1.82
20 retrieving revision 1.83
21 diff -u -r1.82 -r1.83
22 --- ChangeLog 3 Oct 2007 11:58:45 -0000 1.82
23 +++ ChangeLog 4 Oct 2007 14:27:23 -0000 1.83
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.82 2007/10/03 11:58:45 robbat2 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.83 2007/10/04 14:27:23 cardoe Exp $
29 +
30 +*mdadm-2.6.3-r3 (04 Oct 2007)
31 +
32 + 04 Oct 2007; Doug Goldstein <cardoe@g.o> +files/mdraid.rc-2.6.3-r3,
33 + +mdadm-2.6.3-r3.ebuild:
34 + remove lvm from before check since this needs to be user configurable
35
36 *mdadm-2.6.3-r2 (03 Oct 2007)
37
38
39
40
41 1.1 sys-fs/mdadm/mdadm-2.6.3-r3.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/mdadm-2.6.3-r3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/mdadm/mdadm-2.6.3-r3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mdadm-2.6.3-r3.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-r3.ebuild,v 1.1 2007/10/04 14:27: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 newexe "${FILESDIR}"/raid-start.sh-2.6.3-r2 raid-start.sh || die "addon failed"
83 newexe "${FILESDIR}"/raid-stop.sh-2.6.3-r2 raid-stop.sh || die "addon failed"
84 dodoc INSTALL TODO "ANNOUNCE-${PV}"
85
86 insinto /etc
87 newins mdadm.conf-example mdadm.conf
88 newinitd "${FILESDIR}"/mdadm.rc mdadm || die "installing mdadm.rc failed"
89 newconfd "${FILESDIR}"/mdadm.confd mdadm || die "installing mdadm.confd failed"
90 newinitd "${FILESDIR}"/mdraid.rc-2.6.3-r3 mdraid || die "installing mdraid.rc failed"
91
92 insinto /etc/udev/rules.d/
93 newins "${FILESDIR}"/64-md-raid.rules-2.6.3-r2 64-md-raid.rules || die
94 }
95
96 pkg_postinst() {
97 elog "If using baselayout-2 and not relying on kernel auto-detect"
98 elog "of your RAID devices, you need to add 'mdraid' to your 'boot'"
99 elog "runlevel. Run the following command:"
100 elog "rc-update add mdraid boot"
101 }
102
103
104
105 --
106 gentoo-commits@g.o mailing list