From d946a30d5eabd2dd3b5574fc818bb1740e5827bf Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Sun, 22 Jul 2001 23:59:25 -0600 Subject: [PATCH] Imported Debian patch 5.1-7 --- .eggprotocolrc | 5 +++ basket.c | 1 + debian/.eggprotocolrc | 5 +++ debian/changelog | 55 ++++++++++++++++++++++++++++++++ debian/conffiles | 2 ++ debian/control | 22 +++++++++++++ debian/copyright | 21 ++++++++++++ debian/dirs | 4 +++ debian/docs | 1 + debian/gcpegg.1 | 35 ++++++++++++++++++++ debian/init.d | 33 +++++++++++++++++++ debian/rules | 74 +++++++++++++++++++++++++++++++++++++++++++ eggrc.sample | 19 +++++++---- eggui.c | 2 ++ reg_pseudo.c | 1 + sample.eggrc | 19 +++++++---- 16 files changed, 287 insertions(+), 12 deletions(-) create mode 100644 .eggprotocolrc create mode 100644 debian/.eggprotocolrc create mode 100644 debian/changelog create mode 100644 debian/conffiles create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100644 debian/gcpegg.1 create mode 100644 debian/init.d create mode 100755 debian/rules diff --git a/.eggprotocolrc b/.eggprotocolrc new file mode 100644 index 0000000..10007d7 --- /dev/null +++ b/.eggprotocolrc @@ -0,0 +1,5 @@ +# +# Current protocol for egg +# +# PROTOCOL +PROTOCOL 10 10 6 200 diff --git a/basket.c b/basket.c index abd33c6..487072b 100644 --- a/basket.c +++ b/basket.c @@ -42,6 +42,7 @@ #include #include #include +#include #include "global.h" #include "genlib.h" #include "storage.h" diff --git a/debian/.eggprotocolrc b/debian/.eggprotocolrc new file mode 100644 index 0000000..a048ddb --- /dev/null +++ b/debian/.eggprotocolrc @@ -0,0 +1,5 @@ +# +# Current protocol for egg +# +# PROTOCOL +PROTOCOL 10 10 30 200 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..85c3abe --- /dev/null +++ b/debian/changelog @@ -0,0 +1,55 @@ +gcpegg (5.1-7) unstable; urgency=low + + * change build dependency to use libncurses-dev, closes: #101655 + * various packaging cleanups for things lintian discovered + * augment list of header files included, to eliminate implicit declarations + + -- Bdale Garbee Sun, 22 Jul 2001 23:59:25 -0600 + +gcpegg (5.1-6) unstable; urgency=low + + * use 'openvt' instead of 'open' in init.d since that's canonical now, + closes: #53180 + * update sample eggrc file to reflect current protocol, closes: #79545 + + -- Bdale Garbee Wed, 20 Dec 2000 12:24:57 -0700 + +gcpegg (5.1-5) unstable; urgency=low + + * fix inconsistent virtual terminal number in init.d script + + -- Bdale Garbee Wed, 15 Dec 1999 17:39:17 -0700 + +gcpegg (5.1-4) unstable; urgency=low + + * add a missing item to build dependencies + + -- Bdale Garbee Sun, 5 Dec 1999 20:41:31 -0700 + +gcpegg (5.1-3) unstable; urgency=low + + * update to current policy + + -- Bdale Garbee Wed, 1 Dec 1999 23:48:50 -0700 + +gcpegg (5.1-2) unstable; urgency=low + + * move the display to virtual terminal 8, which is unlikely to get in + the way of anthing else going on. Thanks to Craig Sanders for the + suggestion. + + -- Bdale Garbee Mon, 10 May 1999 07:38:23 -0600 + +gcpegg (5.1-1) unstable; urgency=low + + * Initial Release. + * add init.d fragment to auto-launch, uses 'open' and puts the program + on virtual terminal 2. This may not make everyone happy, but is good + enough for now. + + -- Bdale Garbee Sun, 9 May 1999 20:06:40 -0600 + +Local variables: +mode: debian-changelog +add-log-mailing-address: "bdale@gag.com" +End: diff --git a/debian/conffiles b/debian/conffiles new file mode 100644 index 0000000..1a1c11f --- /dev/null +++ b/debian/conffiles @@ -0,0 +1,2 @@ +/etc/eggrc +/etc/init.d/gcpegg diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..782c537 --- /dev/null +++ b/debian/control @@ -0,0 +1,22 @@ +Source: gcpegg +Section: misc +Priority: optional +Maintainer: Bdale Garbee +Build-Depends: debhelper, libncurses-dev +Standards-Version: 3.1.1.1 + +Package: gcpegg +Architecture: any +Depends: ${shlibs:Depends}, open +Description: Global Consciousness Project EGG Software + The GCP studies data from random event generators in widely distributed + locations, to discern non-random patterns that may result from the + interaction of human consciousness with the generators. + . + This package provides the software required to operate a random event + generator and return data to the project. Unless you are registered + with the GCP and have received event generator hardware, this package + will be useless to you. If you have no idea what this means, don't + bother installing this package! + . + More GCP information is available at http://noosphere.princeton.edu. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..9d2b535 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,21 @@ +This package was debianized by Bdale Garbee bdale@gag.com on +Wed, 28 Apr 1999 20:43:12 -0600. + +It was downloaded from http://noosphere.princeton.edu/ + +Upstream Author(s): Greg Nelson + +Copyright: + + The author indicated the GPL, version 2 or later. The current text in + the sourcecode is a bit confused, and will be fixed in a future + release. Here's what's there now: + + Copyright 1998 - Greg Nelson + + Source code in this directory is in the public domain and may be + used in any manner whatsoever without permission, restriction, + compensation, or attribution, whether for commercial or noncommercial + purposes. For details, see the GNU General Public License; a copy is + present in this directory in the file gnu.html. + diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..b7995f0 --- /dev/null +++ b/debian/dirs @@ -0,0 +1,4 @@ +etc +usr/share/man/man1 +usr/sbin +var/spool/gcpegg diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..c4b30fd --- /dev/null +++ b/debian/docs @@ -0,0 +1 @@ +README diff --git a/debian/gcpegg.1 b/debian/gcpegg.1 new file mode 100644 index 0000000..7546442 --- /dev/null +++ b/debian/gcpegg.1 @@ -0,0 +1,35 @@ +.TH GCPEGG 1 +.SH GCPEGG +gcpegg \- Global Consciousness Project REG Software +.SH SYNOPSIS +.B basket +.br +.B eggsh +.br +.B regtest +.br +.SH "DESCRIPTION" +These programs are the pieces needed to host a REG for the Global +Consciousness Project. The sourcecode ships with essentially no +documentation, this manual page has been written for Debian GNU/Linux +to provide the briefest of overviews. + +.SH "COMMANDS" + +The +.BR eggsh +program is the main data collection and transmission program. It is +launched at boot and runs persistently. Is is configured using the +/etc/eggrc file. + +The +.B basket +command is the data collector, and is not normally needed by an EGG +site. + +The +.B regtest +command provides a simple test of REG operation. + +.SH "SEE ALSO" +.B http://noosphere.princeton.edu diff --git a/debian/init.d b/debian/init.d new file mode 100644 index 0000000..3c38511 --- /dev/null +++ b/debian/init.d @@ -0,0 +1,33 @@ +#!/bin/sh + +set -e + +test -f /usr/sbin/eggsh || exit 0 +test -d /var/spool/gcpegg || exit 0 + +cd /var/spool/gcpegg + +case "$1" in + start) + echo -n "Starting GCP EGG software on virtual terminal 8: eggsh" + openvt -c 8 eggsh + echo "." + ;; + stop) + echo -n "Stopping GCP EGG software: eggsh" + start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/eggsh + echo "." + ;; + reload|force-reload|restart) + echo -n "Restarting GCP EGG software on virtual terminal 8..." + start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/eggsh + openvt -c 8 eggsh + echo "done." + ;; + *) + echo "Usage: /etc/init.d/gcpegg {start|stop|reload|force-reload|restart}" + exit 1 + ;; +esac + +exit 0 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..d7d863e --- /dev/null +++ b/debian/rules @@ -0,0 +1,74 @@ +#!/usr/bin/make -f +# MAde with the aid of dh_make, by Craig Small +# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. +# Some lines taken from debmake, by Cristoph Lameter. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: build-stamp +build-stamp: + dh_testdir + $(MAKE) + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp install-stamp + -$(MAKE) clean + dh_clean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + /usr/bin/install -o root -g root -m 0755 eggsh debian/tmp/usr/sbin + /usr/bin/install -o root -g root -m 0755 regtest debian/tmp/usr/sbin + /usr/bin/install -o root -g root -m 0755 basket debian/tmp/usr/sbin + /usr/bin/install -o root -g root -m 0644 eggrc.sample \ + debian/tmp/etc/eggrc + /usr/bin/install -o root -g root -m 0644 debian/gcpegg.1 \ + debian/tmp/usr/share/man/man1/gcpegg.1 + gzip -9 debian/tmp/usr/share/man/man1/gcpegg.1 + ( cd debian/tmp/usr/share/man/man1 ; \ + ln gcpegg.1.gz basket.1.gz ;\ + ln gcpegg.1.gz eggsh.1.gz ;\ + ln gcpegg.1.gz regtest.1.gz ) + touch install-stamp + +# 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_testversion + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installemacsen + dh_installinit + dh_installcron + dh_installmanpages +# dh_undocumented + dh_installchangelogs + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol +# dh_makeshlibs + dh_md5sums + dh_builddeb + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary diff --git a/eggrc.sample b/eggrc.sample index b8c44bc..3fd961d 100644 --- a/eggrc.sample +++ b/eggrc.sample @@ -58,8 +58,8 @@ #BASKET diesse 193.8.230.134 # noosphere -> diesse -EGG noosphere 28 128.112.35.133 diesse PERM 1 -BASKET diesse 193.8.230.134 +#EGG noosphere 28 128.112.35.133 diesse PERM 1 +#BASKET diesse 193.8.230.134 # throop -> diesse #EGG throop 1003 193.8.230.132 diesse PERM 1 http://www.fourmilab.ch/ @@ -78,9 +78,16 @@ BASKET diesse 193.8.230.134 #BASKET tonga 209.157.90.137 #BASKET tonga1 209.157.90.138 -PROTOCOL 10 10 6 200 +#PROTOCOL 10 10 6 200 #REG PEAR 2 9600 -REG PSEUDO 1 9600 +#REG PSEUDO 1 9600 #REG ORION 1 9600 -NETUP pppscript up -NETDOWN pppscript down +#NETUP pppscript up +#NETDOWN pppscript down + +egg.host.name ID# IP_address noosphere PERM 1 +BASKET noosphere 128.112.35.133 +PROTOCOL 10 10 30 200 +REG ORION 0 9600 +#REG PEAR 0 9600 + diff --git a/eggui.c b/eggui.c index 6404456..80a1270 100644 --- a/eggui.c +++ b/eggui.c @@ -37,6 +37,8 @@ #include #include #include +#include +#include /* Curses takes it upon itself to define TRUE and FALSE, incompatibly, as it happens, with the definitions in diff --git a/reg_pseudo.c b/reg_pseudo.c index bd35883..9bf5cfd 100644 --- a/reg_pseudo.c +++ b/reg_pseudo.c @@ -27,6 +27,7 @@ #include #include +#include #include "global.h" #include "genlib.h" diff --git a/sample.eggrc b/sample.eggrc index b8c44bc..3fd961d 100644 --- a/sample.eggrc +++ b/sample.eggrc @@ -58,8 +58,8 @@ #BASKET diesse 193.8.230.134 # noosphere -> diesse -EGG noosphere 28 128.112.35.133 diesse PERM 1 -BASKET diesse 193.8.230.134 +#EGG noosphere 28 128.112.35.133 diesse PERM 1 +#BASKET diesse 193.8.230.134 # throop -> diesse #EGG throop 1003 193.8.230.132 diesse PERM 1 http://www.fourmilab.ch/ @@ -78,9 +78,16 @@ BASKET diesse 193.8.230.134 #BASKET tonga 209.157.90.137 #BASKET tonga1 209.157.90.138 -PROTOCOL 10 10 6 200 +#PROTOCOL 10 10 6 200 #REG PEAR 2 9600 -REG PSEUDO 1 9600 +#REG PSEUDO 1 9600 #REG ORION 1 9600 -NETUP pppscript up -NETDOWN pppscript down +#NETUP pppscript up +#NETDOWN pppscript down + +egg.host.name ID# IP_address noosphere PERM 1 +BASKET noosphere 128.112.35.133 +PROTOCOL 10 10 30 200 +REG ORION 0 9600 +#REG PEAR 0 9600 + -- 2.30.2