diff options
author | Maurice van der Pot <griffon26@gentoo.org> | 2004-07-26 17:50:21 +0000 |
---|---|---|
committer | Maurice van der Pot <griffon26@gentoo.org> | 2004-07-26 17:50:21 +0000 |
commit | dc4ca14d21f5c6c8b1e288c4258ca75fdc65ed09 (patch) | |
tree | 21e2676195311675c9a248959e1b9a5acbbf9bc7 /net-fs | |
parent | Version bump to 0.7.1 for mkvtoolnix bump in #58284 (diff) | |
download | historical-dc4ca14d21f5c6c8b1e288c4258ca75fdc65ed09.tar.gz historical-dc4ca14d21f5c6c8b1e288c4258ca75fdc65ed09.tar.bz2 historical-dc4ca14d21f5c6c8b1e288c4258ca75fdc65ed09.zip |
Fixed several issues in coda init scripts (see bug #26132)
Diffstat (limited to 'net-fs')
-rw-r--r-- | net-fs/coda/ChangeLog | 9 | ||||
-rw-r--r-- | net-fs/coda/Manifest | 30 | ||||
-rw-r--r-- | net-fs/coda/coda-6.0.3.ebuild | 4 | ||||
-rw-r--r-- | net-fs/coda/coda-6.0.6.ebuild | 5 | ||||
-rw-r--r-- | net-fs/coda/files/auth2 | 13 | ||||
-rw-r--r-- | net-fs/coda/files/coda-update | 28 | ||||
-rw-r--r-- | net-fs/coda/files/codasrv | 26 | ||||
-rw-r--r-- | net-fs/coda/files/venus | 10 | ||||
-rw-r--r-- | net-fs/coda/metadata.xml | 4 |
9 files changed, 69 insertions, 60 deletions
diff --git a/net-fs/coda/ChangeLog b/net-fs/coda/ChangeLog index 89c35b107910..d27ebed5325f 100644 --- a/net-fs/coda/ChangeLog +++ b/net-fs/coda/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-fs/coda # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/ChangeLog,v 1.7 2004/07/16 23:22:03 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/ChangeLog,v 1.8 2004/07/26 17:50:21 griffon26 Exp $ + + 26 Jul 2004; Maurice van der Pot <griffon26@gentoo.org> metadata.xml, + files/auth2, files/coda-update, files/codasrv, files/venus, + coda-6.0.3.ebuild, coda-6.0.6.ebuild: + Fixed several issues with init scripts that popped up in the comments + of bug #26132. Fixed omission in einfo in both ebuilds. Took over + maintainance from Daniel Black <dragonheart@gentoo.org> 17 Jul 2004; Daniel Black <dragonheart@gentoo.org> files/auth2, files/coda-update, files/codasrv, files/venus: diff --git a/net-fs/coda/Manifest b/net-fs/coda/Manifest index c820da65e915..931c4c167c3d 100644 --- a/net-fs/coda/Manifest +++ b/net-fs/coda/Manifest @@ -1,22 +1,12 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - -MD5 5bbb57c76f0cf851a9c3a1b9d955493d coda-6.0.3.ebuild 2969 -MD5 1b45d9e2da0f37197bb054ea7da892ce metadata.xml 360 -MD5 51e995132a9e8a39df66eaa9a7e606e0 ChangeLog 1432 -MD5 a069d20d74c89546ecd73c7a00f14c8f coda-6.0.6.ebuild 2991 -MD5 3b744271da3f14625cb9b0f141f58f65 files/venus 527 -MD5 a0074891682173a4ceb15a88e34734dd files/codasrv 1099 -MD5 63676a42a490eb9d6283db5dd4f94ac8 files/coda-update 1418 -MD5 fae8350994155eb6bf9f22be8162ecdb files/auth2 1149 -MD5 d08316a08429d573d30dbc9924707206 files/digest-coda-6.0.3 63 +MD5 69193bface4424f0bfa7669bb36329ff coda-6.0.6.ebuild 3039 +MD5 f905a614fde3a85e0adefb203ece18fc metadata.xml 321 +MD5 14e8df1cfd403bd955f4de826e758920 coda-6.0.3.ebuild 2974 +MD5 64c4445956ac173ca7883ad24e971014 ChangeLog 1803 MD5 d21e4e5142a0266459b5ad8b39e3e707 files/coda-6.0.3-iowr.patch 607 -MD5 eb72604e9995f1f6c1fbcb84edfee3fb files/digest-coda-6.0.6 63 MD5 464a8cd91e3af12266c0570034388221 files/coda-6.0.6-gcc3.4.patch 1984 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.2.4 (GNU/Linux) - -iD8DBQFA+fXemdTrptrqvGERAsLkAJ9SyrWGkenjbuBWL7uu75s4KzzmHQCeIb8Q -+hg3yHtYi2cHDNf3YmmD62U= -=TQb3 ------END PGP SIGNATURE----- +MD5 d08316a08429d573d30dbc9924707206 files/digest-coda-6.0.3 63 +MD5 eb72604e9995f1f6c1fbcb84edfee3fb files/digest-coda-6.0.6 63 +MD5 78b3c40cf0a838d73ed8a67e9d153589 files/coda-update 1223 +MD5 f40f2b0227b97168e8dcd64c86f2e8cc files/codasrv 941 +MD5 1ea6425841d7fed645aad9d06d728ff7 files/auth2 1041 +MD5 494ef5b4a48b5a4aa77251d2b5942a91 files/venus 697 diff --git a/net-fs/coda/coda-6.0.3.ebuild b/net-fs/coda/coda-6.0.3.ebuild index b92e989bd8f9..10a7b86d4473 100644 --- a/net-fs/coda/coda-6.0.3.ebuild +++ b/net-fs/coda/coda-6.0.3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/coda-6.0.3.ebuild,v 1.4 2004/06/24 22:42:31 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/coda-6.0.3.ebuild,v 1.5 2004/07/26 17:50:21 griffon26 Exp $ inherit eutils @@ -114,7 +114,7 @@ src_install () { pkg_postinst () { einfo einfo "To enable the coda at boot up, please do:" - einfo " rc-update venus default" + einfo " rc-update add venus default" einfo einfo "* To get started, run venus-setup and vice-setup" einfo diff --git a/net-fs/coda/coda-6.0.6.ebuild b/net-fs/coda/coda-6.0.6.ebuild index 2840163ecac5..c1c6d108077c 100644 --- a/net-fs/coda/coda-6.0.6.ebuild +++ b/net-fs/coda/coda-6.0.6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/coda-6.0.6.ebuild,v 1.3 2004/06/24 22:42:31 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/coda-6.0.6.ebuild,v 1.4 2004/07/26 17:50:21 griffon26 Exp $ inherit eutils @@ -114,7 +114,8 @@ src_install () { pkg_postinst () { einfo einfo "To enable the coda at boot up, please do:" - einfo " rc-update venus default" + einfo " rc-update add codasrv default" + einfo " rc-update add venus default" einfo einfo "* To get started, run venus-setup and vice-setup" einfo diff --git a/net-fs/coda/files/auth2 b/net-fs/coda/files/auth2 index 4c9f800835da..6700a09c8c1e 100644 --- a/net-fs/coda/files/auth2 +++ b/net-fs/coda/files/auth2 @@ -1,18 +1,13 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/files/auth2,v 1.3 2004/07/16 23:22:03 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/files/auth2,v 1.4 2004/07/26 17:50:21 griffon26 Exp $ depend() { need net } checkconfig() { - if [ ! -e /etc/coda/server.conf ] ; then - eerror "Please run vice-setup before starting the service..." - return 1 - fi - eval `grep "^vicedir=" /etc/coda/server.conf || echo vicedir=/var/lib/vice` if [ ! -e $vicedir/hostname ] ; then eerror "Please run vice-setup before starting the service..." return 1 @@ -27,7 +22,13 @@ we_are_scm() { fi } +getvicedir() { + vicedir=`/usr/sbin/codaconfedit server.conf vicedir` +} + start() { + getvicedir + checkconfig || return 1 ebegin "Starting auth2" diff --git a/net-fs/coda/files/coda-update b/net-fs/coda/files/coda-update index c059f96a26cb..9e6276f72b51 100644 --- a/net-fs/coda/files/coda-update +++ b/net-fs/coda/files/coda-update @@ -1,12 +1,19 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/files/coda-update,v 1.3 2004/07/16 23:22:03 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/files/coda-update,v 1.4 2004/07/26 17:50:21 griffon26 Exp $ depend() { need net auth2 } +checkconfig() { + if [ ! -e $vicedir/hostname ] ; then + eerror "Please run vice-setup before starting the service..." + return 1 + fi +} + we_are_scm() { if [ "`cat $vicedir/hostname`" = "`cat $vicedir/db/scm`" ] ; then return 0 @@ -15,23 +22,16 @@ we_are_scm() { fi } -checkconfig() { - - if [ ! -e /etc/coda/server.conf ] ; then - eerror "Please run vice-setup before starting the service..." - return 1 - fi - eval `grep "^vicedir=" /etc/coda/server.conf || echo vicedir=/var/lib/vice` - if [ ! -e $vicedir/hostname ] ; then - eerror "Please run vice-setup before starting the service..." - return 1 - fi +getvicedir() { + vicedir=`/usr/sbin/codaconfedit server.conf vicedir` } start() { + getvicedir + checkconfig || return 1 - ebegin "Starting coda update servers" + ebegin "Starting coda-update" # Check to see if we are the SCM. if we_are_scm ; then @@ -47,6 +47,8 @@ start() { stop() { ebegin "Stopping coda-update" + getvicedir + if we_are_scm ; then start-stop-daemon --stop --quiet --exec /usr/sbin/rpc2portmap start-stop-daemon --stop --quiet --exec /usr/sbin/updatesrv diff --git a/net-fs/coda/files/codasrv b/net-fs/coda/files/codasrv index 9b759ae707ce..6783add42294 100644 --- a/net-fs/coda/files/codasrv +++ b/net-fs/coda/files/codasrv @@ -1,22 +1,17 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/files/codasrv,v 1.4 2004/07/18 03:52:58 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/files/codasrv,v 1.5 2004/07/26 17:50:21 griffon26 Exp $ depend() { need net coda-update auth2 } checkconfig() { - if [ ! -e /etc/coda/server.conf ] ; then - eerror "Please run vice-setup before starting the service..." - return 1 - fi - eval `grep "^vicedir=" /etc/coda/server.conf || echo vicedir=/var/lib/vice` - if [ ! -e $vicedir/hostname ] ; then - eerror "Please run vice-setup before starting the service..." - return 1 - fi + if [ ! -e $vicedir/hostname ] ; then + eerror "Please run vice-setup before starting the service..." + return 1 + fi } we_are_scm() { @@ -27,7 +22,13 @@ we_are_scm() { fi } +getvicedir() { + vicedir=`/usr/sbin/codaconfedit server.conf vicedir` +} + start() { + getvicedir + checkconfig || return 1 ebegin "Starting codasrv" @@ -37,8 +38,7 @@ start() { stop() { ebegin "Stopping codasrv" - start-stop-daemon --stop --quiet --exec /usr/sbin/codasrv - /usr/sbin/volutil shutdown - sleep 30 + msg=`/usr/sbin/volutil shutdown 2>&1` || echo "$msg" + start-stop-daemon --stop --quiet --retry 30/TERM --oknodo --exec /usr/sbin/codasrv eend $? } diff --git a/net-fs/coda/files/venus b/net-fs/coda/files/venus index 0a6dbf05ee02..ce6bf3f3fc9e 100644 --- a/net-fs/coda/files/venus +++ b/net-fs/coda/files/venus @@ -1,10 +1,18 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/files/venus,v 1.3 2004/07/16 23:22:03 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/files/venus,v 1.4 2004/07/26 17:50:21 griffon26 Exp $ depend() { need net + after codasrv +} + +checkconfig() { + if ! /usr/sbin/codaconfedit venus.conf &>/dev/null; then + eerror "Please run venus-setup before starting the service..." + return 1 + fi } start() { diff --git a/net-fs/coda/metadata.xml b/net-fs/coda/metadata.xml index fd5998d86003..6526113afe87 100644 --- a/net-fs/coda/metadata.xml +++ b/net-fs/coda/metadata.xml @@ -3,8 +3,8 @@ <pkgmetadata> <herd>net-fs</herd> <maintainer> - <email>dragonheart@gentoo.org</email> - <description>Maintaining until net-fs gets off its feet</description> + <email>griffon26@gentoo.org</email> + <name>Maurice van der Pot</name> </maintainer> <maintainer> <email>net-fs@gentoo.org</email> |