+gcpegg (5.1-10) unstable; urgency=low
+
+ * add a purge target to the init.d script, closes: #367123
+ * merge patch that adds support for Debian/kfreebsd, closes: #414405
+ * rename 'basket' to 'gcpbasket' to avoid package conflict, closes: #420632
+ * add LSB structure to init.d
+ * update standards version
+
+ -- Bdale Garbee <bdale@gag.com> Sat, 28 Apr 2007 11:01:23 -0600
+
gcpegg (5.1-9) unstable; urgency=low
* use fully qualified pathnames in init.d, addresses another part of 347778
Priority: optional
Maintainer: Bdale Garbee <bdale@gag.com>
Build-Depends: debhelper (>= 5), libncurses-dev
-Standards-Version: 3.6.2.1
+Standards-Version: 3.7.2
Package: gcpegg
Architecture: any
.SH NAME
gcpegg \- Global Consciousness Project REG Software
.SH SYNOPSIS
-.B basket
+.B gcpbasket
.br
.B eggsh
.br
/etc/eggrc file.
The
-.B basket
+.B gcpbasket
command is the data collector, and is not normally needed by an EGG
site.
#!/bin/sh
+### BEGIN INIT INFO
+# Provides: gcpegg
+# Required-Start: $local_fs
+# Required-Stop:
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Start GCP EGG software on virtual terminal 8
+### END INIT INFO
+
set -e
test -x /usr/sbin/eggsh || exit 0
/usr/bin/openvt -f -c 8 /usr/sbin/eggsh
echo "done."
;;
+ purge)
+ echo -n "Purging all previously generated data by GCP EGG"
+ rm -r /var/spool/gcpegg/*
+ echo "done."
+ ;;
*)
- echo "Usage: /etc/init.d/gcpegg {start|stop|reload|force-reload|restart}"
+ echo "Usage: /etc/init.d/gcpegg {start|stop|reload|force-reload|restart|purge}"
exit 1
;;
esac
dh_installdirs
/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 0755 basket \
+ debian/gcpegg/usr/sbin/gcpbasket
/usr/bin/install -o root -g root -m 0644 eggrc.sample \
debian/gcpegg/etc/eggrc
/usr/bin/install -o root -g root -m 0644 debian/gcpegg.1 \
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 gcpbasket.1.gz ;\
ln gcpegg.1.gz eggsh.1.gz ;\
ln gcpegg.1.gz regtest.1.gz )
touch install-stamp
#else
res = cfsetospeed(&tt, baudcon);
cfmakeraw(&tt);
+#if !defined(__FreeBSD_kernel__)
tt.c_oflag &= (~(TABDLY | ONLCR));
+#endif
#endif
res = tcsetattr(TTY_fd, TCSANOW, &tt);
#else
res = cfsetospeed(&tt, baudcon);
cfmakeraw(&tt);
+#if !defined(__FreeBSD_kernel__)
tt.c_oflag &= (~(TABDLY | ONLCR));
+#endif
#endif
res = tcsetattr(TTY_fd, TCSANOW, &tt);
#define __USE_BSD
#include <errno.h>
#undef __USE_BSD
+#if defined(__FreeBSD_kernel__)
+/* Not patching the code directly, used once, in a "|" context */
+#define O_NDELAY 0
+#endif
#include <sys/types.h>
#include <sys/stat.h>
res = tcgetattr(TTY_fd, &tt);
res = cfsetospeed(&tt, baud);
cfmakeraw(&tt);
+#if !defined(__FreeBSD_kernel__)
tt.c_oflag &= (~(TABDLY | ONLCR));
+#endif
res = tcsetattr(TTY_fd, TCSANOW, &tt);
mean = 0;