Imported Debian patch 5.1-7 debian/5.1-7
authorBdale Garbee <bdale@gag.com>
Mon, 23 Jul 2001 05:59:25 +0000 (23:59 -0600)
committerBdale Garbee <bdale@gag.com>
Tue, 20 May 2008 05:11:09 +0000 (23:11 -0600)
16 files changed:
.eggprotocolrc [new file with mode: 0644]
basket.c
debian/.eggprotocolrc [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/conffiles [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/dirs [new file with mode: 0644]
debian/docs [new file with mode: 0644]
debian/gcpegg.1 [new file with mode: 0644]
debian/init.d [new file with mode: 0644]
debian/rules [new file with mode: 0755]
eggrc.sample
eggui.c
reg_pseudo.c
sample.eggrc

diff --git a/.eggprotocolrc b/.eggprotocolrc
new file mode 100644 (file)
index 0000000..10007d7
--- /dev/null
@@ -0,0 +1,5 @@
+#
+#  Current protocol for egg
+#
+#   PROTOCOL <samp_rec> <sec_rec> <rec_pkt> <trialsz>
+PROTOCOL 10 10 6 200
index abd33c63275439c643549a3290b29a99feb89e6e..487072bf798dd3b75fb5e1d57a7d984ae883dedc 100644 (file)
--- a/basket.c
+++ b/basket.c
@@ -42,6 +42,7 @@
 #include <sys/socket.h>
 #include <netdb.h>
 #include <netinet/in.h>
+#include <time.h>
 #include "global.h"
 #include "genlib.h"
 #include "storage.h"
diff --git a/debian/.eggprotocolrc b/debian/.eggprotocolrc
new file mode 100644 (file)
index 0000000..a048ddb
--- /dev/null
@@ -0,0 +1,5 @@
+#
+#  Current protocol for egg
+#
+#   PROTOCOL <samp_rec> <sec_rec> <rec_pkt> <trialsz>
+PROTOCOL 10 10 30 200
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..85c3abe
--- /dev/null
@@ -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 <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:
diff --git a/debian/conffiles b/debian/conffiles
new file mode 100644 (file)
index 0000000..1a1c11f
--- /dev/null
@@ -0,0 +1,2 @@
+/etc/eggrc
+/etc/init.d/gcpegg
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..782c537
--- /dev/null
@@ -0,0 +1,22 @@
+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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..9d2b535
--- /dev/null
@@ -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 (file)
index 0000000..b7995f0
--- /dev/null
@@ -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 (file)
index 0000000..c4b30fd
--- /dev/null
@@ -0,0 +1 @@
+README 
diff --git a/debian/gcpegg.1 b/debian/gcpegg.1
new file mode 100644 (file)
index 0000000..7546442
--- /dev/null
@@ -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 (file)
index 0000000..3c38511
--- /dev/null
@@ -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 (executable)
index 0000000..d7d863e
--- /dev/null
@@ -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
index b8c44bcdd45f6b1533b8b2a64df0f33c6eb222e0..3fd961dc73ccbc90f49d79fee03482d285c4775a 100644 (file)
@@ -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 6404456b2fd1728fde9573b4c04d66fc6ef68e54..80a1270d20b7348eccd7a1ab8a065bc7d0340a7c 100644 (file)
--- a/eggui.c
+++ b/eggui.c
@@ -37,6 +37,8 @@
 #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
index bd3588314ff905de0892627ab06ba5358ab71934..9bf5cfd99f9f58c396b984919d567b99c92668cd 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <stdio.h>
 #include <unistd.h>
+#include <time.h>
 
 #include "global.h"
 #include "genlib.h"
index b8c44bcdd45f6b1533b8b2a64df0f33c6eb222e0..3fd961dc73ccbc90f49d79fee03482d285c4775a 100644 (file)
@@ -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
+