Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/mdadm: mdadm-3.3-r2.ebuild ChangeLog
Date: Sat, 02 Nov 2013 06:35:33
Message-Id: 20131102063528.1C27F2004B@flycatcher.gentoo.org
1 robbat2 13/11/02 06:35:28
2
3 Modified: ChangeLog
4 Added: mdadm-3.3-r2.ebuild
5 Log:
6 The Debian patchset has a great tool (checkarray) to run a regular check of arrays , and I think we could benefit from it, since it saved my data at least once already.
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.173 sys-fs/mdadm/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/ChangeLog?rev=1.173&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/ChangeLog?rev=1.173&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/ChangeLog?r1=1.172&r2=1.173
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v
20 retrieving revision 1.172
21 retrieving revision 1.173
22 diff -p -w -b -B -u -u -r1.172 -r1.173
23 --- ChangeLog 28 Sep 2013 08:43:48 -0000 1.172
24 +++ ChangeLog 2 Nov 2013 06:35:27 -0000 1.173
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sys-fs/mdadm
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.172 2013/09/28 08:43:48 pacho Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.173 2013/11/02 06:35:27 robbat2 Exp $
30 +
31 +*mdadm-3.3-r2 (02 Nov 2013)
32 +
33 + 02 Nov 2013; Robin H. Johnson <robbat2@g.o> +mdadm-3.3-r2.ebuild:
34 + The Debian patchset has a great tool (checkarray) to run a regular check of
35 + arrays , and I think we could benefit from it, since it saved my data at least
36 + once already.
37
38 *mdadm-3.3-r1 (28 Sep 2013)
39
40
41
42
43 1.1 sys-fs/mdadm/mdadm-3.3-r2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/mdadm-3.3-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/mdadm-3.3-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mdadm-3.3-r2.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.3-r2.ebuild,v 1.1 2013/11/02 06:35:27 robbat2 Exp $
53
54 EAPI="4"
55 inherit multilib flag-o-matic systemd toolchain-funcs
56
57 DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools"
58 HOMEPAGE="http://neil.brown.name/blog/mdadm"
59 DEB_PR=2
60 SRC_URI="mirror://kernel/linux/utils/raid/mdadm/${P}.tar.xz
61 mirror://debian/pool/main/m/mdadm/${PN}_${PV}-${DEB_PR}.debian.tar.gz"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
66 IUSE="static"
67
68 DEPEND="virtual/pkgconfig
69 app-arch/xz-utils"
70 RDEPEND=">=sys-apps/util-linux-2.16"
71
72 # The tests edit values in /proc and run tests on software raid devices.
73 # Thus, they shouldn't be run on systems with active software RAID devices.
74 RESTRICT="test"
75
76 mdadm_emake() {
77 emake \
78 PKG_CONFIG="$(tc-getPKG_CONFIG)" \
79 CC="$(tc-getCC)" \
80 CWFLAGS="-Wall" \
81 CXFLAGS="${CFLAGS}" \
82 MAP_DIR=/run/mdadm \
83 "$@"
84 }
85
86 src_compile() {
87 use static && append-ldflags -static
88 mdadm_emake all mdassemble
89 }
90
91 src_test() {
92 mdadm_emake test
93
94 sh ./test || die
95 }
96
97 src_install() {
98 emake \
99 DESTDIR="${D}" \
100 SYSTEMD_DIR=$(systemd_get_unitdir) \
101 install install-systemd
102 into /
103 dosbin mdassemble
104 dodoc ChangeLog INSTALL TODO README* ANNOUNCE-${PV}
105
106 insinto /etc
107 newins mdadm.conf-example mdadm.conf
108 newinitd "${FILESDIR}"/mdadm.rc mdadm
109 newconfd "${FILESDIR}"/mdadm.confd mdadm
110 newinitd "${FILESDIR}"/mdraid.rc mdraid
111 newconfd "${FILESDIR}"/mdraid.confd mdraid
112 systemd_dounit "${FILESDIR}"/mdadm.service
113 systemd_newtmpfilesd "${FILESDIR}"/mdadm.tmpfiles.conf mdadm.conf
114
115 # From the Debian patchset
116 into /usr
117 dodoc "${WORKDIR}/debian/README.checkarray"
118 dosbin "${WORKDIR}/debian/checkarray"
119 sed -i -e 's~/usr/share/mdadm/checkarray~/usr/sbin/checkarray~g' \
120 "${WORKDIR}"/debian/mdadm.cron.d
121 insinto /etc/cron.d/
122 newins "${WORKDIR}"/debian/mdadm.cron.d mdadm
123 }
124
125 pkg_postinst() {
126 if ! systemd_is_booted; then
127 if [[ -z ${REPLACING_VERSIONS} ]] ; then
128 # Only inform people the first time they install.
129 elog "If you're not relying on kernel auto-detect of your RAID"
130 elog "devices, you need to add 'mdraid' to your 'boot' runlevel:"
131 elog " rc-update add mdraid boot"
132 fi
133 fi
134 }