diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-06-08 15:54:49 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-06-08 15:54:49 +0000 |
commit | 5455189b0c31316e9a847466575e58325a6c720e (patch) | |
tree | 33f2a592e6bb2720c517b2ece8fcd1a12679d07e /net-fs/idmapd | |
parent | initial import, closes #51718 (Manifest recommit) (diff) | |
download | gentoo-2-5455189b0c31316e9a847466575e58325a6c720e.tar.gz gentoo-2-5455189b0c31316e9a847466575e58325a6c720e.tar.bz2 gentoo-2-5455189b0c31316e9a847466575e58325a6c720e.zip |
add some init.d scripts
Diffstat (limited to 'net-fs/idmapd')
-rw-r--r-- | net-fs/idmapd/files/idmapd.confd | 7 | ||||
-rw-r--r-- | net-fs/idmapd/files/idmapd.rc | 33 | ||||
-rw-r--r-- | net-fs/idmapd/idmapd-1.5.ebuild | 9 |
3 files changed, 48 insertions, 1 deletions
diff --git a/net-fs/idmapd/files/idmapd.confd b/net-fs/idmapd/files/idmapd.confd new file mode 100644 index 000000000000..50e0d1861269 --- /dev/null +++ b/net-fs/idmapd/files/idmapd.confd @@ -0,0 +1,7 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/idmapd/files/idmapd.confd,v 1.1 2004/06/08 15:54:49 vapier Exp $ + +# Options to pass to idmapd +#IDMAPD_OPTS="-d domain" diff --git a/net-fs/idmapd/files/idmapd.rc b/net-fs/idmapd/files/idmapd.rc new file mode 100644 index 000000000000..e78c46fef79c --- /dev/null +++ b/net-fs/idmapd/files/idmapd.rc @@ -0,0 +1,33 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/idmapd/files/idmapd.rc,v 1.1 2004/06/08 15:54:49 vapier Exp $ + +depend() { + need net +} + +start() { + if grep -q rpc_pipefs /proc/filesystems &>/dev/null; then + if ! grep -q "rpc_pipefs /var/lib/rpc_pipes" /proc/mounts &>/dev/null; then + ebegin "Mounting rpc_pipefs filesystem in /var/lib/rpc_pipes" + mkdir -p /var/lib/rpc_pipes + mount -t rpc_pipefs rpc_pipefs /var/lib/rpc_pipes + eend $? "Error mounting rpc_pipefs filesystem in /var/lib/rpc_pipes" + fi + fi + + ebegin "Starting idmapd" + /sbin/idmapd -p /var/lib/rpc_pipes ${IDMAPD_OPTS} + eend $? +} + +stop() { + ebegin "Stopping idmapd" + start-stop-daemon --stop --quiet --exec /sbin/idmapd + eend $? + + ebegin "Unmounting rpc_pipefs" + umount /var/lib/rpc_pipes + eend $? "Error unmounting rpc_pipefs" +} diff --git a/net-fs/idmapd/idmapd-1.5.ebuild b/net-fs/idmapd/idmapd-1.5.ebuild index f9bdac0a0606..97ee29fac3c6 100644 --- a/net-fs/idmapd/idmapd-1.5.ebuild +++ b/net-fs/idmapd/idmapd-1.5.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/idmapd/idmapd-1.5.ebuild,v 1.1 2004/06/08 15:09:19 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/idmapd/idmapd-1.5.ebuild,v 1.2 2004/06/08 15:54:49 vapier Exp $ inherit eutils @@ -24,6 +24,13 @@ src_unpack() { epatch ${FILESDIR}/${PV}-no-string.patch } +src_compile() { + econf --bindir=/sbin || die + emake || die +} + src_install() { make install DESTDIR=${D} || die + exeinto /etc/init.d ; newexe ${FILESDIR}/idmapd.rc idmapd || die + insinto /etc/conf.d ; newins ${FILESDIR}/idmapd.confd idmapd || die } |