diff options
author | Naohiro Aota <naota@gentoo.org> | 2012-05-27 06:23:08 +0000 |
---|---|---|
committer | Naohiro Aota <naota@gentoo.org> | 2012-05-27 06:23:08 +0000 |
commit | b9df80ee558ac2a4e0da554f7e1737bc4db83a22 (patch) | |
tree | 49c3ae6486d864fd6ee95604a1afa3598bf6bc6a /sys-freebsd/freebsd-cddl | |
parent | Version bump, inherit cleanup (diff) | |
download | gentoo-2-b9df80ee558ac2a4e0da554f7e1737bc4db83a22.tar.gz gentoo-2-b9df80ee558ac2a4e0da554f7e1737bc4db83a22.tar.bz2 gentoo-2-b9df80ee558ac2a4e0da554f7e1737bc4db83a22.zip |
Add zfs initd script. #415129
(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)
Diffstat (limited to 'sys-freebsd/freebsd-cddl')
-rw-r--r-- | sys-freebsd/freebsd-cddl/ChangeLog | 6 | ||||
-rw-r--r-- | sys-freebsd/freebsd-cddl/files/zfs.initd | 24 | ||||
-rw-r--r-- | sys-freebsd/freebsd-cddl/freebsd-cddl-9.0.ebuild | 7 |
3 files changed, 35 insertions, 2 deletions
diff --git a/sys-freebsd/freebsd-cddl/ChangeLog b/sys-freebsd/freebsd-cddl/ChangeLog index 7fb1c24cd0e6..6fa90d205b7c 100644 --- a/sys-freebsd/freebsd-cddl/ChangeLog +++ b/sys-freebsd/freebsd-cddl/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-freebsd/freebsd-cddl # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-cddl/ChangeLog,v 1.23 2012/05/16 16:18:19 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-cddl/ChangeLog,v 1.24 2012/05/27 06:23:08 naota Exp $ + + 27 May 2012; Naohiro Aota <naota@gentoo.org> +files/zfs.initd, + freebsd-cddl-9.0.ebuild: + Add zfs initd script. #415129 16 May 2012; Alexis Ballier <aballier@gentoo.org> freebsd-cddl-9.0.ebuild: put libavl in / too as it is required by libzpool. diff --git a/sys-freebsd/freebsd-cddl/files/zfs.initd b/sys-freebsd/freebsd-cddl/files/zfs.initd new file mode 100644 index 000000000000..a2b0f97efa95 --- /dev/null +++ b/sys-freebsd/freebsd-cddl/files/zfs.initd @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-cddl/files/zfs.initd,v 1.1 2012/05/27 06:23:07 naota Exp $ + +depend() { + need hostid + before fsck +} + +start() { + einfo "Starting zfs ..." + zfs mount -a + zfs share -a + if [ ! -r /etc/zfs/exports ]; then + touch /etc/zfs/exports + fi +} + +stop() { + einfo "Stopping zfs ..." + zfs unshare -a + zfs unmount -a +} diff --git a/sys-freebsd/freebsd-cddl/freebsd-cddl-9.0.ebuild b/sys-freebsd/freebsd-cddl/freebsd-cddl-9.0.ebuild index 2eeb201148be..dd4050821b3e 100644 --- a/sys-freebsd/freebsd-cddl/freebsd-cddl-9.0.ebuild +++ b/sys-freebsd/freebsd-cddl/freebsd-cddl-9.0.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-freebsd/freebsd-cddl/freebsd-cddl-9.0.ebuild,v 1.7 2012/05/16 16:18:19 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-cddl/freebsd-cddl-9.0.ebuild,v 1.8 2012/05/27 06:23:08 naota Exp $ EAPI=4 @@ -54,4 +54,9 @@ src_install() { # Install zfs volinit script. newinitd "${FILESDIR}"/zvol.initd-9.0 zvol + + # Install zfs script + newinitd "${FILESDIR}"/zfs.initd zfs + + keepdir /etc/zfs } |