1 |
pacho 13/09/28 08:43:48 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mdadm-3.3-r1.ebuild |
5 |
Log: |
6 |
Install additional upstream unit file (#485902 by Alexander Tsoy), show elog messages only when people are booting with openRC |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.172 sys-fs/mdadm/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/ChangeLog?rev=1.172&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/ChangeLog?rev=1.172&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/ChangeLog?r1=1.171&r2=1.172 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v |
20 |
retrieving revision 1.171 |
21 |
retrieving revision 1.172 |
22 |
diff -u -r1.171 -r1.172 |
23 |
--- ChangeLog 25 Sep 2013 17:30:09 -0000 1.171 |
24 |
+++ ChangeLog 28 Sep 2013 08:43:48 -0000 1.172 |
25 |
@@ -1,6 +1,12 @@ |
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.171 2013/09/25 17:30:09 ago Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.172 2013/09/28 08:43:48 pacho Exp $ |
30 |
+ |
31 |
+*mdadm-3.3-r1 (28 Sep 2013) |
32 |
+ |
33 |
+ 28 Sep 2013; Pacho Ramos <pacho@g.o> +mdadm-3.3-r1.ebuild: |
34 |
+ Install additional upstream unit file (#485902 by Alexander Tsoy), show elog |
35 |
+ messages only when people are booting with openRC |
36 |
|
37 |
25 Sep 2013; Agostino Sarubbo <ago@g.o> mdadm-3.2.6-r1.ebuild: |
38 |
Stable for ppc, wrt bug #480114 |
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-fs/mdadm/mdadm-3.3-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/mdadm-3.3-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/mdadm/mdadm-3.3-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mdadm-3.3-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2013 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.3-r1.ebuild,v 1.1 2013/09/28 08:43:48 pacho Exp $ |
52 |
|
53 |
EAPI="4" |
54 |
inherit multilib flag-o-matic systemd toolchain-funcs |
55 |
|
56 |
DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools" |
57 |
HOMEPAGE="http://neil.brown.name/blog/mdadm" |
58 |
SRC_URI="mirror://kernel/linux/utils/raid/mdadm/${P}.tar.xz" |
59 |
|
60 |
LICENSE="GPL-2" |
61 |
SLOT="0" |
62 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
63 |
IUSE="static" |
64 |
|
65 |
DEPEND="virtual/pkgconfig |
66 |
app-arch/xz-utils" |
67 |
RDEPEND=">=sys-apps/util-linux-2.16" |
68 |
|
69 |
# The tests edit values in /proc and run tests on software raid devices. |
70 |
# Thus, they shouldn't be run on systems with active software RAID devices. |
71 |
RESTRICT="test" |
72 |
|
73 |
mdadm_emake() { |
74 |
emake \ |
75 |
PKG_CONFIG="$(tc-getPKG_CONFIG)" \ |
76 |
CC="$(tc-getCC)" \ |
77 |
CWFLAGS="-Wall" \ |
78 |
CXFLAGS="${CFLAGS}" \ |
79 |
MAP_DIR=/run/mdadm \ |
80 |
"$@" |
81 |
} |
82 |
|
83 |
src_compile() { |
84 |
use static && append-ldflags -static |
85 |
mdadm_emake all mdassemble |
86 |
} |
87 |
|
88 |
src_test() { |
89 |
mdadm_emake test |
90 |
|
91 |
sh ./test || die |
92 |
} |
93 |
|
94 |
src_install() { |
95 |
emake \ |
96 |
DESTDIR="${D}" \ |
97 |
SYSTEMD_DIR=$(systemd_get_unitdir) \ |
98 |
install install-systemd |
99 |
into / |
100 |
dosbin mdassemble |
101 |
dodoc ChangeLog INSTALL TODO README* ANNOUNCE-${PV} |
102 |
|
103 |
insinto /etc |
104 |
newins mdadm.conf-example mdadm.conf |
105 |
newinitd "${FILESDIR}"/mdadm.rc mdadm |
106 |
newconfd "${FILESDIR}"/mdadm.confd mdadm |
107 |
newinitd "${FILESDIR}"/mdraid.rc mdraid |
108 |
newconfd "${FILESDIR}"/mdraid.confd mdraid |
109 |
systemd_dounit "${FILESDIR}"/mdadm.service |
110 |
systemd_newtmpfilesd "${FILESDIR}"/mdadm.tmpfiles.conf mdadm.conf |
111 |
} |
112 |
|
113 |
pkg_postinst() { |
114 |
if ! systemd_is_booted; then |
115 |
if [[ -z ${REPLACING_VERSIONS} ]] ; then |
116 |
# Only inform people the first time they install. |
117 |
elog "If you're not relying on kernel auto-detect of your RAID" |
118 |
elog "devices, you need to add 'mdraid' to your 'boot' runlevel:" |
119 |
elog " rc-update add mdraid boot" |
120 |
fi |
121 |
fi |
122 |
} |