[gkermit] Initial import (#840162).

Eric Smith brouhaha at fedoraproject.org
Sun Jul 22 20:00:02 UTC 2012


commit 437e5e45b89ac974408a20ec3631d7c859a8ac74
Author: Eric Smith <eric at brouhaha.com>
Date:   Sun Jul 22 14:01:16 2012 -0600

    Initial import (#840162).

 .gitignore                     |    1 +
 gkermit-1.00-makefile.patch    |   49 +++++++++++++++++++++++
 gkermit-1.00-std_headers.patch |   58 +++++++++++++++++++++++++++
 gkermit.spec                   |   86 ++++++++++++++++++++++++++++++++++++++++
 sources                        |    1 +
 5 files changed, 195 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4656635 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gku100.tar.gz
diff --git a/gkermit-1.00-makefile.patch b/gkermit-1.00-makefile.patch
new file mode 100644
index 0000000..cfc05e0
--- /dev/null
+++ b/gkermit-1.00-makefile.patch
@@ -0,0 +1,49 @@
+diff -up gkermit-1.00/makefile.makefile gkermit-1.00/makefile
+--- gkermit-1.00/makefile.makefile	1999-12-26 13:28:38.000000000 -0700
++++ gkermit-1.00/makefile	2012-07-13 18:21:02.811749680 -0600
+@@ -29,16 +29,12 @@
+ 
+ # Sample installation values - change or override as needed.
+ 
+-BINDIR = /usr/local/bin
+-MANDIR = /usr/man/manl
+-TEXTDIR = /usr/local/doc
+-INFODIR = /usr/local/info
+-MANEXT = l
++MANEXT = 1
+ 
+ # Default compiler and flags
+ 
+-CC=cc
+-CFLAGS= -DPOSIX -O $(KFLAGS)
++CC=gcc
++CFLAGS= $(RPM_CFLAGS) -DPOSIX -O $(KFLAGS)
+ 
+ # Object files
+ 
+@@ -107,17 +103,6 @@ install:
+ 		@cp gkermit $(BINDIR)/gkermit
+ 		@chmod 755 $(BINDIR)/gkermit
+ 		@ls -lg $(BINDIR)/gkermit
+-		@if test -d $(TEXTDIR); then \
+-		    echo "$(TEXTDIR) exists..." ; \
+-		else \
+-		    echo "Creating $(TEXTDIR)/..." ; \
+-		    mkdir $(TEXTDIR) ; \
+-		    chmod 755 $(TEXTDIR) ; \
+-		fi
+-		@echo Copying README to $(TEXTDIR)/gkermit.txt...
+-		@cp README $(TEXTDIR)/gkermit.txt
+-		@chmod 644 $(TEXTDIR)/gkermit.txt
+-		@ls -lg $(TEXTDIR)/gkermit.txt
+ 		@echo Installing man page in $(MANDIR)/gkermit.$(MANEXT)...
+ 		@cp gkermit.nr $(MANDIR)/gkermit.$(MANEXT)
+ 		@chmod 644 $(MANDIR)/gkermit.$(MANEXT)
+@@ -126,7 +111,6 @@ install:
+ uninstall:
+ 		@echo Uninstalling gkermit...
+ 		rm -f $(BINDIR)/gkermit \
+-		$(TEXTDIR)/gkermit.txt \
+ 		$(MANDIR)gkermit.$(MANEXT)
+ 
+ .PHONY:		clean install uninstall
diff --git a/gkermit-1.00-std_headers.patch b/gkermit-1.00-std_headers.patch
new file mode 100644
index 0000000..ccb74de
--- /dev/null
+++ b/gkermit-1.00-std_headers.patch
@@ -0,0 +1,58 @@
+diff -up gkermit-1.00/gcmdline.c.std_headers gkermit-1.00/gcmdline.c
+--- gkermit-1.00/gcmdline.c.std_headers	1999-12-26 13:05:38.000000000 -0700
++++ gkermit-1.00/gcmdline.c	2012-07-13 18:14:54.442735473 -0600
+@@ -29,6 +29,8 @@
+ */
+ 
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
+ #include "gkermit.h"
+ 
+ /* Externals */
+@@ -53,7 +55,7 @@ _MYPROTOTYPE( VOID fatal, (char *) );
+ _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;
+diff -up gkermit-1.00/gkermit.c.std_headers gkermit-1.00/gkermit.c
+--- gkermit-1.00/gkermit.c.std_headers	1999-12-26 19:11:19.000000000 -0700
++++ gkermit-1.00/gkermit.c	2012-07-13 18:10:48.865726003 -0600
+@@ -56,6 +56,8 @@ char *build =  "stty";
+ 
+ #define _GKERMIT_C
+ #include <stdio.h>
++#include <string.h>
++#include <unistd.h>
+ #include "gkermit.h"
+ 
+ /* Forward declarations of functions used within this module... */
+diff -up gkermit-1.00/gunixio.c.std_headers gkermit-1.00/gunixio.c
+--- gkermit-1.00/gunixio.c.std_headers	1999-12-26 16:32:26.000000000 -0700
++++ gkermit-1.00/gunixio.c	2012-07-13 18:10:48.867726003 -0600
+@@ -75,6 +75,9 @@
+ #include <setjmp.h>			/* Longjumps */
+ #include <sys/stat.h>			/* File exist, file size */
+ #include <errno.h>			/* Error symbols */
++#include <stdlib.h>
++#include <string.h>
++#include <unistd.h>
+ #include "gkermit.h"			/* gkermit definitions */
+ 
+ /* All versions of HP-UX need Xon/Xoff */
+diff -up gkermit-1.00/gwart.c.std_headers gkermit-1.00/gwart.c
+--- gkermit-1.00/gwart.c.std_headers	1999-12-17 10:04:22.000000000 -0700
++++ gkermit-1.00/gwart.c	2012-07-13 18:10:48.869726003 -0600
+@@ -40,6 +40,8 @@
+ 
+ #include <stdio.h>
+ #include <ctype.h>
++#include <stdlib.h>
++#include <string.h>
+ #include "gkermit.h"
+ 
+ #define TBL_TYPE "short"		/* C data type of state table */
diff --git a/gkermit.spec b/gkermit.spec
new file mode 100644
index 0000000..758cb9a
--- /dev/null
+++ b/gkermit.spec
@@ -0,0 +1,86 @@
+Name:           gkermit
+Version:        1.00
+Release:        11%{?dist}
+Summary:        A utility for transferring files using the Kermit protocol
+Group:          Applications/Communications
+License:        GPLv2+
+URL:            http://www.columbia.edu/kermit/gkermit.html
+Source0:        ftp://kermit.columbia.edu/kermit/archives/gku100.tar.gz
+
+# Fedora-specific patches:
+# Patch makefile to handle of CC, CFLAGS, install directory variables per
+# Fedora packaging spec, and to not install gkermit.txt as that will be
+# handled as a doc file.
+# and 
+Patch0:         gkermit-1.00-makefile.patch
+
+# Patch to use stdlib.h, string.h, and unistd.h headers, rather than
+# assuming the argument profiles of various standard library functions.
+Patch1:         gkermit-1.00-std_headers.patch
+
+# NOT patching incorrect FSF address as reported by rpmlint.  As of
+# 14-JUL-2012, policy states that only upstream notification is required.
+# Upstream was notified by email on 14-JUL-2012, and a reply was received
+# the same day stating that the address will not be changed.
+
+%description
+G-Kermit is a utility for file transfer using the Kermit protocol,
+supporting text and binary transfers on 7-bit and 8-bit connections.
+It is most useful as a remote endpoint; for a more fully-featured Kermit
+program, use the ckermit package.
+
+%prep
+%setup -q -c
+%patch0 -p1 -b .makefile
+%patch1 -p1 -b .std_headers
+
+%build
+# Unfortunately we cannot use smp_mflags because Makefile isn't SMP-safe.
+# With smp_mflags, make will attempt to run generated programs such as
+# ./gwart before they have been compiled.
+make RPM_CFLAGS="%{optflags} -DERRNO_H"
+
+%install
+install -d -m0755 %{buildroot}%{_bindir}
+install -d -m0755 %{buildroot}%{_mandir}/man1
+make install BINDIR=%{buildroot}%{_bindir} MANDIR=%{buildroot}%{_mandir}/man1
+
+%files
+%doc ANNOUNCE COPYING README
+%{_bindir}/gkermit
+%{_mandir}/man1/gkermit.1*
+
+%changelog
+* Sun Jul 22 2012 Eric Smith <eric at brouhaha.com>  1.00-11
+- Added description of patches per package review comments.
+
+* Fri Jul 13 2012 Eric Smith <eric at brouhaha.com>  1.00-10
+- Updated to current Fedora packaging standards.
+
+* Mon Jul  9 2001 Tim Powers <timp at redhat.com>
+- when you rebuild, add a changelog entry and bump the release #
+
+* Tue Dec 19 2000 Philipp Knirsch <pknirsch at redhat.de>
+- rebuild
+
+* Thu Jul 13 2000 Prospector <bugzilla at redhat.com>
+- automatic rebuild
+
+* Mon Jun 26 2000 Nalin Dahyabhai <nalin at redhat.com>
+- Remove the setgid bit. (#11870)
+
+* Mon Jun  5 2000 Nalin Dahyabhai <nalin at redhat.com>
+- FHS fixes.
+
+* Wed May 10 2000 Tim Powers <timp at redhat.com>
+- quiet setup
+- rebuilt for 7.0
+
+* Sun Feb 27 2000 Cristian Gafton <gafton at redhat.com>
+- make gkermit setgid uucp
+
+* Wed Feb 02 2000 Cristian Gafton <gafton at redhat.com>
+- fix description
+
+* Thu Jan 13 2000 Cristian Gafton <gafton at redhat.com>
+- create first version of the package
diff --git a/sources b/sources
index e69de29..301db9c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+aea4fa728b9981fce41c9f2c635f2e05  gku100.tar.gz


More information about the scm-commits mailing list