--- gkermit-1.0.orig/debian/changelog +++ gkermit-1.0/debian/changelog @@ -0,0 +1,77 @@ +gkermit (1.0-10) unstable; urgency=medium + + * QA upload + * Set maintainer field to Debian QA Group (see #836483) + * Bump debhelper compat level. Closes: #817475 + + -- Christoph Biedl Sun, 18 Dec 2016 14:53:05 +0100 + +gkermit (1.0-9) unstable; urgency=low + + * Bumped to Standards-Version: 3.8.0. + + -- Masayuki Hatta (mhatta) Tue, 15 Jul 2008 10:50:48 +0900 + +gkermit (1.0-8) unstable; urgency=low + + * debian/doc-base: Removed an extra whitespace (to shut lintian up). + + -- Masayuki Hatta (mhatta) Sat, 08 Dec 2007 22:20:52 +0900 + +gkermit (1.0-7) unstable; urgency=low + + * Bumped to Standards-Version: 3.7.3. + * Fixed various lintian warnings. + + -- Masayuki Hatta (mhatta) Fri, 07 Dec 2007 09:33:46 +0900 + +gkermit (1.0-6) unstable; urgency=low + + * Fixed 100% CPU usage problem during send, patch kindly provided by Steve Fosdick - closes: #409182 + + -- Masayuki Hatta (mhatta) Tue, 01 May 2007 11:48:53 +0900 + +gkermit (1.0-5) unstable; urgency=low + + * Bumped to Standards-Version: 3.7.2. + * Added progress indicator, thanks Tim Riker - closes: #266953 + + -- Masayuki Hatta (mhatta) Fri, 13 Oct 2006 10:25:00 +0900 + +gkermit (1.0-4) unstable; urgency=low + + * [control] changed Maintainer field. + * Bumped to Standards-Version: 3.6.1. + + -- Masayuki Hatta (mhatta) Sat, 14 Feb 2004 18:48:10 +0900 + +gkermit (1.0-3) unstable; urgency=low + + * New Maintainer - closes: #143652 + * Removed README.Debian. + * Fixed typo in description. + * Revised copyright. + + -- Masayuki Hatta Thu, 8 Aug 2002 15:04:27 +0900 + +gkermit (1.0-2) unstable; urgency=low + + * Package is orphaned (see #143652); maintainer set to Debian QA Group. + * Fix typo in description (closes: #124673). + * Add some missing #include directives (closes: #112858). + * Don't install upstream README file as it is already installed as + gkermit.txt. + * Upgrade to debhelper v4. + * Bump Standards-Version to 3.5.6. + * Support DEB_BUILD_OPTIONS. + * Add Build-Depends on debhelper. + * Remove emacs settings from bottom of this changelog. + * Added a doc-base file. + + -- Robert Luberda Mon, 10 Jun 2002 23:16:53 +0200 + +gkermit (1.0-1) unstable; urgency=low + + * Initial Release. + + -- Vaidhyanathan G Mayilrangam Tue, 4 Jan 2000 14:13:19 -0500 --- gkermit-1.0.orig/debian/compat +++ gkermit-1.0/debian/compat @@ -0,0 +1 @@ +10 --- gkermit-1.0.orig/debian/control +++ gkermit-1.0/debian/control @@ -0,0 +1,14 @@ +Source: gkermit +Section: comm +Priority: optional +Maintainer: Debian QA Group +Standards-Version: 3.8.0 +Build-Depends: debhelper (>= 10~), dpatch + +Package: gkermit +Architecture: any +Depends: ${shlibs:Depends} +Description: A serial and network communications package + G-Kermit is a GPL'd kermit package. It offers medium-independent terminal + session and file transfer. The non-free package ckermit adds connection + establishment, character-set translation and scripting features. --- gkermit-1.0.orig/debian/copyright +++ gkermit-1.0/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Vaidhyanathan G Mayilrangam +on Tue, 4 Jan 2000 14:13:19 -0500. + +It was downloaded from http://www.columbia.edu/kermit/gkermit.html + +Upstream Authors: The Kermit Project + +Copyright: + + Copyright (C) 1999, The Trustees of Columbia University in the City + of New York. + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at your option) + any later version. + + 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 have received a copy of the GNU General Public License along with + this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in /usr/share/common-licenses/GPL'. --- gkermit-1.0.orig/debian/dirs +++ gkermit-1.0/debian/dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/doc/gkermit +usr/share/man/man1 --- gkermit-1.0.orig/debian/doc-base +++ gkermit-1.0/debian/doc-base @@ -0,0 +1,8 @@ +Document: gkermit +Title: G-Kermit Manual +Author: The Kermit Project +Abstract: This manual describes gkermit - a UNIX program for transferring files using the Kermit protocol. +Section: Network/File Transfer + +Format: text +Files: /usr/share/doc/gkermit/gkermit.txt.gz --- gkermit-1.0.orig/debian/patches/00list +++ gkermit-1.0/debian/patches/00list @@ -0,0 +1,2 @@ +01_progress_indicator +02_stdout_blocking_mode --- gkermit-1.0.orig/debian/patches/01_progress_indicator.dpatch +++ gkermit-1.0/debian/patches/01_progress_indicator.dpatch @@ -0,0 +1,73 @@ +#! /bin/sh -e +## 01_progress_indicator.dpatch by Masayuki Hatta +## +## All lines beginning with \`## DP:' are a description of the patch. +## DP: Adds progress indicator + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi +case "$1" in + -patch) patch -f --no-backup-if-mismatch --dry-run -p1 < $0 && patch -f --no-backup-if-mismatch -p1 < $0 +;; + -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +diff -Nur gkermit-1.0/gcmdline.c gkermit-1.0.progress/gcmdline.c +--- gkermit-1.0/gcmdline.c 2004-08-19 16:10:23.000000000 -0500 ++++ gkermit-1.0.progress/gcmdline.c 2004-08-19 16:07:22.000000000 -0500 +@@ -285,6 +285,11 @@ + quiet = 1; + break; + ++ case 'v': /* Verbose */ ++ progress = 1; /* (lame) progress indicator */ ++ quiet = 0; /* Turn messages back on */ ++ break; ++ + case 'K': /* Keep incompletely received files */ + keep = 1; + break; +diff -Nur gkermit-1.0/gkermit.c gkermit-1.0.progress/gkermit.c +--- gkermit-1.0/gkermit.c 2004-08-19 16:10:23.000000000 -0500 ++++ gkermit-1.0.progress/gkermit.c 2004-08-19 16:06:00.000000000 -0500 +@@ -86,6 +86,7 @@ + + FILE * db = NULL; /* Debug log file pointer */ + int debug = 0; /* Debugging on */ ++int progress = 0; /* display (lame) progress */ + int failure = 0; /* Return status */ + int retries = 0; /* Packet retry counter */ + int sendtype = 0; /* Type of last packet sent */ +@@ -262,10 +263,14 @@ + return(type); /* Return its type */ + } + ++char *twirl = "|/-\\"; ++ + VOID + nxtpkt() { /* Next packet */ + retries = 0; /* Reset per-packet retry count */ + seq = (seq + 1) & 63; /* Next packet number, mod 64 */ ++ if (progress) ++ fprintf(stderr,"%c\r", twirl[seq & 3]); + } + + int +diff -Nur gkermit-1.0/gkermit.h gkermit-1.0.progress/gkermit.h +--- gkermit-1.0/gkermit.h 1999-12-26 15:25:52.000000000 -0600 ++++ gkermit-1.0.progress/gkermit.h 2004-08-19 16:02:39.000000000 -0500 +@@ -236,6 +236,7 @@ + extern int errno; + #ifndef _GKERMIT_C + extern int debug; ++extern int progress; + #endif /* _GKERMIT_C */ + + #endif /* _GKERMIT_H */ --- gkermit-1.0.orig/debian/patches/02_stdout_blocking_mode.dpatch +++ gkermit-1.0/debian/patches/02_stdout_blocking_mode.dpatch @@ -0,0 +1,64 @@ +#! /bin/sh -e +## 02_stdout_blocking_mode.dpatch by Steve Fosdick +## +## All lines beginning with \`## DP:' are a description of the patch. +## DP: Fixes 100% CPU usage problem during send + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi +case "$1" in + -patch) patch -f --no-backup-if-mismatch --dry-run -p1 < $0 && patch -f --no-backup-if-mismatch -p1 < $0 +;; + -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 + +diff -urN gkermit-1.0.orig/gunixio.c gkermit-1.0/gunixio.c +--- gkermit-1.0.orig/gunixio.c 2007-05-01 11:51:59.000000000 +0900 ++++ gkermit-1.0/gunixio.c 2007-05-01 11:52:11.000000000 +0900 +@@ -307,6 +307,7 @@ + + int + ttopen(ttname) char *ttname; { /* "Open" the communication device */ ++ int oflags, ofd; + if (debug) { /* Vital statistics for debug log */ + #ifdef __STDC__ + fprintf(db,"ttopen __STDC__\n"); +@@ -366,8 +367,30 @@ + errno = 0; + if (fcntl(0, F_SETFL,ttflags|O_NDELAY) == -1) + logerr("ttopen fcntl(0,F_SETFL,O_NDELAY)"); +- else ++ else { + nonblock = 1; ++ /* ++ It is possible that stdin and stdout are different file ++ descriptors refering to the same kernel file table entry. ++ If this is the case then setting non-blocking mode on stdin ++ above will have set it on stdout too and that will cause a ++ loop in ttol to busy-wait thus using nearly 100% system ++ CPU. So, we test if stdout is in non-blocking mode and if ++ it is we close it and reopen /dev/tty to get an independant ++ file table entry. ++ */ ++ ++ if ((oflags = fcntl(1, F_GETFL)) == -1) ++ logerr("ttopen fcntl(1,F_GETFL)"); ++ else if (oflags & O_NDELAY) { ++ if ((ofd = open("/dev/tty", O_WRONLY, 0)) == -1) ++ logerr("open(\"/dev/tty\",O_WRONLY)"); ++ else if (dup2(ofd, 1) == -1) ++ logerr("dup2"); ++ else ++ close(ofd); ++ } ++ } + } + #endif /* F_SETFL */ + #endif /* O_NDELAY */ --- gkermit-1.0.orig/debian/rules +++ gkermit-1.0/debian/rules @@ -0,0 +1,76 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# Include dpatch stuff. +include /usr/share/dpatch/dpatch.make + +build: patch build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + [ ! -f makefile ] || $(MAKE) clean + #-$(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/ + $(MAKE) prefix=$(CURDIR)/debian/$(shell dh_listpackages)/usr install + +# 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_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented +# dh_installman +# dh_link + dh_strip + dh_compress + dh_fixperms +# 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 --- gkermit-1.0.orig/gcmdline.c +++ gkermit-1.0/gcmdline.c @@ -29,6 +29,8 @@ */ #include +#include +#include #include "gkermit.h" /* Externals */ @@ -53,7 +55,7 @@ _MYPROTOTYPE( VOID usage, (void) ); #ifndef NOGETENV -_MYPROTOTYPE( char * getenv, (char *) ); +/* _MYPROTOTYPE( char * getenv, (char *) ); */ #define GARGC 32 #define GBUFSIZ 256 static char gbuf[GBUFSIZ], *gargs[GARGC], *gptr = NULL; --- gkermit-1.0.orig/gkermit.c +++ gkermit-1.0/gkermit.c @@ -56,6 +56,9 @@ #define _GKERMIT_C #include +#include +#include +#include #include "gkermit.h" /* Forward declarations of functions used within this module... */ --- gkermit-1.0.orig/gkermit.nr +++ gkermit-1.0/gkermit.nr @@ -1,5 +1,5 @@ .\" @(#) gkermit.1 1.00 Columbia University 1999/12/25 -.TH GKERMIT 1C "25 Dec 1999" "UNIX G-Kermit" +.TH GKERMIT 1 "25 Dec 1999" "UNIX G-Kermit" .SH NAME gkermit \- G-Kermit (GNU Kermit) 1.00 file transfer software. .ll 80 --- gkermit-1.0.orig/gunixio.c +++ gkermit-1.0/gunixio.c @@ -75,6 +75,8 @@ #include /* Longjumps */ #include /* File exist, file size */ #include /* Error symbols */ +#include +#include #include "gkermit.h" /* gkermit definitions */ /* All versions of HP-UX need Xon/Xoff */ --- gkermit-1.0.orig/gwart.c +++ gkermit-1.0/gwart.c @@ -40,6 +40,7 @@ #include #include +#include #include "gkermit.h" #define TBL_TYPE "short" /* C data type of state table */ --- gkermit-1.0.orig/makefile +++ gkermit-1.0/makefile @@ -28,17 +28,22 @@ # See README and COPYING for further information. # Sample installation values - change or override as needed. +prefix = /usr/local -BINDIR = /usr/local/bin -MANDIR = /usr/man/manl -TEXTDIR = /usr/local/doc -INFODIR = /usr/local/info -MANEXT = l +BINDIR = ${prefix}/bin +MANDIR = ${prefix}/share/man/man1 +TEXTDIR = ${prefix}/share/doc/gkermit +INFODIR = ${prefix}/share/info +MANEXT = 1 # Default compiler and flags CC=cc -CFLAGS= -DPOSIX -O $(KFLAGS) +CFLAGS= -Wall -DPOSIX -O $(KFLAGS) + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif # Object files @@ -94,7 +99,7 @@ cc -o gkermit $(OBJECTS) clean: - rm -f $(OBJECTS) gproto.o gproto.c gwart.o gwart + rm -f $(OBJECTS) gproto.o gwart.o gwart gkermit install: @if test -f ./gkermit; then \