--- dsh-0.25.10.orig/ChangeLog.OLD +++ dsh-0.25.10/ChangeLog.OLD @@ -0,0 +1,17 @@ +2001-05-14 Junichi Uekawa + + * dsh.1: added documentation for homedir configs. + + * dsh.c (parse_options): added support for machines config. + (read_machinelist): The machines list support. + (parse_options): Configs in homedir too. + +2001-05-13 Junichi Uekawa + + * dsh.1: Created a manpage + + * Makefile: Copied from other project. + + * dsh.c: Created / started, by + dancer@{debian.org,netfort.gr.jp,mikilab.doshisha.ac.jp} + --- dsh-0.25.10.orig/dcp.sh +++ dsh-0.25.10/dcp.sh @@ -0,0 +1,6 @@ +#! /bin/sh +# script to distributedly copy files. + +PWD=`pwd` + +cat ${tempfile} | @bindir@/dsh "$@" -ic "test -x @libexecdir@/dcpd && ( cd ${PWD}; cat > .tmp.f ; tar xfz tmp.f; true) || @libexecdir@/dcpd ${PWD} 0" \ No newline at end of file --- dsh-0.25.10.orig/debian/README.Debian +++ dsh-0.25.10/debian/README.Debian @@ -0,0 +1,26 @@ +dsh for Debian +-------------- + +This is a "distributed shell" implementation for Debian/Beowulf project. +Something that I would have liked, and everyone else have liked, +but have not (apparently) existed in Debian. + +This program supports update-cluster. +You can manually run update-cluster-regenerate when you install this +package, to configure dsh with update-cluster configuration. +Please see the documentation for update-cluster + +This program supports netgroup, which may be provided through +the libc, through the NSS, i.e. it is possible to use NIS information +in dsh. + + +The author has a home page at + http://www.netfort.gr.jp/~dancer/ +and the primary page for dsh is at + http://www.netfort.gr.jp/~dancer/software/dsh.html + + +enjoy. + + -- Junichi Uekawa , Tue Oct 15 22:52:28 2002 --- dsh-0.25.10.orig/debian/changelog +++ dsh-0.25.10/debian/changelog @@ -0,0 +1,438 @@ +dsh (0.25.10-1.3) unstable; urgency=medium + + * Non-maintainer upload. + * Don't ship symlink for /etc/dsh/group/all. (Closes: #788585) + + -- Ivo De Decker Sat, 08 Apr 2017 23:58:21 +0200 + +dsh (0.25.10-1.2) unstable; urgency=medium + + * Non-maintainer upload. + * Move to debhelper compat level 9. (Closes: #817439) + + -- Chris Lamb Sun, 25 Sep 2016 14:50:25 +0200 + +dsh (0.25.10-1.1) unstable; urgency=medium + + [ Aurelien Jarno ] + * Non-maintainer upload. + + [ Logan Rosen ] + * Use autotools-dev to update config.{sub,guess} for new arches (Closes: + #735633). + + -- Aurelien Jarno Sat, 04 Oct 2014 21:55:24 +0200 + +dsh (0.25.10-1) unstable; urgency=low + + * New upstream version + - output is 'setlinebuf'd for better viewing. + + -- Junichi Uekawa Fri, 14 Dec 2007 09:05:39 +0900 + +dsh (0.25.9-1) unstable; urgency=low + + * New upstream version + - add --hide-machine-names + - use po4a for manpage management. + + -- Junichi Uekawa Wed, 15 Aug 2007 09:03:39 +0900 + +dsh (0.25.8-1) unstable; urgency=low + + * New upstream version + - Bug fix: "forklimit in dsh.conf will not work correctly.", thanks to + Holger Paschke (Closes: #420528). + * add pbuilder-test. + + -- Junichi Uekawa Fri, 18 May 2007 20:18:13 +0900 + +dsh (0.25.7-1) unstable; urgency=low + + * New upstream version + * fix manual page. + * Standards-version: 3.7.2 + * dh_compat=4 + + -- Junichi Uekawa Fri, 11 Aug 2006 23:15:17 +0900 + +dsh (0.25.6-1) unstable; urgency=low + + * New upstream version + - fix build failure on solaris. + * add uscan file + + -- Junichi Uekawa Wed, 30 Mar 2005 09:41:55 +0900 + +dsh (0.25.5-1) unstable; urgency=low + + * New upstream version + - reverse iteration of machinelist is now modified to be in the + 'proper' order. (closes: #291586) + + -- Junichi Uekawa Wed, 16 Mar 2005 09:12:22 +0900 + +dsh (0.25.4-1) unstable; urgency=low + + * New upstream version + - fix compilation error on solaris. (closes: #283728) + + -- Junichi Uekawa Fri, 3 Dec 2004 08:56:27 +0900 + +dsh (0.25.3-1) unstable; urgency=low + + * New upstream version + - Rebuild with libdshconfig with versioned symbols + - support # as comments in machine files (closes: #249794) + + -- Junichi Uekawa Sun, 6 Jun 2004 17:30:05 +0900 + +dsh (0.25.2.1-1) unstable; urgency=low + + * New upstream version + * Rebuild original tar archive with fixed automake1.8 (closes: #244869) + + -- Junichi Uekawa Sun, 25 Apr 2004 11:46:05 +0900 + +dsh (0.25.2-1) unstable; urgency=low + + * New upstream version + - Update documentation about 'dsh -ci' limitations. + + -- Junichi Uekawa Tue, 20 Apr 2004 20:49:55 +0900 + +dsh (0.25.1-1) unstable; urgency=low + + * New upstream version + Fix assertion error, and document workaround; + use Ctrl-D instead of exit for now + (Closes: #228513). + + -- Junichi Uekawa Thu, 22 Jan 2004 09:16:45 +0900 + +dsh (0.25.0-1) unstable; urgency=low + + * New upstream version + - support windowing of connections. + * update package description. + + -- Junichi Uekawa Wed, 17 Sep 2003 07:11:32 +0900 + +dsh (0.24.2-1) unstable; urgency=low + + * New upstream version + - added check for the 'security hole' to see if it really exists. + * Standards-version: 3.6.1 + + -- Junichi Uekawa Tue, 26 Aug 2003 08:39:39 +0900 + +dsh (0.24.0-1) unstable; urgency=low + + * New upstream version + * Standards-version: 3.6.0 + + -- Junichi Uekawa Tue, 5 Aug 2003 05:39:04 +0900 + +dsh (0.23.12-1) unstable; urgency=low + + * New upstream version + + -- Junichi Uekawa Sat, 26 Jul 2003 12:11:33 +0900 + +dsh (0.23.11-2) unstable; urgency=low + + * Clarify description to note what kind of characteristics it has. + + -- Junichi Uekawa Sat, 19 Jul 2003 07:06:08 +0900 + +dsh (0.23.11-1) unstable; urgency=low + + * New upstream version + - portability fixes. + + -- Junichi Uekawa Thu, 12 Jun 2003 21:51:57 +0900 + +dsh (0.23.10-1) unstable; urgency=low + + * New upstream version + * fix debian/copyright a little bit. + * Standards-version 3.5.10 + * support DEB_BUILD_OPTIONS noopt and nostrip. + + -- Junichi Uekawa Sun, 8 Jun 2003 11:35:08 +0900 + +dsh (0.23.9-1) unstable; urgency=low + + * New upstream version + - improved manual build system. + - update man pages. + - exit code reflects child exit codes + * Install NEWS file. + + -- Junichi Uekawa Sat, 7 Jun 2003 02:22:56 +0900 + +dsh (0.23.7-1) unstable; urgency=low + + * New upstream version + - updated manual pages. + * updated copyright file. + + -- Junichi Uekawa Thu, 29 May 2003 23:03:45 +0900 + +dsh (0.23.6-1) unstable; urgency=low + + * New upstream version + * error-check options such as -b0 + * No longer use debian/conffiles + + -- Junichi Uekawa Fri, 24 Jan 2003 14:35:32 +0900 + +dsh (0.23.5-1) unstable; urgency=low + + * New upstream version + * Documentation update and test updates. + + -- Junichi Uekawa Wed, 27 Nov 2002 14:17:07 +0900 + +dsh (0.23.4-1) unstable; urgency=low + + * New upstream version + * Install upstream ChangeLog. + * Update standards-version to 3.5.7 + + -- Junichi Uekawa Mon, 21 Oct 2002 22:50:44 +0900 + +dsh (0.23.1-1) unstable; urgency=low + + * New upstream version + * testsuite in build system + * Check if GNU getopt extention is enabled, and work around it if it + is. (closes: #161846) + Requested by Philippe Troin + + -- Junichi Uekawa Mon, 30 Sep 2002 15:14:27 +0900 + +dsh (0.22.0-1) unstable; urgency=low + + * New upstream version + * Fix duplicate machine entry to be unified (closes: #161845) + * Allow use of "," delimiter for -m option. + + -- Junichi Uekawa Sun, 22 Sep 2002 20:31:00 +0900 + +dsh (0.21.3-1) unstable; urgency=low + + * New upstream version + * Fix bug with "-i" option, and properly terminate + when applications are terminated. + * Fix machine-list file reading, so that whitespace in the file + is ignored. + + -- Junichi Uekawa Thu, 19 Sep 2002 17:35:13 +0900 + +dsh (0.21.2-1) unstable; urgency=low + + * New upstream version + * Fix minor bug with "-i" option, which did not terminate + correctly. + + -- Junichi Uekawa Wed, 18 Sep 2002 20:37:15 +0900 + +dsh (0.21.0-1) unstable; urgency=low + + * New upstream version + * New option "-i", to duplicate input stream to all processes + implemented. + + -- Junichi Uekawa Mon, 16 Sep 2002 18:40:46 +0900 + +dsh (0.20.4-1) unstable; urgency=low + + * New upstream version + * Minor bugfix which should fix the -rssh -cn4 option to work in + an expected way. + + -- Junichi Uekawa Sat, 14 Sep 2002 13:32:22 +0900 + +dsh (0.20.3-1) unstable; urgency=low + + * New upstream version + * Add gettext support, and i18n. + + -- Junichi Uekawa Wed, 11 Sep 2002 19:26:14 +0900 + +dsh (0.20.2-1) unstable; urgency=low + + * New upstream version + * Using libdshconfig.so library in config file parsing. + * remove libdshconfig to another package, and depend on it. + * autoconfiscate + * Make the package into a non-native package. + * call configure with --mandir and --sysconfdir parameters. + * use full installed-path to invoke dsh on other machines. + + -- Junichi Uekawa Wed, 14 Aug 2002 18:45:40 +0900 + +dsh (0.0.18) unstable; urgency=low + + * updated README.Debian + * updated copyright for year 2002. + * Makefile uses $(CC) instead of hardcoding "gcc", just to be cross-build + friendly. + * Standard input is taken from /dev/null by default. (closes: #98717) + + -- Junichi Uekawa Wed, 27 Feb 2002 22:16:05 +0900 + +dsh (0.0.17) unstable; urgency=low + + * "A Package for your Christmas, my dear Emperor..." release + * dsh.1, parameter.c: adding support for specifying arbitrary machine list + specifications. the command-line "-f", or "--file" + * dsh.1: updated, with redundant tags removed. + * dsh.1, parameter.c: updated with a patch from Petter Reinholdtsen to + support netgroups in dsh group specification. (closes: 126153) + * Created file AUTHORS to give credits on who the code was written. + * Marking the upstream homepage and address on README.Debian + * Changed function indentation style to suit my new favor. + * Added top-level README documentation, which suggests reading of + debian/README.Debian + * debian/postinst: fixed string comparison, it used to say "==", but it + should have been "=" + * debian/rules: changed the method to obtain the version string for + dshversion.h. + + -- Junichi Uekawa Sun, 23 Dec 2001 14:32:21 +0900 + +dsh (0.0.16) unstable; urgency=low + + * Removing /etc/dsh{,/group} on purge. Thanks phil (closes: #113737) + + -- Junichi Uekawa Sun, 30 Sep 2001 23:38:43 +0900 + +dsh (0.0.15) unstable; urgency=low + + * The configuration parser gives a warning when dsh.conf is not + parsable, thanks to neil. (closes: #111413) + * Please note that since dsh-0.0.14, configuration file format has + changed slightly. + + -- Junichi Uekawa Sat, 8 Sep 2001 04:51:12 +0900 + +dsh (0.0.14) unstable; urgency=low + + * Configuration file handling is slightly better - now handles spaces in config files :P (planning to make it into guile or something). Handles waitshell, and showmachinenames, and verbose. Changed dsh.conf to reflect this. + * changed the method of obtaining DSH_VERSION to use dpkg-parsechangelog + + -- Junichi Uekawa Tue, 21 Aug 2001 23:16:15 +0900 + +dsh (0.0.13) unstable; urgency=low + + * Fix manpages so that - is escaped with \ (closes: #108033) + + -- Junichi Uekawa Wed, 8 Aug 2001 23:20:06 +0900 + +dsh (0.0.12) unstable; urgency=low + + * support update-cluster + + -- Junichi Uekawa Sun, 29 Jul 2001 01:36:01 +0900 + +dsh (0.0.11) unstable; urgency=low + + * cleaning up the code. + * removed -g option from gcc compilation option. + + -- Junichi Uekawa Mon, 2 Jul 2001 00:21:54 +0900 + +dsh (0.0.10) unstable; urgency=low + + * parameter.[ch]: split out files for configuration, and the main program. + * added more error checking codes. + + -- Junichi Uekawa Sat, 9 Jun 2001 00:15:24 +0900 + +dsh (0.0.9) unstable; urgency=low + + * clearing up some codes on what is const, in the hope to fix some + outstanding bugs. + * changed remaining _exit() to exit(). + * Made "topology" execution to handle "-o" parameters, so that + ssh can use forwarded auth keys with -o -A. + + -- Junichi Uekawa Sat, 26 May 2001 02:19:32 +0900 + +dsh (0.0.8) unstable; urgency=low + + * The build system now extracts version number from the changelog. (dsh + --version option will not output the correct version information). + * changed all _exit() calls to exit() + * Updated manpage dsh.1 to match the reality. + * handles stderr output for -M option. All output that are sent to + stderr on the remote machines are displayed on the stderr of the + local machine. + + -- Junichi Uekawa Thu, 24 May 2001 01:57:10 +0900 + +dsh (0.0.7) unstable; urgency=low + + * bugfix. Added a fflush before _exit, (closes: 97818) + + -- Junichi Uekawa Wed, 23 May 2001 00:12:38 +0900 + +dsh (0.0.6) unstable; urgency=low + + * update version. + * trying to fix the process bug, not being quite successful. It should + be fine now when -M option is not specified. + * Fixed a segv in config file loading. This really (closes: #97675) + + -- Junichi Uekawa Sun, 20 May 2001 02:11:49 +0900 + +dsh (0.0.5) unstable; urgency=low + + * new release + * supports "topology". A method to spawn dsh on other machines to + spawn more rsh from other machines. Trying to help a machine + out from spawning all 256 or so rsh sessions. + A topology of 2 will result in binary-tree arrangement. + A topology of 3 would be better, I'd guess. Not thoroughly tested. + + -- Junichi Uekawa Sat, 19 May 2001 02:59:42 +0900 + +dsh (0.0.4) unstable; urgency=low + + * bugfixes and updates + * Supports username@host format as a valid machine name specification. + It can be used in machines.list, and command line and + everywhere (closes: #97819). + + -- Junichi Uekawa Fri, 18 May 2001 02:50:02 +0900 + +dsh (0.0.3) unstable; urgency=low + + * bugfixes + * fixed one configuration file loading bug. hopefully (closes: #97675) + * added --show-machine-names option to make stdout to be prepended + with the hostname of the machine that the command is being executed. + (closes: #97336) + * reordered the rsh execution routine so that it looks cleaner. + + -- Junichi Uekawa Thu, 17 May 2001 02:23:35 +0900 + +dsh (0.0.2) unstable; urgency=low + + * Updates. + * --remoteshellopt added. Config files handling has been implemented. + Quite a few bugs have been removed. Linked list handling routine + has moved out of the main source. + * /etc/dsh/dsh.conf is installed, and is a conffile. + + -- Junichi Uekawa Wed, 16 May 2001 00:39:04 +0900 + +dsh (0.0.1) unstable; urgency=low + + * Initial Release. + + -- Junichi Uekawa Mon, 14 May 2001 22:53:04 +0900 + + --- dsh-0.25.10.orig/debian/compat +++ dsh-0.25.10/debian/compat @@ -0,0 +1 @@ +9 --- dsh-0.25.10.orig/debian/control +++ dsh-0.25.10/debian/control @@ -0,0 +1,25 @@ +Source: dsh +Section: net +Priority: optional +Maintainer: Junichi Uekawa +Build-Depends: debhelper (>= 9), libdshconfig1-dev (>= 0.20.11-1), po4a, autotools-dev +Standards-Version: 3.7.2 + +Package: dsh +Architecture: any +Depends: ${shlibs:Depends} +Suggests: update-cluster +Description: dancer's shell, or distributed shell + Executes specified command on a group of computers using remote shell + methods such as rsh or ssh. + . + dsh can parallelise job submission using several algorithms, such as using + fan-out method or opening as much connections as possible, or + using a window of connections at one time. + It also supports "interactive mode" for interactive maintenance of + remote hosts. + . + This tool is handy for administration of PC clusters, and multiple hosts. + . + http://www.netfort.gr.jp/~dancer/software/dsh.html + --- dsh-0.25.10.orig/debian/copyright +++ dsh-0.25.10/debian/copyright @@ -0,0 +1,14 @@ +This package was debianized by Junichi Uekawa on +Mon, 14 May 2001 22:53:04 +0900. + +It was downloaded from http://www.netfort.gr.jp/~dancer/software/dsh.html + +Upstream Authors: + Junichi Uekawa + +Copyright: + +Copyright (c) 2001, 2002, 2003, 2004, 2005 Junichi Uekawa + +Licensed under GPL version 2 or later. +Please see /usr/share/common-licenses/GPL on Debian systems. --- dsh-0.25.10.orig/debian/dirs +++ dsh-0.25.10/debian/dirs @@ -0,0 +1,3 @@ +usr/bin +usr/sbin +etc/dsh/group --- dsh-0.25.10.orig/debian/dsh.updatelist +++ dsh-0.25.10/debian/dsh.updatelist @@ -0,0 +1,3 @@ +#! /bin/bash +/usr/bin/update-cluster-parseconfig hostname < "${CLUSTERXML}" > /etc/dsh/machines.list + --- dsh-0.25.10.orig/debian/machines.list +++ dsh-0.25.10/debian/machines.list @@ -0,0 +1 @@ +localhost --- dsh-0.25.10.orig/debian/pbuilder-test/01_makecheck +++ dsh-0.25.10/debian/pbuilder-test/01_makecheck @@ -0,0 +1,4 @@ +#!/bin/bash + +make check + --- dsh-0.25.10.orig/debian/postinst +++ dsh-0.25.10/debian/postinst @@ -0,0 +1,27 @@ +#! /bin/sh + +if [ "$1" = "configure" ] && [ -z "$2" ]; then + if [ ! -e /etc/dsh/group/all ] + then + # manually create the symlink instead of shipping it + # see https://bugs.debian.org/788585 + ln -s ../machines.list /etc/dsh/group/all + fi +fi + +# see preinst +SYMLINK="/etc/dsh/group/all" +LASTVERSION="0.25.10-1.3~" + +if [ "$1" = "configure" ] && + [ -n "$2" ] && + dpkg --compare-versions -- "$2" le-nl "$LASTVERSION"; then + if [ -e ${SYMLINK}.dpkg-backup -o -h ${SYMLINK}.dpkg-backup ] && + [ ! -e "$SYMLINK" ] + then + mv -f "${SYMLINK}.dpkg-backup" "$SYMLINK" + fi +fi + +#DEBHELPER# + --- dsh-0.25.10.orig/debian/postrm +++ dsh-0.25.10/debian/postrm @@ -0,0 +1,13 @@ +#! /bin/sh + +if [ "$1" = "purge" ]; then + rm -f /etc/dsh/group/all + # might be created in preinst on upgrade + rm -f /etc/dsh/group/all.dpkg-backup + rmdir --ignore-fail-on-non-empty /etc/dsh/group + rmdir --ignore-fail-on-non-empty /etc/dsh +fi + + +#DEBHELPER# + --- dsh-0.25.10.orig/debian/preinst +++ dsh-0.25.10/debian/preinst @@ -0,0 +1,20 @@ +#! /bin/sh + +# Handle the upgrade from the symlink shipped in the package to the symlink +# created by the postinst +# see https://bugs.debian.org/788585 + +# this code is based on symlink_to_dir in dpkg-maintscript-helper + +# note that this also works if /etc/dsh/group/all is not a symlink +SYMLINK="/etc/dsh/group/all" +LASTVERSION="0.25.10-1.3~" + +if [ "$1" = "install" -o "$1" = "upgrade" ] && + [ -n "$2" ] && [ -h "$SYMLINK" -o -e "$SYMLINK" ] && + dpkg --compare-versions -- "$2" le-nl "$LASTVERSION"; then + mv -f "$SYMLINK" "${SYMLINK}.dpkg-backup" +fi + +#DEBHELPER# + --- dsh-0.25.10.orig/debian/rules +++ dsh-0.25.10/debian/rules @@ -0,0 +1,86 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CFLAGS = -Wall -g +INSTALL = install +INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644 +INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755 +INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755 +INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755 + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS += -O0 +else +CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) +INSTALL_PROGRAM += -s +endif + + +configure: configure-stamp +configure-stamp: + dh_testdir + dh_autotools-dev_updateconfig + INSTALL_PROGRAM='${INSTALL_PROGRAM}' CFLAGS='${CFLAGS}' \ + ./configure --prefix=/usr --sysconfdir=/etc/dsh --mandir=/usr/share/man + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + $(MAKE) + $(MAKE) check + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + -$(MAKE) clean + -$(MAKE) distclean + dh_autotools-dev_restoreconfig + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/dsh. + $(MAKE) install DESTDIR=$(CURDIR)/debian/dsh + cp $(CURDIR)/debian/machines.list $(CURDIR)/debian/dsh/etc/dsh/machines.list + cp $(CURDIR)/dsh.conf $(CURDIR)/debian/dsh/etc/dsh/dsh.conf + install -d $(CURDIR)/debian/dsh/usr/lib/update-cluster + install -m 755 $(CURDIR)/debian/dsh.updatelist $(CURDIR)/debian/dsh/usr/lib/update-cluster/ + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs NEWS + dh_installexamples + dh_installmenu + dh_installman + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_shlibdeps + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- dsh-0.25.10.orig/debian/watch +++ dsh-0.25.10/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://www.netfort.gr.jp/~dancer/software/downloads dsh-([\d+\.]+).tar.gz --- dsh-0.25.10.orig/drshd.c +++ dsh-0.25.10/drshd.c @@ -0,0 +1,61 @@ +/* + * DSH / dancer's shell or the distributed shell + * Copyright (C) 2003 Junichi Uekawa + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Dancer's almost Remote Shell Daemon. + * + * Will receive connection from stdin, and try to invoke shell. + */ + +#include + + +int +process_incoming_text() +{ +} + +int +process_outgoing_text() +{ +} + + +int +fork_processes_for_action() +{ +} + +/** + * Accept an incoming connectiobn + */ +int +accept_input(int fd/** File descriptor of the incoming connection */) +{ +} + +int +parse_commandline() +{ + +} + +int +main() +{ + +} --- dsh-0.25.10.orig/dsh.1.ja.po +++ dsh-0.25.10/dsh.1.ja.po @@ -0,0 +1,552 @@ +# SOME DESCRIPTIVE TITLE +# Copyright (C) YEAR Free Software Foundation, Inc. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2007-08-15 08:57+0900\n" +"PO-Revision-Date: 2007-08-15 08:57+0900\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=euc-jp\n" +"Content-Transfer-Encoding: ENCODING\n" + +# type: TH +#: dsh.1:1 +#, no-wrap +msgid "dsh" +msgstr "dsh" + +# type: TH +#: dsh.1:1 +#, no-wrap +msgid "2007 Aug 15" +msgstr "2007 Aug 15" + +# type: TH +#: dsh.1:1 +#, no-wrap +msgid "Debian-Beowulf/Dancer" +msgstr "Debian-Beowulf/Dancer" + +# type: TH +#: dsh.1:1 +#, no-wrap +msgid "Dancer Tools reference" +msgstr "Dancer ツールリファレンス" + +# type: SH +#: dsh.1:2 +#, no-wrap +msgid "NAME" +msgstr "名前" + +# type: Plain text +#: dsh.1:4 +msgid "dsh - Distributed shell, or dancer's shell" +msgstr "dsh - 分散シェル.もしくはダンサーのシェル" + +# type: SH +#: dsh.1:4 +#, no-wrap +msgid "SYNOPSIS" +msgstr "書式" + +# type: Plain text +#: dsh.1:7 +msgid "" +"BIB< | -a | -g >IB<] [-r " +">IB<] [-c | -w | -i | -F >IB< ] -- " +">I" +msgstr "" +"BI<マシン名>B< | -a | -g >I<グループ名>B<] [-r >I<リモートシェル名" +">B<] [-c | -w | -i | -F >IB< ] -- >I<コマンドライン>" + +# type: SH +#: dsh.1:7 +#, no-wrap +msgid "DESCRIPTION" +msgstr "説明" + +# type: Plain text +#: dsh.1:13 +msgid "" +"B executes command remotely on several different machines at the same " +"time. An utility to effectively do a B in bourne shell." +msgstr "" +"B は複数のマシンで同時にコマンドを実行するためのユーティリティーです. " +"このユーティリティーはBourneシェルで表現すると B と同等の事ができます." + +# type: SH +#: dsh.1:14 +#, no-wrap +msgid "OPTIONS" +msgstr "オプション" + +# type: Plain text +#: dsh.1:16 +msgid "The options available are as follows." +msgstr "利用可能なオプションは以下の通りです" + +# type: TP +#: dsh.1:16 +#, no-wrap +msgid "B<--verbose | -v>" +msgstr "B<--verbose | -v>" + +# type: Plain text +#: dsh.1:19 +msgid "Give verbose output of the execution process." +msgstr "冗長な出力を出します." + +# type: TP +#: dsh.1:20 +#, no-wrap +msgid "B<--quiet | -q>" +msgstr "B<--quiet | -q>" + +# type: Plain text +#: dsh.1:23 +msgid "Makes output quieter." +msgstr "出力を静かにします." + +# type: TP +#: dsh.1:24 +#, no-wrap +msgid "B<--machine | -m >I<[machinename[,machinename]*]>" +msgstr "B<--machine | -m >I<[マシン名[,マシン名]*]>" + +# type: Plain text +#: dsh.1:35 +msgid "" +"Adds I to the list of machines that the command is exeuted. " +"The syntax of I allows I where remote " +"shell is invoked with the option to make it of I" +msgstr "" +"I<マシン名> をコマンドが実行されるマシンの一覧に追加します. I<マシン名> の形" +"式は I<ユーザ名@マシン名> という形をとります.この形式を利用すると I<ユーザ名" +"> でリモートホストにログインできます." + +# type: Plain text +#: dsh.1:40 +msgid "" +"From version 0.21.4, it is possible to specify in the format of " +"I so that " +"multiple hosts can be specified with comma-delimited values." +msgstr "" +"バージョン 0.21.4 から I<ユーザ名@マシン名,ユーザ名@マシン名,ユーザ名@マシン" +"名> の形式で複数のホストをコンマ区切りで指定することができるようになりまし" +"た." + +# type: TP +#: dsh.1:41 +#, no-wrap +msgid "B<--all | -a >" +msgstr "B<--all | -a >" + +# type: Plain text +#: dsh.1:46 +msgid "" +"Add all machines found in B to the list of machines " +"that the specified command is executed." +msgstr "" +"Add all machines found in B にある全ホストを指定した" +"コマンドを実行するホストの一覧に追加します." + +# type: TP +#: dsh.1:47 +#, no-wrap +msgid "B<--group >IB< | -g >I" +msgstr "B<--group >IB< | -g >I" + +# type: Plain text +#: dsh.1:52 +msgid "" +"Add all machines found in BI to the list of " +"machines that the specified command is executed." +msgstr "" +"BI<グループ名> にある全ホストを指定したコマンドを実行するホ" +"ストの一覧に追加します." + +# type: Plain text +#: dsh.1:57 +msgid "" +"If groupname is on the form B<@netgroup> then the machines in the given " +"netgroup is used to specify the list of machines to execute on." +msgstr "" +"グループ名が B<@ネットグループ> の形式で指定されているのなら,指定されたネッ" +"トグループを コマンドを実行するためのホストの一覧に追加します." + +# type: TP +#: dsh.1:58 +#, no-wrap +msgid "B<--file >IB< | -f >I" +msgstr "B<--file >I<マシンファイル>B< | -f >I<マシンファイル>" + +# type: Plain text +#: dsh.1:62 +msgid "" +"Add all machines found in the specified file to the list of machines that " +"the specified command is executed." +msgstr "" +"指定したファイルにある全ホストを指定したコマンドを実行するホストの一覧に追加" +"します." + +# type: Plain text +#: dsh.1:68 +msgid "" +"The file should list one machine specification per line (with the same " +"syntax as the I argument). Lines starting with \"#\" are " +"ignored." +msgstr "" +"ファイルの中では一行に一台づつマシンを指定します( I と同じ書式" +"で指定します)。 \"#\"で開始する行は無視されます。" + +# type: Plain text +#: dsh.1:73 +msgid "" +"From version 0.21.4, Specifying the same machine several times using any of " +"the machine specification options will result in multiple invocations merged " +"into one." +msgstr "" +"バージョン 0.21.4 から同じマシンを複数回指定すると, 一つの実行にマージされる" +"ようになりました." + +# type: TP +#: dsh.1:74 +#, no-wrap +msgid "B<--remoteshell >IB<| -r >I" +msgstr "B<--remoteshell >I<シェル名 >B<| -r >I<シェル名 >" + +# type: Plain text +#: dsh.1:80 +msgid "" +"Execute remote shell I as the remote shell. Usually any of \"rsh" +"\", \"remsh\" or \"ssh\" are available" +msgstr "" +"I<シェル名> というリモートシェルを利用する. 通常 \"rsh\" や \"remsh\" や " +"\"ssh\" が利用可能です." + +# type: TP +#: dsh.1:81 +#, no-wrap +msgid "B<--remoteshellopt >IB<| -o >I" +msgstr "B<--remoteshellopt >I<リモートシェルオプション >B<| -o >I<リモートシェルオプション >" + +# type: Plain text +#: dsh.1:86 +msgid "" +"Add one option I to the list of options passed on to the remote " +"shell." +msgstr "" +"I<リモートシェルオプション> をリモートシェルに与えるオプションのリストに追加" +"する." + +# type: TP +#: dsh.1:87 +#, no-wrap +msgid "B<--help | -h >" +msgstr "B<--help | -h >" + +# type: Plain text +#: dsh.1:90 +msgid "Output help message and exits." +msgstr "ヘルプメッセージを出力して終了する." + +# type: TP +#: dsh.1:91 +#, no-wrap +msgid "B<--wait-shell | -w >" +msgstr "B<--wait-shell | -w >" + +# type: Plain text +#: dsh.1:95 +msgid "" +"Executes on each machine and waits for the execution finishing before moving " +"on to the next machine." +msgstr "各マシンで実行し,実行し終ってから次のマシンで実行する." + +# type: TP +#: dsh.1:96 +#, no-wrap +msgid "B<--concurrent-shell | -c >" +msgstr "B<--concurrent-shell | -c >" + +# type: Plain text +#: dsh.1:99 +msgid "Executes shell concurrently." +msgstr "シェルを並列に実行する." + +# type: TP +#: dsh.1:100 +#, no-wrap +msgid "B<--show-machine-names | -M >" +msgstr "B<--show-machine-names | -M >" + +# type: Plain text +#: dsh.1:106 +msgid "" +"Prepends machine names on the standard output. Useful to be used in " +"conjunction with the B<--concurrent-shell> option so that the output is " +"slightly more parsable." +msgstr "" +"マシン名を標準出力の出力に追加する. B<--concurrent-shell> オプションと同時に" +"使うと出力が多少は見やすくなる." + +# type: TP +#: dsh.1:107 +#, no-wrap +msgid "B<--hide-machine-names | -H >" +msgstr "B<--hide-machine-names | -H >" + +# type: Plain text +#: dsh.1:110 +msgid "Do not prepend machine names on the standard output." +msgstr "マシン名を標準出力の出力に追加しない." + +# type: TP +#: dsh.1:111 +#, no-wrap +msgid "B<--duplicate-input | -i >" +msgstr "B<--duplicate-input | -i >" + +# type: Plain text +#: dsh.1:117 +msgid "" +"Duplicates the input to dsh process to individual process that are remotely " +"invoked. Needs to have B<--concurrent-shell> set." +msgstr "" +"dshプロセスの入力を各リモートプロセスに分配する. B<--concurrent-shell> オプ" +"ションを指定している必要がある." + +# type: Plain text +#: dsh.1:121 +msgid "" +"Due to limitations in current implementation, it is only useful for running " +"shell. Terminate the shell session with ctrl-D." +msgstr "" +"現在の実装の制限により,シェルを実行する以外の用途には訳に立たない. シェルの" +"セッションを終了するには,CtrlーDを押すこと." + +# type: TP +#: dsh.1:122 +#, no-wrap +msgid "B<--bufsize | -b [>IB<]>" +msgstr "B<--bufsize | -b [>I<バッファサイズ(バイト)>B<]>" + +# type: Plain text +#: dsh.1:127 +msgid "" +"Sets the buffer size used in replicating input for B<--duplicate-input> " +"option." +msgstr "" +"B<--duplicate-input> の入力を複製する際に利用するバッファサイズを指定する." + +# type: TP +#: dsh.1:128 +#, no-wrap +msgid "B<--version | -V >" +msgstr "B<--version | -V >" + +# type: Plain text +#: dsh.1:131 +msgid "Outputs version information and exits." +msgstr "バージョン情報を出力して終了する." + +# type: TP +#: dsh.1:132 +#, no-wrap +msgid "B<--num-topology | -N >" +msgstr "B<--num-topology | -N >" + +# type: Plain text +#: dsh.1:138 +msgid "" +"Changes the current topology from 1. 1 is the default behavior of spawning " +"the shell from one node to every node. Changing the number to a value " +"greater than 2 would result in dsh being spawned on other machines as well." +msgstr "" +"トポロジを1から変更する. 1がデフォルトの1ノードから全ノードにシェルを実行す" +"るスタイルです. 2以上の値に指定すると,dshが他のマシンでも実行されるようにな" +"ります." + +# type: TP +#: dsh.1:139 +#, no-wrap +msgid "B<--forklimit | -F >I" +msgstr "B<--forklimit | -F >I" + +# type: Plain text +#: dsh.1:150 +msgid "" +"Similar to B<-c> with a limit on the number of simultaneous connections. " +"dsh will wait before creating new connection if the limit is reached. " +"Useful when the number of nodes to be accessed is going somewhere above 200, " +"and using B<-N> option is not possible." +msgstr "" +"B<-c> と同様の効果を持つ. このオプションは同時接続の数に制限を設ける. 限界" +"を越えた場合,新しい接続を作成する前に他の接続が終了するのを待つ. 同時にアク" +"セスするホストの数が200を越えており, B<-N> オプションを利用することが好まし" +"くない環境の場合に利用する." + +# type: SH +#: dsh.1:151 +#, no-wrap +msgid "EXIT STATUS" +msgstr "終了コード" + +# type: Plain text +#: dsh.1:154 +msgid "" +"The first non-zero exit code of child processes is returned, or zero if none " +"returned non-zero exit code." +msgstr "" +"最初のゼロ以外の終了コードを返した子プロセスの終了コードを返します. もし全て" +"のプロセスがゼロを終了コードとして返したのなら,0を返します." + +# type: Plain text +#: dsh.1:157 +msgid "" +"1 if error is found in command-line specifications. 2 if signal is received " +"from child processes." +msgstr "コマンドラインオプションの失敗があった場合は,EXIT_FAILUREを返します." + +# type: SH +#: dsh.1:159 +#, no-wrap +msgid "EXAMPLES" +msgstr "例" + +# type: TP +#: dsh.1:160 +#, no-wrap +msgid "B" +msgstr "B" + +# type: Plain text +#: dsh.1:163 +msgid "Shows list of users logged in on all workstations." +msgstr "全ワークステーションにログインしているユーザの一覧を表示します." + +# type: TP +#: dsh.1:164 +#, no-wrap +msgid "B" +msgstr "B" + +# type: Plain text +#: dsh.1:169 +msgid "" +"Shows list of users logged in on all workstations, and use ssh command to " +"connect. (It should be of note that when using ssh, ssh-agent is handy.)" +msgstr "" +"sshを利用して,全ワークステーションにログインしているユーザの一覧を表示しま" +"す. (sshを利用するときには,ssh-agentを利用するのが良いでしょう.)" + +# type: TP +#: dsh.1:170 +#, no-wrap +msgid "B" +msgstr "B" + +# type: Plain text +#: dsh.1:173 +msgid "Shows the load average of machines node1 and node2." +msgstr "node1とnode2の負荷平均を表示します." + +# type: SH +#: dsh.1:174 +#, no-wrap +msgid "FILES" +msgstr "ファイル" + +# type: TP +#: dsh.1:175 +#, no-wrap +msgid "B<@sysconfdir@/machines.list | $(HOME)/.dsh/machines.list>" +msgstr "B<@sysconfdir@/machines.list | $(HOME)/.dsh/machines.list>" + +# type: Plain text +#: dsh.1:180 +msgid "" +"List of machine names to be used for when B<-a> command-line option is " +"specified." +msgstr "B<-a> コマンドラインオプションが指定されたときに利用するマシンの一覧." + +# type: TP +#: dsh.1:181 +#, no-wrap +msgid "B<@sysconfdir@/group/>IB< | $(HOME)/.dsh/group/>I" +msgstr "B<@sysconfdir@/group/>IB< | $(HOME)/.dsh/group/>I" + +# type: Plain text +#: dsh.1:186 +msgid "" +"List of machine names to be used for when B<-g >I command-line " +"option is specified." +msgstr "B<-g >I<グループ名> オプションが指定されたときに利用するマシンの一覧" + +# type: TP +#: dsh.1:187 +#, no-wrap +msgid "B<@sysconfdir@/dsh.conf | $(HOME)/.dsh/dsh.conf >" +msgstr "B<@sysconfdir@/dsh.conf | $(HOME)/.dsh/dsh.conf >" + +# type: Plain text +#: dsh.1:190 +msgid "Configuration file containing the day-to-day default." +msgstr "毎日使うデフォルト設定の書いてあるファイル." + +# type: SH +#: dsh.1:191 +#, no-wrap +msgid "BUGS" +msgstr "バグ" + +# type: Plain text +#: dsh.1:195 +msgid "There should be a B for copying files to remote systems." +msgstr "ファイルをコピーするための B プログラムがあるべきだろう." + +# type: Plain text +#: dsh.1:198 +msgid "" +"Configuration files should really be able to do something more than it does " +"now." +msgstr "設定ファイルももっと柔軟になるべきだ." + +# type: SH +#: dsh.1:199 +#, no-wrap +msgid "AUTHOR" +msgstr "著者" + +# type: Plain text +#: dsh.1:201 +msgid "Junichi Uekawa (dancer@debian.org)" +msgstr "上川純一 (dancer@debian.org)" + +# type: Plain text +#: dsh.1:204 +msgid "" +"Upstream page is available at B" +msgstr "" +"ホームページは B にありま" +"す." + +# type: SH +#: dsh.1:205 +#, no-wrap +msgid "SEE ALSO" +msgstr "関連項目" + +# type: Plain text +#: dsh.1:210 +msgid "B(1), B(1), B(1), B(5)" +msgstr "B(1), B(1), B(1), B(5)" --- dsh-0.25.10.orig/po/insert-header.sin +++ dsh-0.25.10/po/insert-header.sin @@ -0,0 +1,23 @@ +# Sed script that inserts the file called HEADER before the header entry. +# +# At each occurrence of a line starting with "msgid ", we execute the following +# commands. At the first occurrence, insert the file. At the following +# occurrences, do nothing. The distinction between the first and the following +# occurrences is achieved by looking at the hold space. +/^msgid /{ +x +# Test if the hold space is empty. +s/m/m/ +ta +# Yes it was empty. First occurrence. Read the file. +r HEADER +# Output the file's contents by reading the next line. But don't lose the +# current line while doing this. +g +N +bb +:a +# The hold space was nonempty. Following occurrences. Do nothing. +x +:b +}