--- node-0.3.2.orig/configure +++ node-0.3.2/configure @@ -47,26 +47,10 @@ HAVENETROM="#undef" HAVEROSE="#undef" - echo -n "Include support for the AX.25 protocol ? [Y/n]: "; read answer - if [ "$answer" = "Y" -o "$answer" = "y" -o "$answer" = "" ] - then - HAVEAX25="#define" - fi - # - echo -n "Include support for the NetRom protocol ? [Y/n]: "; read answer - if [ "$answer" = "Y" -o "$answer" = "y" -o "$answer" = "" ] - then - HAVEAX25="#define" - HAVENETROM="#define" - fi - # - echo -n "Include support for the Rose protocol ? [Y/n]: "; read answer - if [ "$answer" = "Y" -o "$answer" = "y" -o "$answer" = "" ] - then - HAVEAX25="#define" - HAVEROSE="#define" - fi - + echo "Using defaults: including support for AX25, NetRom and Rose" + HAVEAX25="#define" + HAVENETROM="#define" + HAVEROSE="#define" echo "Creating Makefile.include" sed -e "s~@ARCH@~$ARCH~g; \ --- node-0.3.2.orig/Makefile +++ node-0.3.2/Makefile @@ -20,31 +20,35 @@ .c.o: $(CC) $(CFLAGS) -c $< -install: installbin installman installhelp - install -m 755 -o root -g root -d $(VAR_DIR)/node - install -m 644 -o root -g root etc/loggedin $(VAR_DIR)/node +install: installbin installconf installman installhelp + install -m 755 -o root -g root -d $(prefix)$(VAR_DIR)/node + install -m 644 -o root -g root etc/loggedin $(prefix)$(VAR_DIR)/node @rm -f /usr/bin/node @rm -f /usr/bin/nodeusers installbin: all - install -m 4755 -s -o root -g root node $(SBIN_DIR) - install -m 755 -s -o root -g root nodeusers $(SBIN_DIR) + install -m 755 -o root -g root -d $(prefix)$(SBIN_DIR) + install -m 4755 -s -o root -g root node $(prefix)$(SBIN_DIR)/ax25-node + install -m 755 -s -o root -g root nodeusers $(prefix)$(SBIN_DIR) installhelp: - install -m 755 -o root -g root -d $(LIB_DIR)/ax25/node/help - install -m 644 -o root -g root etc/help/*.hlp $(LIB_DIR)/ax25/node/help + install -m 755 -o root -g root -d $(prefix)$(LIB_DIR)/ax25/node/help + install -m 644 -o root -g root etc/help/*.hlp $(prefix)$(LIB_DIR)/ax25/node/help installconf: installhelp - install -m 755 -o root -g root -d $(ETC_DIR) - install -m 600 -o root -g root etc/node.conf $(ETC_DIR) - install -m 600 -o root -g root etc/node.perms $(ETC_DIR) - install -m 600 -o root -g root etc/node.motd $(ETC_DIR) + install -m 755 -o root -g root -d $(prefix)$(ETC_DIR) + install -m 600 -o root -g root etc/node.conf $(prefix)$(ETC_DIR) + install -m 600 -o root -g root etc/node.perms $(prefix)$(ETC_DIR) + install -m 600 -o root -g root etc/node.motd $(prefix)$(ETC_DIR) installman: - install -m 644 -o bin -g bin man/nodeusers.1 $(MAN_DIR)/man1 - install -m 644 -o bin -g bin man/node.conf.5 $(MAN_DIR)/man5 - install -m 644 -o bin -g bin man/node.perms.5 $(MAN_DIR)/man5 - install -m 644 -o bin -g bin man/node.8 $(MAN_DIR)/man8 + install -m 755 -o root -g root -d $(prefix)$(MAN_DIR)/man1 + install -m 644 -o bin -g bin man/nodeusers.1 $(prefix)$(MAN_DIR)/man1 + install -m 755 -o root -g root -d $(prefix)$(MAN_DIR)/man5 + install -m 644 -o bin -g bin man/node.conf.5 $(prefix)$(MAN_DIR)/man5 + install -m 644 -o bin -g bin man/node.perms.5 $(prefix)$(MAN_DIR)/man5 + install -m 755 -o root -g root -d $(prefix)$(MAN_DIR)/man8 + install -m 644 -o bin -g bin man/node.8 $(prefix)$(MAN_DIR)/man8/ax25-node.8 clean: rm -f *.o *~ *.bak *.orig --- node-0.3.2.orig/INSTALL +++ node-0.3.2/INSTALL @@ -37,23 +37,23 @@ Node is intended to be called from ax25d or inetd. It doesn't need any command line arguments but there is one to support incoming -compressed connects. See the node(8) manual page. +compressed connects. See the ax25-node(8) manual page. To run LinuxNode from ax25d, /etc/ax25/ax25d.conf should have something like this in it: # AX.25 [OH2BNS VIA 144] - default * * * * * * - root /usr/bin/node node + default * * * * * * - root /usr/sbin/ax25-node ax25-node # NETROM - default * * * * * * - root /usr/bin/node node + default * * * * * * - root /usr/sbin/ax25-node ax25-node /etc/inetd.conf could have something like this in it: # Set up LinuxNode to listen at telnet port - telnet stream tcp nowait root /usr/bin/node node + telnet stream tcp nowait root /usr/sbin/ax25-node ax25-node Note that LinuxNode should always be run as root. Otherwise outgoing connects won't work. Also ping needs a raw socket which requires root --- node-0.3.2.orig/.exrc +++ node-0.3.2/.exrc @@ -0,0 +1 @@ +set ts=4 --- node-0.3.2.orig/etc/node.conf +++ node-0.3.2/etc/node.conf @@ -12,11 +12,11 @@ # Visible hostname. Will be shown at telnet login. # -HostName oh2bns.ampr.org +HostName vk2lid.ampr.org # Node ID. # -NodeId #BNSNR:OH2BNS-10} +NodeId #HAMLID:VK2LID-10} #NodeId \033[01;31m***\033[0m # ReConnect flag. @@ -25,13 +25,13 @@ # "Local" network. # -LocalNet 44.139.0.0/16 +LocalNet 44.255.0.0/16 # Command aliases. # -Alias CAllbook 'telnet %{2:jazz.oh7lzb.ampr.org} 1235 %1' -Alias CONVers 'telnet %{2:hydra.carleton.ca} 3600 "/n %u %{1:32768}\n/w *"' -Alias CLuster 'c hkiclh' +# Alias CAllbook 'telnet %{2:jazz.oh7lzb.ampr.org} 1235 %1' +# Alias CONVers 'telnet %{2:hydra.carleton.ca} 3600 "/n %u %{1:32768}\n/w *"' +# Alias CLuster 'c hkiclh' # Hidden ports. # @@ -42,7 +42,7 @@ # Flags: 1 Run command through pipe # 2 Reconnect prompt # -ExtCmd PMS 3 root /usr/sbin/pms pms -u \%U -o OH2BNS +#ExtCmd PMS 3 root /usr/sbin/pms pms -u \%U -o VK2LID #ExtCmd PS 1 nobody /bin/ps ps ax #ExtCmd TPM 1 nobody /usr/bin/finger finger tpm #ExtCmd Vpaiva 1 nobody /home/tpm/bin/vpaiva vpaiva @@ -71,4 +71,4 @@ # NodePrompt "\n" #NodePrompt "\n%s@%h \%i> " -#NodePrompt "\033[36m%U\033[0m de \033[01;35m#LNODE\033[0m:\033[01;31mOH2BNS-10\033[0m> " +#NodePrompt "\033[36m%U\033[0m de \033[01;35m#LNODE\033[0m:\033[01;31mVK2LID-10\033[0m> " --- node-0.3.2.orig/etc/node.perms +++ node-0.3.2/etc/node.perms @@ -4,14 +4,14 @@ # user type port passwd perms -# User oh2bns can login without password from anywhere else but 'inet'. +# User vk2lid can login without password from anywhere else but 'inet'. # -oh2bns inet * qwerty 95 -oh2bns * * * 95 +#vk2lid inet * qwerty 95 +#vk2lid * * * 95 -# OH2RBI is a bbs so it needs escape disabled. +# VK2BBS is a bbs so it needs escape disabled. # -oh2rbi * * * 287 +#vk2bbs * * * 287 # Default permissions per connection type. # --- node-0.3.2.orig/debian/ax25-node.postinst +++ node-0.3.2/debian/ax25-node.postinst @@ -0,0 +1,48 @@ +#! /bin/sh +# postinst script for ax25-node +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/share/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + install|upgrade|configure) + update-inetd --add \ + "bbs\tstream\ttcp\twait\troot\t/usr/sbin/ax25-node\tax25-node" + update-inetd --disable bbs + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- node-0.3.2.orig/debian/rules +++ node-0.3.2/debian/rules @@ -0,0 +1,88 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=2 + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + ./configure + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/node. + $(MAKE) install prefix=$(CURDIR)/debian/ax25-node/ + + # Set up symlinks in the transitional package + mkdir -p debian/node/usr/sbin + ln -s ax25-node debian/node/usr/sbin/node + mkdir -p debian/node/usr/share/man/man8 + ln -s ax25-node.8.gz debian/node/usr/share/man/man8/node.8.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_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples +# dh_installmenu +# dh_installemacsen +# dh_installpam +# dh_installinit +# dh_installcron +# dh_installmanpages -p ax25-node +# dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + # You may want to make some executables suid here. +# dh_suidregister +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- node-0.3.2.orig/debian/conffiles +++ node-0.3.2/debian/conffiles @@ -0,0 +1,3 @@ +/etc/ax25/node.conf +/etc/ax25/node.perms +/etc/ax25/node.motd --- node-0.3.2.orig/debian/copyright +++ node-0.3.2/debian/copyright @@ -0,0 +1,10 @@ +This package was debianized by Terry Dawson terry@linux.org.au on +Tue, 26 Oct 1999 21:53:35 +1000. + +It was downloaded from ftp://ftp.hes.iki.fi/pub/ham/linux/ax25/ + +Copyright: + The node program is (C) Copyright Tomi Manninen OH2BNS, + and others, and is distrubuted under the GNU Public License version 2. + + --- node-0.3.2.orig/debian/changelog +++ node-0.3.2/debian/changelog @@ -0,0 +1,122 @@ +node (0.3.2-7.4) unstable; urgency=low + + * NMU + * Add missing Replaces: node in the new ax25-node package. + Closes: #691131 + + -- Steve McIntyre <93sam@debian.org> Mon, 22 Oct 2012 12:12:25 +0100 + +node (0.3.2-7.3) unstable; urgency=low + + * NMU + * Fix up manpage handling in node and ax25-node. Thanks to + Julien Cristau for pointing out the bugs here. + + -- Steve McIntyre <93sam@debian.org> Sat, 20 Oct 2012 17:12:19 +0100 + +node (0.3.2-7.2) unstable; urgency=low + + * NMU + * Implement the tech committee decision to fix the node/nodejs name + clash (Closes: #681361): + + Rename the existing "node" binary package to "ax25-node" + + Rename the /usr/sbin/node binary in that package to + /usr/sbin/ax25-node + + Add a new "node" transitional package which depends on "ax25-node" + and conflicts with "nodejs-legacy". + + -- Steve McIntyre <93sam@debian.org> Sun, 14 Oct 2012 00:37:37 +0100 + +node (0.3.2-7.1) unstable; urgency=low + + * Retiring - remove myself from the uploaders list. + + -- Joop Stakenborg Sun, 15 Nov 2009 13:37:26 +0000 + +node (0.3.2-7) unstable; urgency=low + + * Use standard procedure "$preferred_package | $virtual_package" for + the inetd dependencies. + + -- Joop Stakenborg Fri, 14 Nov 2008 19:14:09 +0100 + +node (0.3.2-6) unstable; urgency=low + + * Add the appropriate inetd dependencies. + + -- Joop Stakenborg Thu, 13 Nov 2008 20:52:43 +0100 + +node (0.3.2-5) unstable; urgency=low + + * Update-inetd is now provided by the update-inetd package, netbase + no longer required. Closes: #502826. + + -- Joop Stakenborg Mon, 20 Oct 2008 21:18:36 +0200 + +node (0.3.2-4) unstable; urgency=low + + * Added runtime dependency on netbase which provides + update-inetd (closes: #308402) + + -- Hamish Moffatt Tue, 10 May 2005 13:25:33 +1000 + +node (0.3.2-3) unstable; urgency=low + + * New uploader added to the Uploaders field. + + -- Joop Stakenborg Tue, 12 Apr 2005 13:29:08 +0200 + +node (0.3.2-2) unstable; urgency=low + + * Upload for 'Debian Hamradio Maintainers'. + * Watch file added. + + -- Joop Stakenborg Sat, 9 Apr 2005 17:11:21 +0200 + +node (0.3.2-1) unstable; urgency=high + + * New upstream release. (Closes: #206888) + + -- Joop Stakenborg Tue, 26 Aug 2003 21:18:51 +0200 + +node (0.3.1-1) unstable; urgency=low + + * New upstream release. + * New maintainer. + + -- Joop Stakenborg Sun, 11 May 2003 19:58:27 +0200 + +node (0.3.0a-2) unstable; urgency=low + + * Modified configuration script to be non-interactive + Thanks for the report Lamont. (Closes: #100782) + + -- Terry Dawson Thu, 14 Jun 2001 21:19:00 +1000 + +node (0.3.0a-1) unstable; urgency=low + + * Added build-depends (Closes: #84876) + * Rebuilt using debhelper + * Added disabled entry into /etc/inetd.conf for tcp/ip access. + * relocated the 'loggedin' file in FHS correct location. + * cleaned up the configuration files to make them a safer default and + dereference Tomi where possible. + * fixed upstream source tar file. + + -- Terry Dawson Thu, 12 Apr 2001 22:27:01 +1000 + +node (0.3.0-2) unstable; urgency=low + + * Removed #include of bits/sockaddr.h from kernel_ax25.h (Closes: #51061) + + -- Terry Dawson Tue, 26 Oct 1999 21:53:35 +1000 + +node (0.3.0-1) unstable; urgency=low + + * Initial Release. + + -- Terry Dawson Thu, 12 Apr 2001 23:21:29 +1000 + +Local variables: +mode: debian-changelog +End: --- node-0.3.2.orig/debian/README.Debian +++ node-0.3.2/debian/README.Debian @@ -0,0 +1,14 @@ +node for Debian +---------------------- + +This package has been compiled with support for AX.25, NetRom, and Rose +included, and also supports compressed sockets, hence the requirement +for libz. + +This package has installed a disabled 'bbs' service entry in /etc/inetd.conf. +If you want to make the node program available to telnet connections to +port 4000 then run: + /usr/sbin/update-inetd --enable bbs + +Terry Dawson , Tue, 26 Oct 1999 21:53:35 +1000 + --- node-0.3.2.orig/debian/watch +++ node-0.3.2/debian/watch @@ -0,0 +1,3 @@ +# Site Directory Pattern Version Script +version=2 +http://he.fi/pub/ham/unix/linux/ax25/node-(0.*)\.tar\.gz debian uupdate --- node-0.3.2.orig/debian/dirs +++ node-0.3.2/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin --- node-0.3.2.orig/debian/docs +++ node-0.3.2/debian/docs @@ -0,0 +1,2 @@ +README +HISTORY --- node-0.3.2.orig/debian/control +++ node-0.3.2/debian/control @@ -0,0 +1,26 @@ +Source: node +Section: hamradio +Priority: optional +Maintainer: Debian Hamradio Maintainers +Uploaders: Jaime Robles , Patrick Ouellette , Hamish Moffatt +Build-Depends: debhelper (>> 3.0.0), zlib1g-dev, libax25-dev (>= 0.0.11-1) +Standards-Version: 3.8.0 + +Package: ax25-node +Architecture: any +Depends: ${shlibs:Depends}, update-inetd, openbsd-inetd|inet-superserver +Replaces: node (<= 0.3.2-7.1) +Description: Amateur Packet Radio Node program + The ax25-node program accepts TCP/IP and packet radio network connections and + presents users with an interface that allows them to make gateway connections + to remote hosts using a variety of amateur radio protocols. + +Package: node +Priority: extra +Architecture: all +Depends: ax25-node +Conflicts: nodejs-legacy +Section: oldlibs +Description: Amateur Packet Radio Node program (transitional package) + The existing node package has been renamed to ax25-node. This transitional + package exists to ease the upgrade path for existing users. --- node-0.3.2.orig/debian/prerm +++ node-0.3.2/debian/prerm @@ -0,0 +1,40 @@ +#! /bin/sh +# prerm script for node +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/share/doc/packaging-manual/ + +case "$1" in + remove|upgrade|deconfigure) +# install-info --quiet --remove /usr/info/node.info.gz + update-inetd --multi --disable "bbs" + update-inetd --multi --remove "bbs.*/usr/sbin/node" + + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- node-0.3.2.orig/man/node.conf.5 +++ node-0.3.2/man/node.conf.5 @@ -66,7 +66,7 @@ and you should either disable it or set the no-escape flag in node.perms for the forwarding stations if (compressed) forward is run trough LinuxNode. Also the Escape user command can be used in a forward script -to disable the escape (see node(8)). +to disable the escape (see ax25-node(8)). .TP 14 .B ExtCmd Sets up an external command. @@ -87,10 +87,10 @@ .RS .TP 5 .B 1 -Run command through pipe. Without this flag node just fork()s and exec()s +Run command through pipe. Without this flag ax25-node just fork()s and exec()s the specified command and then waits for it to terminate. The command must it self be aware about the underlying protocol. It must handle packetising -and any end of line conversions. With this flag however node sets up a pipe +and any end of line conversions. With this flag however ax25-node sets up a pipe between it self and the command and handles packetising and end of line conversions for it. .TP 5 @@ -138,7 +138,7 @@ that 127.0.0.0/8 (loopback net) is also considered "local" by default. .TP 14 .B LogLevel -Specifies what node should log. The available levels are: +Specifies what ax25-node should log. The available levels are: .RS .TP 5 .B 0 @@ -157,7 +157,7 @@ .RE .TP 14 .B NodeId -This is the id that is shown in every message from node. Default +This is the id that is shown in every message from ax25-node. Default is "LinuxNode}". .TP 14 .B NodePrompt @@ -318,7 +318,7 @@ .LP /etc/ax25/node.conf .SH "SEE ALSO" -.BR node (8), +.BR ax25-node (8), .BR node.perms (5), .BR axports (5), .BR ax25 (4). --- node-0.3.2.orig/man/node.8 +++ node-0.3.2/man/node.8 @@ -1,11 +1,11 @@ -.TH NODE 8 "16 June 1999" Linux "Linux System Managers Manual" +.TH AX25-NODE 8 "16 June 1999" Linux "Linux System Managers Manual" .SH NAME -node \- Node front end for AX.25, NET/ROM, Rose and TCP +ax25-node \- Node front end for AX.25, NET/ROM, Rose and TCP .SH SYNOPSIS -.B node [-c] +.B ax25-node [-c] .SH DESCRIPTION .LP -.B Node +.B ax25-node is a simple node front end, modelled after the node shells of TheNet and G8BPQ nodes. .SH OPTIONS @@ -22,7 +22,7 @@ compression method, namely LinuxNode and Clussed. .SH NODE COMMANDS The following commands are supported for users of -.B node: +.B ax25-node: .TP 14 .BI ? Give short list of available commands.