diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-12-05 20:20:54 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-12-05 20:20:54 +0000 |
commit | 64a7b0430da986c9ed47597e15d6d1c43fc61de6 (patch) | |
tree | c8e69886321571559c61c135548b4d0d29a5261d /sys-apps/mdadm | |
parent | - q/a fix - hppa is the only arch with an upwords growing stack and thus can ... (diff) | |
download | historical-64a7b0430da986c9ed47597e15d6d1c43fc61de6.tar.gz historical-64a7b0430da986c9ed47597e15d6d1c43fc61de6.tar.bz2 historical-64a7b0430da986c9ed47597e15d6d1c43fc61de6.zip |
Version bump #71675 by Neil Bothwick. Make sure nroff isnt run #73389 by Gustaf Björklund. Add init.d script #57321 by Remy Blank.
Diffstat (limited to 'sys-apps/mdadm')
-rw-r--r-- | sys-apps/mdadm/ChangeLog | 9 | ||||
-rw-r--r-- | sys-apps/mdadm/Manifest | 5 | ||||
-rw-r--r-- | sys-apps/mdadm/files/digest-mdadm-1.8.1 | 1 | ||||
-rwxr-xr-x | sys-apps/mdadm/files/mdadm.rc | 39 | ||||
-rw-r--r-- | sys-apps/mdadm/mdadm-1.8.1.ebuild | 44 |
5 files changed, 96 insertions, 2 deletions
diff --git a/sys-apps/mdadm/ChangeLog b/sys-apps/mdadm/ChangeLog index 8710424d9386..2fbb3cfc7d02 100644 --- a/sys-apps/mdadm/ChangeLog +++ b/sys-apps/mdadm/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-apps/mdadm # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/mdadm/ChangeLog,v 1.21 2004/11/25 14:21:03 gmsoft Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/mdadm/ChangeLog,v 1.22 2004/12/05 20:20:54 vapier Exp $ + +*mdadm-1.8.1 (05 Dec 2004) + + 05 Dec 2004; Mike Frysinger <vapier@gentoo.org> +files/mdadm.rc, + +mdadm-1.8.1.ebuild: + Version bump #71675 by Neil Bothwick. Make sure nroff isnt run #73389 by + Gustaf Björklund. Add init.d script #57321 by Remy Blank. 25 Nov 2004; Guy Martin <gmsoft@gentoo.org> mdadm-1.7.0.ebuild: Stable on hppa. diff --git a/sys-apps/mdadm/Manifest b/sys-apps/mdadm/Manifest index 53fb15be447c..54d9ffcaba03 100644 --- a/sys-apps/mdadm/Manifest +++ b/sys-apps/mdadm/Manifest @@ -1,6 +1,9 @@ -MD5 88beebdae55f8323f2f293d1521cbcf9 ChangeLog 2373 +MD5 0386073de0bca2e9f79b415b83f3ca86 ChangeLog 2627 MD5 640c9936745304a5aa44eac812d62d90 mdadm-1.6.0.ebuild 992 MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 +MD5 19d715674fc0e3e898090408d8c5b651 mdadm-1.8.1.ebuild 1165 MD5 99476c8acfef11b58a3f56f5dad794a4 mdadm-1.7.0.ebuild 1035 MD5 ad1f1decdfd29bdc6c9777e24e0ac5df files/digest-mdadm-1.6.0 60 +MD5 df2eabfa56cd54e065491b351a4ef652 files/mdadm.rc 851 MD5 071af2d112127f0b1b603e6289e5cb29 files/digest-mdadm-1.7.0 59 +MD5 f85c85e2bbedc5a2ad91ec6830f342e7 files/digest-mdadm-1.8.1 60 diff --git a/sys-apps/mdadm/files/digest-mdadm-1.8.1 b/sys-apps/mdadm/files/digest-mdadm-1.8.1 new file mode 100644 index 000000000000..9c6f2aa7dfac --- /dev/null +++ b/sys-apps/mdadm/files/digest-mdadm-1.8.1 @@ -0,0 +1 @@ +MD5 d6298c34590334cad3b951bc590e4007 mdadm-1.8.1.tgz 101291 diff --git a/sys-apps/mdadm/files/mdadm.rc b/sys-apps/mdadm/files/mdadm.rc new file mode 100755 index 000000000000..cfd409b55f0a --- /dev/null +++ b/sys-apps/mdadm/files/mdadm.rc @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/mdadm/files/mdadm.rc,v 1.1 2004/12/05 20:20:54 vapier Exp $ + +depend() { + use logger dns net +} + +checkconfig() { + if [ ! -f /etc/mdadm.conf ] ; then + eerror "File /etc/mdadm.conf does not exist" + return 1 + fi + if ! grep -qs '^\(MAILADDR\|PROGRAM\) .' /etc/mdadm.conf ; then + eerror "No monitoring action defined in /etc/mdadm.conf" + return 1 + fi +} + +start() { + checkconfig || return 1 + + local ret + ebegin "Starting mdadm monitor" + /sbin/mdadm --monitor --scan & + ret=$? + echo $! > /var/run/mdadm.pid + eend ${ret} +} + +stop() { + local ret + ebegin "Stopping mdadm monitor" + start-stop-daemon --stop --pidfile /var/run/mdadm.pid + ret=$? + rm -f /var/run/mdadm.pid + eend ${ret} +} diff --git a/sys-apps/mdadm/mdadm-1.8.1.ebuild b/sys-apps/mdadm/mdadm-1.8.1.ebuild new file mode 100644 index 000000000000..65b2a47e525f --- /dev/null +++ b/sys-apps/mdadm/mdadm-1.8.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/mdadm/mdadm-1.8.1.ebuild,v 1.1 2004/12/05 20:20:54 vapier Exp $ + +DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools" +HOMEPAGE="http://cgi.cse.unsw.edu.au/~neilb/mdadm" +SRC_URI="mirror://kernel/utils/raid/mdadm/${P}.tgz + http://neilb.web.cse.unsw.edu.au/source/mdadm/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~x86" +IUSE="static" + +RDEPEND="virtual/libc" +DEPEND="${RDEPEND} + >=sys-apps/sed-4 + >=sys-apps/portage-2.0.51" + +src_unpack() { + unpack ${A} + cd ${S} + + sed -i -e 's:nroff:echo:' Makefile || die "sed nroff" + if use static ; then + sed -i \ + -e "/^# LDFLAGS = -static/s:#::" \ + -e "/^# STRIP = -s/s:#::" \ + Makefile || die "sed Makefile failed" + fi +} + +src_compile() { + emake CXFLAGS="${CFLAGS}" || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + dodoc INSTALL TODO "ANNOUNCE-${PV}" + + insinto /etc + newins mdadm.conf-example mdadm.conf + newinitd ${FILESDIR}/mdadm.rc mdadm +} |