diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-11-11 07:53:37 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-11-11 07:53:37 +0000 |
commit | 593b75298dad1a14fd3ba09d5ca7378eb96f3bfb (patch) | |
tree | 72fbba53f8f94fd246dc781c5b4283c6c607bc13 /sys-fs/mdadm | |
parent | drop mdadm mask (diff) | |
download | gentoo-2-593b75298dad1a14fd3ba09d5ca7378eb96f3bfb.tar.gz gentoo-2-593b75298dad1a14fd3ba09d5ca7378eb96f3bfb.tar.bz2 gentoo-2-593b75298dad1a14fd3ba09d5ca7378eb96f3bfb.zip |
Drop unused init.d munging and only show elog messages at first install.
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
Diffstat (limited to 'sys-fs/mdadm')
-rw-r--r-- | sys-fs/mdadm/ChangeLog | 5 | ||||
-rw-r--r-- | sys-fs/mdadm/mdadm-3.2.6.ebuild | 18 |
2 files changed, 12 insertions, 11 deletions
diff --git a/sys-fs/mdadm/ChangeLog b/sys-fs/mdadm/ChangeLog index 6dda2974057c..40bb255e78a6 100644 --- a/sys-fs/mdadm/ChangeLog +++ b/sys-fs/mdadm/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sys-fs/mdadm # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.158 2012/10/26 08:17:33 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.159 2012/11/11 07:53:37 vapier Exp $ + + 11 Nov 2012; Mike Frysinger <vapier@gentoo.org> mdadm-3.2.6.ebuild: + Drop unused init.d munging and only show elog messages at first install. *mdadm-3.2.6 (26 Oct 2012) diff --git a/sys-fs/mdadm/mdadm-3.2.6.ebuild b/sys-fs/mdadm/mdadm-3.2.6.ebuild index 5aa220a979ac..591459ce5ea0 100644 --- a/sys-fs/mdadm/mdadm-3.2.6.ebuild +++ b/sys-fs/mdadm/mdadm-3.2.6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 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.ebuild,v 1.1 2012/10/26 08:17:33 radhermit Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.2.6.ebuild,v 1.2 2012/11/11 07:53:37 vapier Exp $ EAPI="4" inherit multilib eutils flag-o-matic toolchain-funcs @@ -60,15 +60,13 @@ src_install() { newconfd "${FILESDIR}"/mdadm.confd mdadm newinitd "${FILESDIR}"/mdraid.rc mdraid newconfd "${FILESDIR}"/mdraid.confd mdraid - - # do not rely on /lib -> /libXX link - sed -i \ - -e "s:/lib/rcscripts/:/$(get_libdir)/rcscripts/:" \ - "${D}"/etc/init.d/* } -pkg_postinst() { - elog "If you're not relying on kernel auto-detect of your RAID devices," - elog "you need to add 'mdraid' to your 'boot' runlevel:" - elog "rc-update add mdraid boot" +pkg_preinst() { + if ! has_version ${CATEGORY}/${PN} ; then + # Only inform people the first time they install. + elog "If you're not relying on kernel auto-detect of your RAID" + elog "devices, you need to add 'mdraid' to your 'boot' runlevel:" + elog " rc-update add mdraid boot" + fi } |