diff options
author | Daniel Black <dragonheart@gentoo.org> | 2004-03-23 20:18:49 +0000 |
---|---|---|
committer | Daniel Black <dragonheart@gentoo.org> | 2004-03-23 20:18:49 +0000 |
commit | 61e6b4babafcbe97352bf98ecaa0e6256e154c8c (patch) | |
tree | e09a7b3824249921f0bc5913944cee21f344c38c /net-fs/coda/files | |
parent | bumping to stable (diff) | |
download | historical-61e6b4babafcbe97352bf98ecaa0e6256e154c8c.tar.gz historical-61e6b4babafcbe97352bf98ecaa0e6256e154c8c.tar.bz2 historical-61e6b4babafcbe97352bf98ecaa0e6256e154c8c.zip |
inital import based off bug #26132. Still work in progress. I want toautomate the install a lot more but its hard! Thanks to Michael C. Ferguson mcf@augustmail.com who put together the intial ebuilds for this.
Diffstat (limited to 'net-fs/coda/files')
-rw-r--r-- | net-fs/coda/files/auth2 | 47 | ||||
-rw-r--r-- | net-fs/coda/files/coda-6.0.3-iowr.patch | 12 | ||||
-rw-r--r-- | net-fs/coda/files/coda-update | 52 | ||||
-rw-r--r-- | net-fs/coda/files/codasrv | 39 | ||||
-rw-r--r-- | net-fs/coda/files/digest-coda-6.0.3 | 1 | ||||
-rw-r--r-- | net-fs/coda/files/venus | 30 |
6 files changed, 181 insertions, 0 deletions
diff --git a/net-fs/coda/files/auth2 b/net-fs/coda/files/auth2 new file mode 100644 index 000000000000..2b83529d4369 --- /dev/null +++ b/net-fs/coda/files/auth2 @@ -0,0 +1,47 @@ +#!/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/coda/files/auth2,v 1.1 2004/03/23 20:18:49 dragonheart Exp $ + +depend() { + need net +} + +checkconfig() { + if [ ! -e /var/lib/vice/hostname ] ; then + eerror "Please set up vice before starting the service..." + return 1 + fi +} + +we_are_scm() { + if [ "`cat /var/lib/vice/hostname`" = "`cat /var/lib/vice/db/scm`" ] ; then + return 0 + else + return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting auth2" + + # Check to see if we are the SCM. If not, we must add -chk to auth2 + + if (! we_are_scm) ; then + start-stop-daemon --start --quiet --exec /usr/sbin/auth2 \ + --background -- -chk + else + start-stop-daemon --start --quiet --exec /usr/sbin/auth2 \ + --background + fi + + eend $? +} + +stop() { + ebegin "Stopping auth2" + start-stop-daemon --stop --quiet --exec /usr/sbin/auth2 + eend $? +} diff --git a/net-fs/coda/files/coda-6.0.3-iowr.patch b/net-fs/coda/files/coda-6.0.3-iowr.patch new file mode 100644 index 000000000000..f7f374c17051 --- /dev/null +++ b/net-fs/coda/files/coda-6.0.3-iowr.patch @@ -0,0 +1,12 @@ +diff -ru coda-6.0.3.orig/lib-src/kernel-includes/coda.h coda-6.0.3/lib-src/kernel-includes/coda.h +--- coda-6.0.3.orig/lib-src/kernel-includes/coda.h 2003-05-24 03:57:52.000000000 +0930 ++++ coda-6.0.3/lib-src/kernel-includes/coda.h 2004-02-13 20:57:57.012548016 +0930 +@@ -311,7 +311,7 @@ + #define VC_MAXMSGSIZE sizeof(union inputArgs)+sizeof(union outputArgs) +\ + VC_MAXDATASIZE + +-#define CIOC_KERNEL_VERSION _IOWR('c', 10, sizeof (int)) ++#define CIOC_KERNEL_VERSION _IOWR('c', 10, int) + + #if 0 + #define CODA_KERNEL_VERSION 0 /* don't care about kernel version number */ diff --git a/net-fs/coda/files/coda-update b/net-fs/coda/files/coda-update new file mode 100644 index 000000000000..e82f4349ca18 --- /dev/null +++ b/net-fs/coda/files/coda-update @@ -0,0 +1,52 @@ +#!/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/coda/files/coda-update,v 1.1 2004/03/23 20:18:49 dragonheart Exp $ + +depend() { + need net auth2 +} + +we_are_scm() { + if [ "`cat /var/lib/vice/hostname`" = "`cat /var/lib/vice/db/scm`" ] ; then + return 0 + else + return 1 + fi +} + +checkconfig() { + if [ ! -e /var/lib/vice/hostname ] ; then + eerror "Please set up coda before starting the service..." + return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting coda update servers" + + # Check to see if we are the SCM. + if we_are_scm ; then + start-stop-daemon --start --quiet --exec /usr/sbin/rpc2portmap + start-stop-daemon --start --quiet --exec /usr/sbin/updatesrv + fi + + start-stop-daemon --start --quiet --exec /usr/sbin/updateclnt + + eend $? +} + +stop() { + ebegin "Stopping coda-update" + + if we_are_scm ; then + start-stop-daemon --stop --quiet --exec /usr/sbin/rpc2portmap + start-stop-daemon --stop --quiet --exec /usr/sbin/updatesrv + fi + + start-stop-daemon --stop --quiet --exec /usr/sbin/updateclnt + + eend $? +} diff --git a/net-fs/coda/files/codasrv b/net-fs/coda/files/codasrv new file mode 100644 index 000000000000..6c4dcf4cb64a --- /dev/null +++ b/net-fs/coda/files/codasrv @@ -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/net-fs/coda/files/codasrv,v 1.1 2004/03/23 20:18:49 dragonheart Exp $ + +depend() { + need net coda-update auth2 +} + +checkconfig() { + if [ ! -e /var/lib/vice/hostname ] ; then + eerror "Please set up vice before starting the service..." + return 1 + fi +} + +we_are_scm() { + if [ "`cat /var/lib/vice/hostname`" = "`cat /var/lib/vice/db/scm`" ] ; then + return 0 + else + return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting codasrv" + start-stop-daemon --start --exec /usr/sbin/codasrv + eend $? +} + +stop() { + ebegin "Stopping codasrv" + start-stop-daemon --stop --quiet --exec /usr/sbin/codasrv + /usr/sbin/volutil shutdown + sleep 30 + eend $? +} diff --git a/net-fs/coda/files/digest-coda-6.0.3 b/net-fs/coda/files/digest-coda-6.0.3 new file mode 100644 index 000000000000..708ec8699bf4 --- /dev/null +++ b/net-fs/coda/files/digest-coda-6.0.3 @@ -0,0 +1 @@ +MD5 86af6c30582724a9899e39791a20435f coda-6.0.3.tar.gz 1488634 diff --git a/net-fs/coda/files/venus b/net-fs/coda/files/venus new file mode 100644 index 000000000000..220f902824a9 --- /dev/null +++ b/net-fs/coda/files/venus @@ -0,0 +1,30 @@ +#!/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/coda/files/venus,v 1.1 2004/03/23 20:18:49 dragonheart Exp $ + +depend() { + need net codasrv +} + +checkconfig() { + if [ ! -e /var/lib/vice/hostname ] ; then + eerror "Please set up vice before starting the service..." + return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting venus" + start-stop-daemon --start --quiet --exec /usr/sbin/venus --background + eend $? +} + +stop() { + ebegin "Stopping venus" + start-stop-daemon --stop --quiet --exec /usr/sbin/venus + umount -l /mnt/coda &>/dev/null + eend $? +} |