summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-07-06 06:35:10 +0000
committerPacho Ramos <pacho@gentoo.org>2013-07-06 06:35:10 +0000
commit58ea20fe7e4f2691aff2407faaa7f5b9680ca9f0 (patch)
treee5b7c352a963269fbb7129e40ef6bbc2b6081dab /sys-fs/mdadm
parentInstall unit file (#475870, thanks to Doug and base-system herd for allowing ... (diff)
downloadhistorical-58ea20fe7e4f2691aff2407faaa7f5b9680ca9f0.tar.gz
historical-58ea20fe7e4f2691aff2407faaa7f5b9680ca9f0.tar.bz2
historical-58ea20fe7e4f2691aff2407faaa7f5b9680ca9f0.zip
Install unit file (#407277, thanks to Doug and base-system herd for allowing it).
Package-Manager: portage-2.1.12.11/cvs/Linux x86_64 Manifest-Sign-Key: 0xA188FBD4
Diffstat (limited to 'sys-fs/mdadm')
-rw-r--r--sys-fs/mdadm/ChangeLog7
-rw-r--r--sys-fs/mdadm/Manifest18
-rw-r--r--sys-fs/mdadm/files/mdadm.service13
-rw-r--r--sys-fs/mdadm/files/mdadm.tmpfiles.conf1
-rw-r--r--sys-fs/mdadm/mdadm-3.2.6-r1.ebuild6
5 files changed, 32 insertions, 13 deletions
diff --git a/sys-fs/mdadm/ChangeLog b/sys-fs/mdadm/ChangeLog
index 5cb9c29cb326..e4c1f237f7fc 100644
--- a/sys-fs/mdadm/ChangeLog
+++ b/sys-fs/mdadm/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-fs/mdadm
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.161 2013/02/08 13:45:41 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.162 2013/07/06 06:35:06 pacho Exp $
+
+ 06 Jul 2013; Pacho Ramos <pacho@gentoo.org> +files/mdadm.service,
+ +files/mdadm.tmpfiles.conf, mdadm-3.2.6-r1.ebuild:
+ Install unit file (#407277, thanks to Doug and base-system herd for allowing
+ it).
*mdadm-3.2.6-r1 (08 Feb 2013)
diff --git a/sys-fs/mdadm/Manifest b/sys-fs/mdadm/Manifest
index ec60a0c2b172..8ffa82390ee1 100644
--- a/sys-fs/mdadm/Manifest
+++ b/sys-fs/mdadm/Manifest
@@ -11,6 +11,8 @@ AUX mdadm-3.2.3-segv-assemble.patch 506 SHA256 4f1c91bb2a9a2b7354c119ac3dfc83ace
AUX mdadm-3.2.x-udevdir.patch 876 SHA256 937132cf80fed615e9714940819874b9f8ec0125df08e55db876601a1ac84365 SHA512 67635a7c66f319ef7dfd2397925ac599015316f2715785abc25eae6c46e4bb0e69d0e402bff48264c2e3347af679940b81964147c61b9d6407266634bd29791f WHIRLPOOL 75b0b6d11d3b85598fa96881e0f309a09e2e7d465f9bf46b02bde3230308c8532d1612af242c3107895713c8caa4b25864c39d66c4599ed4b939d8c37840c9af
AUX mdadm.confd 205 SHA256 ec55674955af7a31da51b8b72b599e8519809287dad796a9b16155bcba471b79 SHA512 7bf66898000b3d02bbf0704a8032b0f4fc045380501dc8d2bbbb31d33b122d9c35879b25714663079eeadd207c9da87c9d9af8464e76146bf5b68594e73fd92c WHIRLPOOL b6a86bae6d298bcff17a497739109fa07f2bfb2682454a089dfef7ad51d2d770eec2661a5dd77140fe6ec33e94bc87d2378790eb06d11eace8dbe4ff0b83b677
AUX mdadm.rc 574 SHA256 3073b14619cb7b2c99c33f2d6cfd1e59ce5557899bffebaa65fa52f3caffadc7 SHA512 d01f5de3ca957189d3619fda4c982c776533b20fac232832bfb7f34de5724348be572c24ad35508e5dc48b2df4710a258a4d1af39471ff7ce2c56ada13dfa7ab WHIRLPOOL 1362c4cbef50bd904092c5cb575ac3336e7e75ead2819795221406e0f2665843e5500fa7ecaf9e48e0231773ed18ea7950ffb5188f2f4e2138944931418e6b69
+AUX mdadm.service 307 SHA256 fdb0c813eb72c85445269eab1182cd68c8d1ca0abfefb2ac966344812d2f29dc SHA512 afa3fad6c260f864857c25d498cfd59778744a7bb0ea2b66c22395874089ee1ec875ab8c02307277aef224f547949d37fc3247a6a1d31fe8b80dbc0ce4edeeb5 WHIRLPOOL 410a781d9ca9d578ac88dd6277286f4ef7ec294e35d1ebf825e95148f56da8b6f9ed6f8170eeaf307753dce3be48217f174145151cb95c62d4a2ded0a56012bd
+AUX mdadm.tmpfiles.conf 30 SHA256 6382e48282297663adbe1b1db55c1554d27badd8ab0ee5a4d2e1bbf880f62af3 SHA512 65bf1a8ce3520f74e5ca2e8167b8da5cb3c9db2135385d3a76b0fc137af6f2fa4f9237effdd3d58f6e002cf016b38b364f780911c7abcb103127627c8de9409e WHIRLPOOL be5b287655d6587dc3088118e277950e4530e2df0ea1336924ea832ba1612773ff3f0bda60f9d5de1aee567e3e220d7a20fa5ca922efdfac6b9739ed345ad56e
AUX mdraid.confd 225 SHA256 1b7918c4bdd024607bcb49d7cea0a77cb70502d2fbb4dbe07024bb5b5699c8e0 SHA512 645c36a445f80233e8bba141911bc2355fc932a22867df554d54f4f23cb8967a10f623de0935b18c1606dd6782e9b2f01a51960423d795c154f08607ca79e3be WHIRLPOOL ead77078688bc5db9f7c08bf97bff2634eb5f73b9197275e69d28b7f59ddd6b458cbaa2f0d243f5a07d5a1cda737b18534bab911a82a998e3be8ab23421333ab
AUX mdraid.rc 838 SHA256 73303ec32b7010c7f6d4fd66dde1a5baea07e73c79d3e516dce31000abdb4089 SHA512 a80f745290ca4240d8485a686f19460c9504da5b6ed0da7b2c295b096bdbd9cb70b01c8cbfad4614ad89709b0e7d80074a69ff5248b45887273ca4d11d0dab92 WHIRLPOOL 65eff88b858082e46beca07ca2ccddbd1a116a8aac65d41c26717a3f075cca04ca278da00f0cd9a96297f95778e31a2b962923740300f1d73878b0f6eda1a7da
AUX mdraid.rc-3.1.1 815 SHA256 95f759ba9d4f719bb5122546fdcce18dd9b0060df1296cf8ae17a04137e163e2 SHA512 4bf2235bdffde101d10c408de486e9629caf1eed3f574bf3ed206d7013e8a715016066069272d24894a4c428009003de4ee3d8291323e2aaae3157fbce4318ed WHIRLPOOL 65fed6723b508405ea67d4d5973a617b21c8b90ea480c69bc7da843718c16c98ed89a32013d102860c62fe0de8b8e8002180649e0176e303a887698baa7f053e
@@ -25,18 +27,14 @@ EBUILD mdadm-3.1.4.ebuild 2277 SHA256 63890f88df3b70f7ccc7584f99a6c66ae7435eb4e4
EBUILD mdadm-3.1.5.ebuild 2235 SHA256 038781a904accd76b9484df7317765c374d5c910beb0c0f7ec57deaafd0737a8 SHA512 ea4a730844ef093defd9a91acedbd00865a1d35eec9f378484c5290959685727d1ef38c4d7056584fe647fc034ae81b21ba504f2e25f7f77a1a310bf7e9ba889 WHIRLPOOL 39f25b4c53fbe3caa8a577b5089f3c8d79c32c49930c5166ee674250d3969b5a7ca7af013d0793da06be59170179779b9175af5d3b8def7d26dcd32d8829564b
EBUILD mdadm-3.2.3-r2.ebuild 2018 SHA256 6607052b8b7d8260ba6362cf893065e39850b04bce4319ecb6da81b1d1c399d9 SHA512 10fa169071206d997e8b45838c9e16acd5670ab1404d75a9f4881b8d5730b7fa3c24966ee343cbc008c05a388b28f38c0c9efab29ce3320836450fe176404044 WHIRLPOOL 13de1db4fb8727fd1a6d20239098705aca111fb35e97adc8a7c20b743c030b55ddd9b9190df7206f7f1787a161636bcbf9b4c6cd0b4060de27f33b38b9b4f2b5
EBUILD mdadm-3.2.5-r1.ebuild 1989 SHA256 6cc4f775d1bc3bb6204f80db64c14104da5f13aa3a0a5245577a845063f37211 SHA512 d1f784fbefafe5393a97313dfc372201ace3d7f2caa10f52eb81a6bf9d004e17b5cf2efdd83fc2e165ecb1051a60db6494d8d79bb59446fbb2cb5943668678a9 WHIRLPOOL 3df9ab6b72c2b582bbd16576e25c9533587bdc421a57e4086a41a53388a6a7e2a3abe404fe103df60700803b1c94a2752ae05660bcc257d448b33aa8509989e7
-EBUILD mdadm-3.2.6-r1.ebuild 1955 SHA256 b54b8c459d7183170188ac03a14df56fddea0ab8d2af5a220abfde9cf842fbc1 SHA512 02d17f7ff3b7b0b662f2a19089d888c17ba1042db70e4929c4735297d6a0e87fe10d124d4131413dca2253e05b30e69ba70451b39c208bb39ae62601e58d24ff WHIRLPOOL 88212e2ca04facb59d11ea2f90a748fff6fa0c5c899915e93c9633a9443dbbb5fc62298a9a67c57bcb2c9cf9ee7cf554b1de5bb68296bc1dc88445e84adb8a4d
+EBUILD mdadm-3.2.6-r1.ebuild 2070 SHA256 9f41bc46edc917a2cfb673380fd75e446a07b5cdda7e8ecad7fbb098d850a8a5 SHA512 1bbf7fcced2799488f480869daff4c66ab2063a785f4c4e73af8271ff82dedb66bcb40f105cd03f784436ce86464034df1e4a07dc0d89c2aea148a1a7dd40067 WHIRLPOOL 0520cc01b4af2b889963d3ef5bf215434b5ad583ff5cfe4e4815bd416ef772d4a2cbc8ecd90dbf75d4cef5598177e0f959c4ed6d5a038eba6362cb255077c899
EBUILD mdadm-3.2.6.ebuild 1960 SHA256 6acbe9258f052b821d6396b7565684a1a2bad0caf9c2c73e7d84d37c98071569 SHA512 aaa111b614a1cccd30143da2d9fef989960ac4897dc97d84d8af536681ab7be562ef59d0d3978a092a194fe700807e5f5ffd67bbf82e01338bd5b8b4384e2a17 WHIRLPOOL 11a5ff3ca2fb7e71ff0c48567079aa2a3a460aaea85d566ef8354be6ad1ca494c61ac90e545ce0bff04af432948e8d19bd859469c09157ad65098f8b1c560662
-MISC ChangeLog 24815 SHA256 e4c7b1a7995103e0aa6446238ae038930982234b4f39108c8cd01ba91cf968ac SHA512 1275ffa5bb66a98a83160e4eff0d23b49af1dc8c817e2710343b7e3b7a9b367a9d56db474226f225354597a28998de321635d570435ad795687dd32f2765deb1 WHIRLPOOL d33597524ae3dd26d632c64b687dd7f43279d95390d0c84d95505323507f630f7b66710e39aa8199fa91052103da6e933a4c5843ad9e20290e222b8e8b52e609
+MISC ChangeLog 25019 SHA256 c2f65f811c7d060fb470b3c552095ed243b3c519c46ccef9dad8e48a3688607e SHA512 de4b7fd7831bde612782418977e882a25c89e85ee71558641aca7047c1259698db22385e43adfe6ca58ffd3b0cec6f184f0bc1e84e0af13e12867894bce16dfe WHIRLPOOL 021621ebb2e298bd1157ab81b694c29a67739d24890a983b6ddaf208c4f927f879a5f59b57d5e363521770089dcd7303de3d0d1a6e02cd5b7220de327faf6b69
MISC metadata.xml 164 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 SHA512 8eb0d5153d388f6ea069c64b93882244816a0a09aecc0d73cb872121ce0eb24c5ccafa96aad0b620b2300f319e1af101fa7fa6c5d0d561719d49bb07da0a2eca WHIRLPOOL 11a1441bddb7a6c69653c663902b7da5767ae6ad515ac2aabfc42fe37927a1ccc21472deeee454009ff720201a41c3e4a912df42661a0a87150fb46126da2d52
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.19 (GNU/Linux)
+Version: GnuPG v2.0.20 (GNU/Linux)
-iQEcBAEBCAAGBQJRFQFSAAoJEEdUh39IaPFN95MH/2WgqDZoQMSqbSb+fKn3J+R7
-Dmm0utCIOCGkn2STbeYC6JSMfo8a3eYGzXFkbfLfhX3yB5JQ8n8wpPFqikIfgRNd
-OH8U5Rn709B2DcHS4OKjohkJ1RpAzCGLrQCXAPiESLBaDA8yMyHMJY0z9C7wERJ0
-70SQNwHXalMGuw53hEhiLfMkLMtuslc4jNTINYYpl8gslUxXGk8YFXzBHf2F85aj
-1GkKOAu8Xo22qweg1K3vIGjks641Gfq+pbvOkDGyURb5R2qL4CrJnKK1wEGDdiMk
-y9x+GyUh9byOK/WtunA3Oi8S1o4YCqmN6JxLwns4rq16IBMVtWmD7Fdf+IJuz/A=
-=SEsx
+iEYEAREIAAYFAlHXupsACgkQCaWpQKGI+9RcoQCeKesVEEVn9hozafMucvx9ewGT
+nPYAnjQtvSkTK4dbAuhabpE0Xe/FTSrU
+=+toi
-----END PGP SIGNATURE-----
diff --git a/sys-fs/mdadm/files/mdadm.service b/sys-fs/mdadm/files/mdadm.service
new file mode 100644
index 000000000000..342177d4f06a
--- /dev/null
+++ b/sys-fs/mdadm/files/mdadm.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Software RAID monitoring and management
+ConditionPathExists=/etc/mdadm.conf
+
+[Service]
+Type=forking
+PIDFile=/run/mdadm/mdadm.pid
+EnvironmentFile=/etc/conf.d/mdadm
+ExecStart=/sbin/mdadm --monitor --scan -f --pid-file=/run/mdadm/mdadm.pid $MDADM_OPTS
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/sys-fs/mdadm/files/mdadm.tmpfiles.conf b/sys-fs/mdadm/files/mdadm.tmpfiles.conf
new file mode 100644
index 000000000000..3207ddae0e43
--- /dev/null
+++ b/sys-fs/mdadm/files/mdadm.tmpfiles.conf
@@ -0,0 +1 @@
+d /run/mdadm 0710 root root -
diff --git a/sys-fs/mdadm/mdadm-3.2.6-r1.ebuild b/sys-fs/mdadm/mdadm-3.2.6-r1.ebuild
index 52376cc11ce5..c9b4d7b99ec6 100644
--- a/sys-fs/mdadm/mdadm-3.2.6-r1.ebuild
+++ b/sys-fs/mdadm/mdadm-3.2.6-r1.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.2.6-r1.ebuild,v 1.1 2013/02/08 13:45:41 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.2.6-r1.ebuild,v 1.2 2013/07/06 06:35:06 pacho Exp $
EAPI="4"
-inherit multilib eutils flag-o-matic toolchain-funcs
+inherit multilib eutils flag-o-matic systemd toolchain-funcs
DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools"
HOMEPAGE="http://neil.brown.name/blog/mdadm"
@@ -61,6 +61,8 @@ src_install() {
newconfd "${FILESDIR}"/mdadm.confd mdadm
newinitd "${FILESDIR}"/mdraid.rc mdraid
newconfd "${FILESDIR}"/mdraid.confd mdraid
+ systemd_dounit "${FILESDIR}/mdadm.service"
+ systemd_newtmpfilesd "${FILESDIR}/mdadm.tmpfiles.conf" mdadm.conf
}
pkg_preinst() {