--- p10cfgd-1.0.orig/p10cfgd +++ p10cfgd-1.0/p10cfgd @@ -1,6 +1,6 @@ #!/usr/bin/perl 'di '; -'ig00 '; +'ig 00 '; # #* #* Copyright (c) 1993, 1995 by Colorado Digital Eclectics (CODE) @@ -165,7 +165,7 @@ # These next few lines are legal in both Perl and nroff. -.00; # finish .ig +.00 ; # finish .ig 'di \" finish diversion--previous line must be blank .nr nl 0-1 \" fake up transition to first page again --- p10cfgd-1.0.orig/debian/p10cfgd.lintian +++ p10cfgd-1.0/debian/p10cfgd.lintian @@ -0,0 +1 @@ +p10cfgd: manpage-has-errors-from-man usr/share/man/man1/p10cfgd.1.gz 3: warning: `ig00' not defined (probable missing space after `ig') --- p10cfgd-1.0.orig/debian/control +++ p10cfgd-1.0/debian/control @@ -1,13 +1,17 @@ Source: p10cfgd Section: hamradio Priority: extra -Maintainer: Bdale Garbee -Standards-Version: 2.1.0.0 +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Bdale Garbee +Build-Depends: debhelper (>= 5) +Standards-Version: 3.9.3 +Vcs-Git: git://git.gag.com/debian/p10cfgd +Vcs-Browser: http://git.gag.com/?p=debian/p10cfgd Package: p10cfgd Architecture: all -Depends: netbase (>=1.23), perl -Description: Remote configuration daemon for Gracilis Packeten. +Depends: netbase (>=1.23), perl5, update-inetd, openbsd-inetd | inet-superserver, ${misc:Depends} +Description: Remote configuration daemon for Gracilis Packeten The 'p10cfgd' daemon provides support for the 'rmtcfg' command in the Gracilis Packeten amateur radio network packet switch. With this daemon, and appropriate entries in the non-volatile configuration memory of a --- p10cfgd-1.0.orig/debian/dirs +++ p10cfgd-1.0/debian/dirs @@ -0,0 +1,4 @@ +usr/sbin +usr/share/doc +usr/share/lintian/overrides +usr/share/man/man1 --- p10cfgd-1.0.orig/debian/changelog +++ p10cfgd-1.0/debian/changelog @@ -1,3 +1,94 @@ +p10cfgd (1.0-14ubuntu1) raring; urgency=low + + * Merge from Debian unstable. Remaining changes: + - Add openbsd-inetd | inet-superserver dependencies, as p10cfgd needs + an inet server to work. + + -- Logan Rosen Thu, 29 Nov 2012 14:12:24 -0500 + +p10cfgd (1.0-14) unstable; urgency=low + + * add Vcs entries to the control file + * move gbp.conf to .git + + -- Bdale Garbee Fri, 29 Jun 2012 07:13:03 -0600 + +p10cfgd (1.0-13ubuntu1) jaunty; urgency=low + + * Merge from Debian unstable, remaining Ubuntu changes: + - Add openbsd-inetd | inet-superserver dependencies as p10cfgd needs + an inet server to work. + + -- Luca Falavigna Tue, 11 Nov 2008 18:19:53 +0100 + +p10cfgd (1.0-13) unstable; urgency=low + + * add dependency on update-inetd, closes: #502832 + + -- Bdale Garbee Mon, 20 Oct 2008 20:34:10 +0200 + +p10cfgd (1.0-12ubuntu2) intrepid; urgency=low + + * debian/control: + - Update Maintainer field as per spec (LP: #230350). + + -- Luca Falavigna Fri, 23 May 2008 06:54:33 +0000 + +p10cfgd (1.0-12ubuntu1) feisty; urgency=low + + * debian/control: Add update-inetd to p10cfgd's dependencies + (Closes Ubuntu: #76124). + * debian/control: Add openbsd-inetd | inet-superserver dependencies + as p10cfgd needs an inet server to work + + -- Lionel Porcheron Sun, 17 Dec 2006 12:47:23 +0100 + +p10cfgd (1.0-12) unstable; urgency=low + + * fresh build resolving policy issues, closes: #359548 + + -- Bdale Garbee Sat, 15 Apr 2006 00:44:08 -0600 + +p10cfgd (1.0-11) unstable; urgency=low + + * update to current standards, clear lintian report + + -- Bdale Garbee Tue, 1 Jan 2002 10:39:47 -0700 + +p10cfgd (1.0-10) unstable; urgency=low + + * update to latest standards, add Build-Depends, move to FHS + + -- Bdale Garbee Fri, 7 Jan 2000 20:32:57 -0700 + +p10cfgd (1.0-9) unstable; urgency=low + + * update control file to depend on perl5 instead of perl, per new perl policy + + -- Bdale Garbee Sat, 17 Jul 1999 17:46:21 -0600 + +p10cfgd (1.0-7) unstable; urgency=low + + * fixing minor problem with .orig.tar.gz file + * moving to cvs and updating a few details in the process + + -- Bdale Garbee Sun, 20 Jun 1999 08:02:21 -0600 + +p10cfgd (1.0-6) unstable; urgency=low + + * address lintian errors + * move from debstd to debhelper + + -- Bdale Garbee Tue, 10 Feb 1998 00:37:22 -0700 + +p10cfgd (1.0-5) unstable; urgency=low + + * Move executable to /usr/sbin, make it executable. Closes bug 8281. + * Include some 'expect' scripts in examples directory showing how to extract + stats from a Packeten. + + -- Bdale Garbee Sun, 27 Apr 1997 23:47:13 -0600 + p10cfgd (1.0-4) unstable; urgency=low * New package format. --- p10cfgd-1.0.orig/debian/rules +++ p10cfgd-1.0/debian/rules @@ -1,58 +1,50 @@ #!/usr/bin/make -f -# Sample debian.rules file - for GNU Hello (1.3). -# Copyright 1994,1995 by Ian Jackson. -# I hereby give you perpetual unlimited permission to copy, -# modify and relicense this file, provided that you do not remove -# my name from the file itself. (I assert my moral right of -# paternity under the Copyright, Designs and Patents Act 1988.) -# This file may have to be extensively modified - -# There used to be `source' and `diff' targets in this file, and many -# packages also had `changes' and `dist' targets. These functions -# have been taken over by dpkg-source, dpkg-genchanges and -# dpkg-buildpackage in a package-independent way, and so these targets -# are obsolete. - -package=p10cfgd - -build: - $(checkdir) - touch build + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: build-arch build-indep +build-arch: build-stamp +build-indep: build-stamp +build-stamp: + dh_testdir + touch build-stamp clean: - $(checkdir) - -rm -f build - -rm -rf *~ debian/tmp debian/*~ debian/files* - -binary-indep: checkroot build - $(checkdir) - -binary-arch: checkroot build - $(checkdir) - -rm -rf debian/tmp - install -d debian/tmp/usr/bin debian/tmp/usr/man/man1 - install -g root -m 755 -o root p10cfgd debian/tmp/usr/bin/p10cfgd + dh_testdir + dh_testroot + rm -f build-stamp + dh_clean + +binary-indep: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + install -g root -m 755 -o root p10cfgd debian/p10cfgd/usr/sbin/p10cfgd install -g root -m 644 -o root p10cfgd \ - debian/tmp/usr/man/man1/p10cfgd.1 - debstd $(package) CHANGES INSTALL README* TODO - dpkg-gencontrol - chown -R root.root debian/tmp - chmod -R g-ws debian/tmp - dpkg --build debian/tmp .. - -define checkdir - test -f debian/rules -endef + debian/p10cfgd/usr/share/man/man1/p10cfgd.1 + install -o root -g root -m 0644 debian/p10cfgd.lintian \ + debian/p10cfgd/usr/share/lintian/overrides/p10cfgd + dh_installdocs + dh_installexamples examples/* + dh_installmenu + dh_installcron + dh_installchangelogs + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb -# Below here is fairly generic really -binary: binary-indep binary-arch +binary-arch: build -source diff: +source diff: @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false -checkroot: - $(checkdir) - test root = "`whoami`" - -.PHONY: binary binary-arch binary-indep clean checkroot +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary --- p10cfgd-1.0.orig/debian/prerm +++ p10cfgd-1.0/debian/prerm @@ -1,6 +1,7 @@ -#! /bin/bash +#! /bin/bash -e # clean up the /etc/inetd.conf file -update-inetd --disable rmtcfg +update-inetd --remove rmtcfg +#DEBHELPER# --- p10cfgd-1.0.orig/debian/compat +++ p10cfgd-1.0/debian/compat @@ -0,0 +1 @@ +5 --- p10cfgd-1.0.orig/debian/postinst +++ p10cfgd-1.0/debian/postinst @@ -1,7 +1,7 @@ -#! /bin/bash +#! /bin/bash -e # add our entry to the /etc/inetd.conf file -update-inetd --group "HAM-RADIO" --add "rmtcfg stream tcp nowait root /usr/bin/p10cfgd p10cfgd" - +update-inetd --group "HAM-RADIO" --add "rmtcfg stream tcp nowait root /usr/sbin/p10cfgd p10cfgd" +#DEBHELPER# --- p10cfgd-1.0.orig/examples/stats/ppstats +++ p10cfgd-1.0/examples/stats/ppstats @@ -0,0 +1,39 @@ +#!/usr/local/bin/expect -- +# a dumb little 'expect' program to check the status of ppfma.ampr.org + +set timeout 5 +set addr "44.32.4.2" +set call "N3EUA-8" +set pass "" +set prompt "cos>*" + +puts [timestamp -format %c] ;# time tag the output + +spawn telnet $addr +expect "login: " { send "$call\r" } +expect "word: " { send "$pass\r" } + +expect "NET/ROM*" { send "j ax0\r" } ;# for now we will just look at ax0 + +expect { ;# no easy way to tell that the list is + ;# complete so we'll just time out + "NET/WRONG*" {} ;# looking for we can't find. + } + +expect "*" { send "\r@\r" };# flush the expect buffer and go to sysop + +expect $prompt { send "uptime\r" } +expect $prompt { send "syncstat\r" } +expect $prompt { send "asystat\r" } +expect $prompt { send "exit\r" } + +expect "mode...*" { } + +expect "*" { send "\rb\r" };# flush the expect buffer and signoff + +expect "closed*" ;# wait for the connection to close + +exec sleep 3 + +expect eof + --- p10cfgd-1.0.orig/examples/stats/telpp +++ p10cfgd-1.0/examples/stats/telpp @@ -0,0 +1,31 @@ +#!/usr/local/bin/expect -- +# a dumb little 'expect' program to check the heard list on ppfma.ampr.org + +set timeout 15 + +puts [timestamp -format %c] ;# time tag the output + +spawn telnet 44.32.4.2 +expect "login: " { send "wd0fhg\r" } + +expect "NET/ROM*" { send "j\r" } ;# for now we will just look at all + +expect { ;# no easy way to tell that the list is + ;# complete so we'll just time out + "NET/WRONG*" {} ;# looking for we can't find. + } + +expect "*" { send "\r\r" };# flush the expect buffer + +expect "*" { send "c ax4 w0lkd-1\r" } :# try to connect on .01 + +expect "Connected" {send "\rb\r" } ;# just try the connection + +expect "*" { send "\rb\r" };# flush the expect buffer and signoff + +expect "closed*" ;# wait for the connection to close + +exec sleep 3 + +expect eof + --- p10cfgd-1.0.orig/examples/stats/fhg1106.sts +++ p10cfgd-1.0/examples/stats/fhg1106.sts @@ -0,0 +1,77 @@ +Mon Nov 6 16:08:17 1995 +spawn telnet 44.32.0.32 +Trying 44.32.0.32... +Connected to 44.32.0.32. +Escape character is '^]'. + +Gracilis NOS302 (gw.wd0fhg) + +Callsign / login: WD0FHG +Password: + + +Gracilis NOS302 NET/ROM Emulator +j +ax4: +Callsign Last Heard Packets Callsign Last Heard Packets +WD0FHG 0:00:03:23 14 +A6YKE0-1 0:05:56:56 1 WA6YKE 0:05:20:06 176 +N0UOD 0:00:11:44 912 K0YUM 0:05:23:34 10 +KE0GB-1 0:00:13:27 7025 N0NJY-2 0:00:01:06 2720 +KE0GB 0:19:28:27 7 KB0KQH-3 0:00:12:59 4596 +N0NJY 0:00:05:12 1970 K0QDF 0:20:22:06 355 +ax1: +Callsign Last Heard Packets Callsign Last Heard Packets +WD0FHG 0:00:09:16 9 +WA6YKE 0:05:23:36 3 K0YUM 0:00:07:09 16045 +KE0GB-1 0:00:03:53 34343 KE0GB 0:17:26:03 65 +N0IAK 0:00:05:33 38735 N3EUA-8 0:00:09:39 3912 +N0QCU 0:00:36:54 260 +@ +The escape character is: CTRL-X +$empire>uptime +Time since last system restart: 1 Week(s), 3 Days, 02:17:08 +$empire>syncstat +PackeTen Switch Sync Channel Statistics + +68302 RxChars RxPacks Rxerrs Aborts RxBf Txchars TxPacks TxUns RxNoBf +----- --------- ------- ------ ------ ---- --------- ------- ----- ------ + 1 14976052 189537 7185 59938 8 93915 1580 0 +0 + +8530 RxChars RxPacks Rxerrs Aborts RxBf Txchars TxPacks TxUns RxNoBf +----- --------- ------- ------ ------ ---- --------- ------- ----- ------ + 4 2394020 21908 1685 16012 3 139103 1878 1 +0 + +$empire>asystat +PackeTen Switch Async Channel Statistics + +Dev Name 302 RxChars TxChars Overruns FramingErrs +-------- ---- --------- --------- -------- ----------- + sl0 0 0 0 0 0 + sl2 2 121948 180044 0 0 + + +$empire>dom db +ppfma.ampr.org. 480000 IN A 44.32.4.2 +ke0gb.ampr.org. 480000 IN A 44.32.4.80 +k0yum.ampr.org. 86400 IN A 44.20.15.195 +$empire>route +Dest Len Interface Gateway Metric P Timer Use +44.32.0.33 32 sl0 1 0 0 +44.32.0.34 32 sl2 1 0 2661 +44.32.0.2 32 ax1 44.32.4.1 1 0 1 +44.32.0.80 30 ax1 44.32.4.80 1 0 0 +44.20.0.192 29 ax1 44.32.4.192 1 0 10 +44.32.0.72 29 ax1 44.32.4.72 1 0 0 +44.32.0.0 28 ax1 44.32.4.1 1 0 0 +44.32.4.0 24 ax1 1 0 1017 +44.32.0.0 23 ax4 1 0 427 +44.20.0.0 16 ax1 44.32.4.16 1 0 401 +default 0 ax1 44.32.4.16 1 0 0 +$empire>exit +Leaving Sysop mode... + +b +Connection closed by foreign host. --- p10cfgd-1.0.orig/examples/stats/pp1106.sts +++ p10cfgd-1.0/examples/stats/pp1106.sts @@ -0,0 +1,52 @@ +non Nov 6 16:08:49 1995 +spawn telnet 44.32.4.2 +Trying 44.32.4.2... +Connected to 44.32.4.2. +Escape character is '^]'. + +Gracilis NOS302 (ppfma) + +Callsign / login: N3EUA-8 +Password: + + +Gracilis NOS302 NET/ROM Emulator +j ax0 +ax0: +Callsign Last Heard Packets Callsign Last Heard Packets +N3EUA-8 0:00:00:00 15 +K0YUM 0:00:07:44 812 KE0GB-1 0:00:04:29 33105 +N0IAK 0:00:06:09 37363 WD0FHG 0:00:00:00 43 +N0QCU 0:00:37:30 89 + +@ +The escape character is: CTRL-X +$cos>uptime +Time since last system restart: 1 Week(s), 1 Days, 19:05:50 +$cos>syncstat +PackeTen Switch Sync Channel Statistics + +68302 RxChars RxPacks Rxerrs Aborts RxBf Txchars TxPacks TxUns RxNoBf +----- --------- ------- ------ ------ ---- --------- ------- ----- ------ + 0 14454936 171144 33867 25599 8 302487 3021 0 +0 + +8530 RxChars RxPacks Rxerrs Aborts RxBf Txchars TxPacks TxUns RxNoBf +----- --------- ------- ------ ------ ---- --------- ------- ----- ------ + 4 23567157 565579 144553 544228 3 882763 27605 0 +0 + +Channel 1 is UN-attached +Channel 2 is UN-attached +$cos>asystat +PackeTen Switch Async Channel Statistics + + +Channel 1 is UN-attached +Channel 2 is UN-attached + +$cos>exit +Leaving Sysop mode... + +b +Connection closed by foreign host. --- p10cfgd-1.0.orig/examples/stats/README +++ p10cfgd-1.0/examples/stats/README @@ -0,0 +1,9 @@ +These are some simple 'expect' scripts written by John Conner WD0FHG to help +gather stats from Packeten switches, along with sample outputs from some of +the scripts. + +These will require substantial modification for use in other environments, but +hopefully get the point across that interacting with a switch using 'expect' +is pretty easy. + +Bdale --- p10cfgd-1.0.orig/examples/stats/fhgstats +++ p10cfgd-1.0/examples/stats/fhgstats @@ -0,0 +1,41 @@ +#!/usr/local/bin/expect -- +# a dumb little 'expect' program to check the status of gw.wd0fhg.ampr.org + +set timeout 5 +set addr "44.32.0.32" +set call "WD0FHG" +set pass "" +set prompt "empire>*" + +puts [timestamp -format %c] ;# time tag the output + +spawn telnet $addr +expect "login: " { send "$call\r" } +expect "word: " { send "$pass\r" } + +expect "NET/ROM*" { send "j \r" } ;# for now we will just look at ax0 + +expect { ;# no easy way to tell that the list is + ;# complete so we'll just time out + "NET/WRONG*" {} ;# looking for we can't find. + } + +expect "*" { send "\r@\r" };# flush the expect buffer and go to sysop + +expect $prompt { send "uptime\r" } +expect $prompt { send "syncstat\r" } +expect $prompt { send "asystat\r" } +expect $prompt { send "dom db\r" } +expect $prompt { send "route\r" } +expect $prompt { send "exit\r" } + +expect "mode...*" { } + +expect "*" { send "\rb\r" };# flush the expect buffer and signoff + +expect "closed*" ;# wait for the connection to close + +exec sleep 3 + +expect eof +