--- /dev/null
+If the EGG computer is behind a firewall, it must be programmed
+to allow UDP packets on port 2510 outgoing packet and UDP port
+1105 for an incoming connection.
+
+This allows the bidirectional communication required for the data
+to be transmitted. What happens is that your program sends an
+"awake" packet when it has unsent data. The server in Princeton
+responds with a "data request" packet, and then the EGG program
+will send the data.
+
+ - - - - -
+
+This package is known to compile but not run successfully on at
+least the amd64 architecture. The only architecture it has really
+been tested on is i386... If anyone is sufficiently motivated
+to chase down and fix whatever the problem is, patches would be
+welcomed!
+gcpegg (5.1-8) unstable; urgency=low
+
+ * move to newer debhelper compatibility level, closes: #328793, #359417
+ * add -f to openvt invocation in init.d, and create a README.debian with
+ firewalling information, at suggestion of Fernando Lucas Rodriguez
+ * improve the existence check in init.d, addresses part of 347778
+ * add text to README.debian about know problems on at least amd64
+
+ -- Bdale Garbee <bdale@gag.com> Fri, 14 Apr 2006 23:32:30 -0600
+
gcpegg (5.1-7) unstable; urgency=low
* change build dependency to use libncurses-dev, closes: #101655
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
Section: misc
Priority: optional
Maintainer: Bdale Garbee <bdale@gag.com>
-Build-Depends: debhelper, libncurses-dev
-Standards-Version: 3.1.1.1
+Build-Depends: debhelper (>= 5), libncurses-dev
+Standards-Version: 3.6.2.1
Package: gcpegg
Architecture: any
It was downloaded from http://noosphere.princeton.edu/
-Upstream Author(s): Greg Nelson
+Upstream Author: Greg Nelson
Copyright:
purposes. For details, see the GNU General Public License; a copy is
present in this directory in the file gnu.html.
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+
etc
usr/share/man/man1
usr/sbin
+usr/share/lintian/overrides
var/spool/gcpegg
.TH GCPEGG 1
-.SH GCPEGG
+.SH NAME
gcpegg \- Global Consciousness Project REG Software
.SH SYNOPSIS
.B basket
set -e
-test -f /usr/sbin/eggsh || exit 0
+test -x /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
+ openvt -f -c 8 eggsh
echo "."
;;
stop)
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
+ openvt -f -c 8 eggsh
echo "done."
;;
*)
#!/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
+export DH_VERBOSE=1
build: build-stamp
build-stamp:
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 0755 eggsh debian/gcpegg/usr/sbin
+ /usr/bin/install -o root -g root -m 0755 regtest debian/gcpegg/usr/sbin
+ /usr/bin/install -o root -g root -m 0755 basket debian/gcpegg/usr/sbin
/usr/bin/install -o root -g root -m 0644 eggrc.sample \
- debian/tmp/etc/eggrc
+ debian/gcpegg/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 ; \
+ debian/gcpegg/usr/share/man/man1/gcpegg.1
+ gzip -9 debian/gcpegg/usr/share/man/man1/gcpegg.1
+ ( cd debian/gcpegg/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 )
# 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_installdeb
dh_shlibdeps
dh_gencontrol
-# dh_makeshlibs
dh_md5sums
dh_builddeb
#include "byteorder.h" /* Build byte-order independent version */
/* Good for i386, but be careful... */
+#ifdef linux
+#include <sys/types.h>
+typedef __u8 byte;
+typedef __u8 uint8;
+typedef __u16 uint16;
+typedef __u32 uint32;
+typedef __s8 int8;
+typedef __s16 int16;
+typedef __s32 int32;
+#else
typedef unsigned char byte;
typedef unsigned char uint8;
typedef unsigned short uint16;
typedef char int8;
typedef short int16;
typedef long int32;
+#endif /* linux */
/* Some fixed assumptions:
Trial type is always bitsum.
size = sizeof(*sin);
count = recvfrom(sd, buffer, MAXBUFSIZE, 0,
- (struct sockaddr *)sin, (int *)&size);
+ (struct sockaddr *)sin, (socklen_t *)&size);
if (count < 0) {
/* Don't wait for it. */
if (errno == EWOULDBLOCK) return ERR_COMM_TMOUT;
}
if ((TTY_fd = open(argv[1], O_RDWR | O_NDELAY)) < 0) {
- fprintf(stderr, "%s: %s\n", argv[1], sys_errlist[errno]);
+ fprintf(stderr, "%s: %s\n", argv[1], strerror(errno));
exit(1);
}