--- /dev/null
+#
+# Current protocol for egg
+#
+# PROTOCOL <samp_rec> <sec_rec> <rec_pkt> <trialsz>
+PROTOCOL 10 10 6 200
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
+#include <time.h>
#include "global.h"
#include "genlib.h"
#include "storage.h"
--- /dev/null
+#
+# Current protocol for egg
+#
+# PROTOCOL <samp_rec> <sec_rec> <rec_pkt> <trialsz>
+PROTOCOL 10 10 30 200
--- /dev/null
+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 <bdale@gag.com> 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 <bdale@gag.com> 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 <bdale@gag.com> Wed, 15 Dec 1999 17:39:17 -0700
+
+gcpegg (5.1-4) unstable; urgency=low
+
+ * add a missing item to build dependencies
+
+ -- Bdale Garbee <bdale@gag.com> Sun, 5 Dec 1999 20:41:31 -0700
+
+gcpegg (5.1-3) unstable; urgency=low
+
+ * update to current policy
+
+ -- Bdale Garbee <bdale@gag.com> 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 <bdale@gag.com> 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 <bdale@gag.com> Sun, 9 May 1999 20:06:40 -0600
+
+Local variables:
+mode: debian-changelog
+add-log-mailing-address: "bdale@gag.com"
+End:
--- /dev/null
+/etc/eggrc
+/etc/init.d/gcpegg
--- /dev/null
+Source: gcpegg
+Section: misc
+Priority: optional
+Maintainer: Bdale Garbee <bdale@gag.com>
+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.
--- /dev/null
+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.
+
--- /dev/null
+etc
+usr/share/man/man1
+usr/sbin
+var/spool/gcpegg
--- /dev/null
+.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
--- /dev/null
+#!/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
--- /dev/null
+#!/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
#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/
#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
+
#include <stdio.h>
#include <stdlib.h>
#include <curses.h>
+#include <time.h>
+#include <string.h>
/* Curses takes it upon itself to define TRUE and FALSE,
incompatibly, as it happens, with the definitions in
#include <stdio.h>
#include <unistd.h>
+#include <time.h>
#include "global.h"
#include "genlib.h"
#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/
#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
+