--- z8530-utils2-3.0-1.orig/Makefile +++ z8530-utils2-3.0-1/Makefile @@ -1,9 +1,10 @@ VERSION = 3.0-1 DIRECTORY = z8530drv-utils KERNEL = `cat /proc/version | cut -d" " -f3` -CCOPT = -O2 -m486 -Wall -Wstrict-prototypes # -DCONFIG_SCC_STANDALONE +CCOPT = $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) +CCOPT += -O2 -Wall -g -Wstrict-prototypes # -DCONFIG_SCC_STANDALONE -all: utils install +all: utils utils: sccparam sccstat sccinit gencfg kissbridge @@ -23,14 +24,15 @@ gcc ${CCOPT} kissbridge.c -o $@ install: - install -g root -o root -m 0755 -s sccstat /sbin/sccstat - install -g root -o root -m 0700 -s sccinit /sbin/sccinit - install -g root -o root -m 0700 -s sccparam /sbin/sccparam - install -g root -o root -m 0700 -s kissbridge /usr/sbin/kissbridge - install -g root -o root -m 0644 z8530drv.conf /etc/z8530drv.conf.ex + install -s -g root -o root -m 0755 -s gencfg $(DESTDIR)/usr/bin/gencfg + install -s -g root -o root -m 0755 -s sccstat $(DESTDIR)/usr/bin/sccstat + install -s -g root -o root -m 0700 -s sccinit $(DESTDIR)/usr/sbin/sccinit + install -s -g root -o root -m 0700 -s sccparam $(DESTDIR)/usr/sbin/sccparam + install -s -g root -o root -m 0700 -s kissbridge $(DESTDIR)/usr/sbin/kissbridge + install -g root -o root -m 0644 z8530drv.conf $(DESTDIR)/etc/z8530drv.conf clean: - rm -f *.o *~ doc/*~ + rm -f *.o *~ doc/*~ sccstat sccinit sccparam gencfg kissbridge distrib: ( cd .. && tar zcvvf z8530drv-utils-${VERSION}.tar.gz \ --- z8530-utils2-3.0-1.orig/debian/changelog +++ z8530-utils2-3.0-1/debian/changelog @@ -0,0 +1,156 @@ +z8530-utils2 (3.0-1-8) unstable; urgency=medium + + * Fix watch file Closes: #781600. + * Bump standards version to 3.9.6 (No changes required). + + -- Colin Tuckley Sun, 03 May 2015 14:48:20 +0100 + +z8530-utils2 (3.0-1-7) unstable; urgency=medium + + * Ack the NMU + * Fix watch file (upstream site moved). + * Bump standards version. (No changes reqd). + * Bump debhelper compat level to 9 for hardening. + * Fix debian/rules for hardening. + * Add ${misc:Depends} to debian/control. + * Add missing build-arch build-indep targets in debian/rules + * Remove abs path to MAKEDEV in postinst + * Change arch to linux-any since package is Linux specific. Closes: #745203 + + -- Colin Tuckley Thu, 05 Jun 2014 14:24:46 +0100 + +z8530-utils2 (3.0-1-6.1) unstable; urgency=low + + * NMU Retiring - remove myself from the uploaders list. + + -- Joop Stakenborg Wed, 18 Nov 2009 20:33:08 +0000 + +z8530-utils2 (3.0-1-6) unstable; urgency=low + + * See if we can get this package into testing by doing a new upload. + * Bump standards version. + + -- Joop Stakenborg Tue, 22 Jan 2008 21:02:16 +0100 + +z8530-utils2 (3.0-1-5) unstable; urgency=low + + * Adapt description. Closes: #450540. + * Lintian clean. + + -- Joop Stakenborg Mon, 12 Nov 2007 19:11:55 +0100 + +z8530-utils2 (3.0-1-4) unstable; urgency=low + + * Transfer ownership to Debian-Hams. + + -- Joop Stakenborg Sun, 1 Apr 2007 20:54:29 +0200 + +z8530-utils2 (3.0-1-3) unstable; urgency=low + + * Move to debhelper. + + -- Joop Stakenborg Fri, 24 Mar 2006 10:57:06 +0100 + +z8530-utils2 (3.0-1-2) unstable; urgency=low + + * Fix the postinst script. Thanks to Jean-Luc Coulon. Closes: #264392. + + -- Joop Stakenborg Sun, 8 Aug 2004 19:16:27 +0200 + +z8530-utils2 (3.0-1-1) unstable; urgency=low + + * Bring the version number in sync with the upstream one, so the watch + file works. + * Fix for gcc-3.4 by Andreas Jochens, thanks! Closes: #263211. + + -- Joop Stakenborg Tue, 3 Aug 2004 20:32:45 +0200 + +z8530-utils2 (3.0-13) unstable; urgency=low + + * Update standards version. + * Some lintian fixes. + + -- Joop Stakenborg Sun, 22 Dec 2002 11:24:01 +0100 + +z8530-utils2 (3.0-12) unstable; urgency=low + + * Fix the priority line optional->extra. + + -- Joop Stakenborg Thu, 12 Jul 2001 20:33:43 +0200 + +z8530-utils2 (3.0-11) unstable; urgency=low + + * Remove libc6-dev from the Build-Depends line as per debian policy. + + -- Joop Stakenborg Tue, 10 Jul 2001 21:57:53 +0200 + +z8530-utils2 (3.0-10) unstable; urgency=low + + * Add build-depends line. + * Update standards version. + * Changes to the code so it does not #include in + order to compile correctly with glibc2.2. + + -- Joop Stakenborg Sun, 18 Feb 2001 18:39:58 +0100 + +z8530-utils2 (3.0-9) unstable; urgency=low + + * Fixed lintian errors. + * Fixed call to MAKEDEV in postinst. Closes #55674 + + -- Joop Stakenborg Sat, 29 Jul 2000 14:27:15 +0200 + +z8530-utils2 (3.0-8) unstable; urgency=low + + * Fixed link to kernel-package in README.debian. + + -- Joop Stakenborg Wed, 1 Dec 1999 21:22:23 +0100 + +z8530-utils2 (3.0-7) unstable; urgency=low + + * Manual pages contained wrong reference to authors documentation. + Fixed. + + -- Joop Stakenborg Thu, 14 Oct 1999 22:29:01 +0200 + +z8530-utils2 (3.0-6) unstable; urgency=low + + * Typo. + + -- Joop Stakenborg Thu, 14 Oct 1999 18:56:26 +0200 + +z8530-utils2 (3.0-5) unstable; urgency=low + + * Updated standards version. + * FHS. + + -- Joop Stakenborg Thu, 14 Oct 1999 15:15:59 +0200 + +z8530-utils2 (3.0-4) unstable; urgency=low + + * Make this package depend on recent version of makedev package. + + -- Joop Stakenborg Sat, 24 Apr 1999 12:44:59 +0200 + +z8530-utils2 (3.0-3) unstable; urgency=low + + * Use MAKEDEV, since it has a hamradio target now. No need for mknod. + + -- Joop Stakenborg Tue, 20 Apr 1999 22:33:19 +0200 + +z8530-utils2 (3.0-2) unstable; urgency=low + + * Recompile with glibc2.1. When build with glibc2.0, sccinit would + produce a kernel oops in scc.o on a glibc2.1 system. + * Include the FAQ again. + + -- Joop Stakenborg Sat, 10 Apr 1999 18:06:33 +0200 + +z8530-utils2 (3.0-1) unstable; urgency=low + + * Initial Release. + * The z8530-utils is now split up in 2 versions for different kernels. + * Most work taken from z8530-utils, but I will handle this as an + initial release. + + -- Joop Stakenborg Sat, 6 Feb 1999 19:38:26 +0100 --- z8530-utils2-3.0-1.orig/debian/compat +++ z8530-utils2-3.0-1/debian/compat @@ -0,0 +1 @@ +9 --- z8530-utils2-3.0-1.orig/debian/control +++ z8530-utils2-3.0-1/debian/control @@ -0,0 +1,24 @@ +Source: z8530-utils2 +Section: hamradio +Priority: extra +Maintainer: Debian Hamradio Maintainers +Uploaders: Jaime Robles , Patrick Ouellette , Hamish Moffatt , Colin Tuckley +Standards-Version: 3.9.6 +Build-Depends: debhelper (>=9) + +Package: z8530-utils2 +Architecture: linux-any +Conflicts: z8530-utils +Depends: ${shlibs:Depends}, ${misc:Depends}, makedev (>= 2.3.1-22) +Description: Utilities for Z8530 based HDLC cards for AX.25 + This package contains utilities to load, configure and modify + the kernel driver for Z8530 based SCC cards. + . + It should at least work with the following boards and + connected modems: + . + BayCom USCC. + PA0HZP card with and without ESCC and/or external clock divider + (up to 19200 baud (loopback)) and compatibles. + TCM3105 modem, 4k8 modem, 9k6 DF9IC modem (loopback), HAPN 4k8 + modem (connected to a SCC board, of course!). --- z8530-utils2-3.0-1.orig/debian/copyright +++ z8530-utils2-3.0-1/debian/copyright @@ -0,0 +1,120 @@ +This package was debianized by Joop Stakenborg pa3aba@debian.org on +Sat, 6 Feb 1999 19:38:26 +0100. + +It was downloaded from ftp://ftp.funet.fi/pub/ham/Linux/packet/ax25-utils + +Copyright: + + ******************************************************************** + * SCC.C - Linux driver for Z8530 based HDLC cards for AX.25 * + ******************************************************************** + Version 3.0 + +General notes +============= + +(or: my point of view) + +The driver and the programs in this archive are UNDER CONSTRUCTION. +The code is very likely to fail, and so your kernel could --- even +a whole network. So you'd better follow some advices: + +1. Do not use it on systems which run processes vital for human + life or are connected to such systems. + +2. Do not use it on systems containing any important data, or connected + to systems with such data. + +3. If you connect a radio transmitter to your SCC card (that's what I + suppose), remember that YOU are responsible for any transmission. + +Well, it's YOUR computer, not mine. It's YOUR data, not mine. I warned +you... (*) + +This driver is intended for Amateur Radio use. If you are running it +for commercial purposes, please drop me a note. I am nosy... + + +...BUT: + +! You m u s t recognize the appropriate legislations of your country ! +! before you connect a radio to the SCC board and start to transmit or ! +! receive. The GPL allows you to use the d r i v e r, NOT the RADIO! ! + +(and that is A FACT, not someone's point of view!) + +For non-Amateur-Radio use please note that you might need a special +allowance/licence from the designer of the SCC Board and/or the +MODEM. + +Also read the disclaimer of warrenty and fitness, please... + + +Copyright notice +================ + + + ******************************************************************** + * SCC.C - Linux driver for Z8530 based HDLC cards for AX.25 * + ******************************************************************** + + + ******************************************************************** + + Copyright 1993, 1997 by Joerg Reuter DL1BKE + + portions (c) 1993 Guido ten Dolle PE1NNZ + + ******************************************************************** + + The driver and the programs in this archive are UNDER CONSTRUCTION. + The code is likely to fail, and so your kernel could --- even + a whole network. + + This driver is intended for Amateur Radio use. If you are running it + for commercial purposes, please drop me a note. I am nosy... + + ...BUT: + + ! You m u s t recognize the appropriate legislations of your country ! + ! before you connect a radio to the SCC board and start to transmit or ! + ! receive. The GPL allows you to use the d r i v e r, NOT the RADIO! ! + + For non-Amateur-Radio use please note that you might need a special + allowance/licence from the designer of the SCC Board and/or the + MODEM. + + This program is free software; you can redistribute it and/or modify + it under the terms of the (modified) GNU General Public License + delivered with the LinuX kernel source. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should find a copy of the GNU General Public License in + /usr/share/common-licenses/GPL; + + ******************************************************************** + + + ...If you find any portions of the code that are copyrighted to you, + and you don't want to see in here, please send me a private (!) + message to my internet site. I will change it as soon as possible. + Please don't flame to the tcp-group or anywhere else. Thanks! + + +Joerg Reuter ampr-net: dl1bke@db0pra.ampr.org + AX-25 : DL1BKE @ DB0ACH.#NRW.DEU.EU + Internet: jreuter@lykos.oche.de + + + + +(*) Gert Doering, author of Mgetty + Sendfax, on his software: + +"Use it at your own risk, there is n o warranty. If it erases all the + data on your hard disk, damges your hardware, or kills your dog, that + is entirely your problem." ----------------- + --- z8530-utils2-3.0-1.orig/debian/gencfg.1 +++ z8530-utils2-3.0-1/debian/gencfg.1 @@ -0,0 +1,21 @@ +.TH GENCFG 1 +.SH NAME +gencfg \- Generate z8530drv.conf from xNOS data +.SH SYNOPSIS +.B gencfg
[hdwe] [param[] +.SH "DESCRIPTION" +If you have used your scc card with a NET/NOS program onder DOS before, +you can use +.B gencfg +to generate a configuration file from your autoexec.net. +Just type +.B gencfg +to read instructions. + +.SH "SEE ALSO" +Please read the documentation supplied with the z8530-utils2 +package: +.I /usr/share/doc/z8530-utils2/README.debian +and +.I /usr/share/doc/z8530-utils2/scc_eng.doc +. --- z8530-utils2-3.0-1.orig/debian/kissbridge.8 +++ z8530-utils2-3.0-1/debian/kissbridge.8 @@ -0,0 +1,16 @@ +.TH KISSBRIDGE 8 +.SH NAME +kissbridge \- connect scc port to a pty device +.SH SYNOPSIS +.B kissbridge scc-device pty-device +.SH "DESCRIPTION" +.B kissbridge +is a program that can connect your scc port to a pty device, which +can then be linked from within a NET/NOS program. +.SH "SEE ALSO" +Please read the documentation supplied with the z8530-utils2 +package: +.I /usr/share/doc/z8530-utils2/README.debian +and +.I /usr/share/doc/z8530-utils2/scc_eng.doc +. --- z8530-utils2-3.0-1.orig/debian/postinst +++ z8530-utils2-3.0-1/debian/postinst @@ -0,0 +1,11 @@ +#!/bin/sh +set -e + +#DEBHELPER# + +if [ ! -e /dev/scc0 ]; then + cd /dev + MAKEDEV -v hamradio scc +fi + +exit 0 --- z8530-utils2-3.0-1.orig/debian/rules +++ z8530-utils2-3.0-1/debian/rules @@ -0,0 +1,88 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/buildflags.mk + +CFLAGS += -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-arch build-indep + +build-arch: build-stamp + +build-indep: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/z8530-utils2-3.0.sgml > z8530-utils2-3.0.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/z8530-utils2. + $(MAKE) install DESTDIR=$(CURDIR)/debian/z8530-utils2 + + +# 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_installchangelogs + dh_installdocs + dh_installman debian/gencfg.1 debian/kissbridge.8 debian/sccinit.8 debian/sccparam.8 debian/sccstat.1 + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- z8530-utils2-3.0-1.orig/debian/sccinit.8 +++ z8530-utils2-3.0-1/debian/sccinit.8 @@ -0,0 +1,16 @@ +.TH SCCINIT 8 +.SH NAME +sccinit \- Initialize scc card +.SH SYNOPSIS +.B sccinit +.SH "DESCRIPTION" +.B sccinit +is a program that is called at boot time to initialize the Z8530 +based scc card. +.SH "SEE ALSO" +Please read the documentation supplied with the z8530-utils2 +package: +.I /usr/share/doc/z8530-utils2/README.debian +and +.I /usr/share/doc/z8530-utils2/scc_eng.doc +. --- z8530-utils2-3.0-1.orig/debian/sccparam.8 +++ z8530-utils2-3.0-1/debian/sccparam.8 @@ -0,0 +1,17 @@ +.TH SCCPARAM 8 +.SH NAME +sccparam \- Change or list parameters of a scc port +.SH SYNOPSIS +.B sccinit device parameter [value] +.SH "DESCRIPTION" +with +.B sccparam +you can change or list paramaters (e.g. txdelay, persistance) +of a scc port at runtime. +.SH "SEE ALSO" +Please read the documentation supplied with the z8530-utils2 +package: +.I /usr/share/doc/z8530-utils2/README.debian +and +.I /usr/share/doc/z8530-utils2/scc_eng.doc +. --- z8530-utils2-3.0-1.orig/debian/sccstat.1 +++ z8530-utils2-3.0-1/debian/sccstat.1 @@ -0,0 +1,16 @@ +.TH SCCSTAT 1 +.SH NAME +sccstat \- List statistics of a scc radio port +.SH SYNOPSIS +.B sccstat device +.SH "DESCRIPTION" +.B sccstat +lists scc port statistics, e.g. errors, over- and underruns, tx- and +rx-queues, allocated memory and paramaters. +.SH "SEE ALSO" +Please read the documentation supplied with the z8530-utils2 +package: +.I /usr/share/doc/z8530-utils2/README.debian +and +.I /usr/share/doc/z8530-utils2/scc_eng.doc +. --- z8530-utils2-3.0-1.orig/debian/source/format +++ z8530-utils2-3.0-1/debian/source/format @@ -0,0 +1 @@ +1.0 --- z8530-utils2-3.0-1.orig/debian/watch +++ z8530-utils2-3.0-1/debian/watch @@ -0,0 +1,3 @@ +version=3 +ftp://ftp.funet.fi/pub/ham/unix/Linux/packet/ax25/z8530drv-utils-(.*)\.dl1bke\.tar\.gz + --- z8530-utils2-3.0-1.orig/debian/z8530-utils2.dirs +++ z8530-utils2-3.0-1/debian/z8530-utils2.dirs @@ -0,0 +1,4 @@ +etc +usr/sbin +usr/bin + --- z8530-utils2-3.0-1.orig/debian/z8530-utils2.docs +++ z8530-utils2-3.0-1/debian/z8530-utils2.docs @@ -0,0 +1,4 @@ +README +doc/FAQ +doc/scc_eng.doc +doc/scc_ger.doc --- z8530-utils2-3.0-1.orig/gencfg.c +++ z8530-utils2-3.0-1/gencfg.c @@ -32,7 +32,7 @@ #include #include #include -#include +#include #ifdef CONFIG_SCC_STANDALONE #include "scc.h" #else --- z8530-utils2-3.0-1.orig/kissbridge.c +++ z8530-utils2-3.0-1/kissbridge.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -26,7 +27,8 @@ #include #include #include -#include +#include +#include #define MAXMTU 1024 /* maximum frame length we support */ --- z8530-utils2-3.0-1.orig/sccinit.c +++ z8530-utils2-3.0-1/sccinit.c @@ -36,15 +36,13 @@ #include #include #include -#include #ifdef CONFIG_SCC_STANDALONE #include "scc.h" #else #include #endif -#include #include -#include +#include #include #include "sccutils.h" @@ -424,7 +422,7 @@ hwcfg.escc = (char) param; break; default: - /* error */ + break;/* error */ } } else { switch (command) --- z8530-utils2-3.0-1.orig/sccparam.c +++ z8530-utils2-3.0-1/sccparam.c @@ -37,15 +37,14 @@ #include #include #include -#include #ifdef CONFIG_SCC_STANDALONE #include "scc.h" #else #include #endif -#include #include -#include +#include +#include #include "sccutils.h" --- z8530-utils2-3.0-1.orig/sccstat.c +++ z8530-utils2-3.0-1/sccstat.c @@ -29,23 +29,21 @@ */ #include +#include #include #include #include -#include +#include #include #include #include -#include #ifdef CONFIG_SCC_STANDALONE #include "scc.h" #else -#include #include #endif -#include #include -#include +#include #include #include "sccutils.h"