--- codegroup-19981025.orig/codegroup.html
+++ codegroup-19981025/codegroup.html
@@ -180,7 +180,7 @@
      When a CRC error is detected, no indication is given of the
      location in the file where the error(s) occurred.  When
      sending large files, you may want to break them into pieces
-     with the <b><a href="/splits/">splits</a></b> utility so, in
+     with the splits utility so, in
      case of error, only the erroneous pieces need to be re-sent.
 
 <p>
@@ -190,19 +190,10 @@
      information as text before the first codegroup, or
      send an archive created with <b>tar</b> or <b>zip</b>.
 
-<h2><a href="codegroup.zip"><img src="/images/icons/file.gif" alt="" align=middle width=40 height=40></a> <a href="codegroup.zip">Download codegroup.zip</a> (Zipped archive)</h2>
-
-    The program is provided as <a href="codegroup.zip">codegroup.zip</a>, a
-    <a href="http://www.pkware.com/">Zipped</a> archive containing an
-    ready-to-run WIN32 command-line executable program, <code>codegrp.exe</code>
-    (compiled using Microsoft Visual C++ 5.0),
-    and in source code form along with a
-    <code>Makefile</code> to build the program under Unix.
-
 <h3>SEE ALSO</h3>
-     <b><a href="/webtools/base64/">base64</a></b>(1),
+     <b>base64</b>(1),
      <b>gzip</b>(1), <b>pgp</b>(1),
-     <b><a href="/splits/">splits</a></b>(1), <b>tar</b>(1),
+     <b>splits</b>(1), <b>tar</b>(1),
      <b>uuencode</b>(1), <b>zip</b>(1)
 
 <h3>EXIT STATUS</h3>
--- codegroup-19981025.orig/codegroup.c
+++ codegroup-19981025/codegroup.c
@@ -37,8 +37,11 @@
 #define LINELEN  64		      /* Maximum line length */
 #define ERRMAX	 10		      /* Maximum data lost messages to print */
 
-static FILE *fi = stdin;	      /* Input file */
-static FILE *fo = stdout;	      /* Output file */
+/* Have to assign stdin/stdout inside main now - vlm 20040821 */
+/* static FILE *fi = stdin; */ 	      /* Input file */
+/* static FILE *fo = stdout; */	      /* Output file */
+static FILE *fi;
+static FILE *fo;
 
 static char groupbuf[GROUPLEN + 1];   /* Group assembly buffer */
 static char linebuf[LINELEN + 4];     /* Line editing buffer */
@@ -582,6 +585,10 @@
 
 int main(int argc, char *argv[])
 {
+    /*  have to connect stdin/stdout inside main - vlm 2004-08-21 */
+    fi = stdin;
+    fo = stdout;
+
     int i, f = 0, decode = FALSE;
     char *cp, opt;
 
--- codegroup-19981025.orig/codegroup.1
+++ codegroup-19981025/codegroup.1
@@ -54,28 +54,23 @@
 .PP
 .TP 5
 .B base64:
-.CS R 24
 .nf
 H4sICFJ9MzYAA2EudGFyAOxba3faSNKer+lf0SezO3YmgLnY2I6TyQIGgwOGBTtOYjuJEMJo
 DJJGF1+ys//9rarulpqLHRi/mdk9G84JIKGuqq579eNkNn745q9sNru9tcXhs5gtFPAzm83l
 xad88WyxmNssbhe3sps8m8ttZ/M/8K1vL9oPP0RBaPggypU1vrad+59zosj0HqAj9xF//pe8
 WsaVNbTH1rfkAfoobm7ea//cZn4rtv/mNtq/kM9t/cCz31Io9foftz9nnW77oMdfcdMdWJe+
-.CS R
 .fi
 .TP
 .B uuencode:
-.CS R 24
 .nf
 begin 644 data.bin
 M'XL("&7._R\\  VUO;V\\ /9U+FN2XSF3G6H5OA1(?HOB<=/<7__X7TN<PJ[L&
 M=?-&1;I+) B8 0;P?_Z'?WY_-=7Q"T_JSZ_6)X9?&"$\\OU9[N'\\A[A%^L^6=
 M?^M[OOV+:9=UM9J^] MAS_ ;X0O]U];(Z?<WWE9_\\^[/]ZMM\\OO[CG'^2M\\M
 M_G(+,US/LWKZE1#C^YO?D_;O#G[7][2R^+0>XJ^&PI/\\[?7-7U]KU=]SSWQ?
-.CS R
 .fi
 .TP
 .B pgp:
-.CS R 24
 .nf
 -----BEGIN PGP MESSAGE-----
 Version: 2.6.2i
@@ -83,17 +78,14 @@
 hIwCCb8iTku3pBUBA/9oSDlfk/On9bwjmTnB98Eejr6agkPSi3n6hd8JkAtJd33f
 kzFq18Jo0xzRUWZ7Di6Jq/FXpeI1yztVDqispbcYOP0aDv4JZOSF1kRsmJ9xK9Bo
 Cv4a967IXPkkRsjIAkx0B39dYxCzf8kHUn4THmyV/b2qLUZ0cc+mr8hxFfFpuYSM
-.CS R
 .fi
 .TP
 .B codegroup:
-.CS R 24
 .nf
 ZZZZZ YBPIL AIAIG FMOPP CPAAA DGNGP GPGPA ADNJN ELJKO ELIMO
 GEOHF KIFGP IFBCB PKCPI YJMHE PHBHP PPOBH NCOHD AKLLL AGHFP
 DEGEF LKELC EAIJI ABAGP AHPPO IHHPH OHPDF YNFPB ALEPO KMPKP
 NGCHI GFPBI CBDML PFGHL LIHPC BOOBB HOLDO FJNHP OLHLL OPNIL
-.CS R
 .fi
 .PP
 Only
--- codegroup-19981025.orig/Makefile
+++ codegroup-19981025/Makefile
@@ -1,6 +1,7 @@
  
 PROGS = codegroup
 CFLAGS = -O
+BIN = $(DESTDIR)/usr/bin/
 
 all:	$(PROGS)
 
@@ -10,6 +11,9 @@
 codegroup: codegroup.o
 	$(CC) codegroup.o -o codegroup $(CFLAGS)
 
+install:	${ALL}
+	install codegroup ${BIN}
+
 #   Create zipped archive
 
 RELFILES = Makefile codegroup.1 codegroup.c \
@@ -31,11 +35,13 @@
 
 # Test it
 
+# Need ./ notation, most paths don't include . - vlm 2004-08-21
+
 test:	codegroup
-	codegroup -e <codegroup >/tmp/codegroup1.bak
-	codegroup -d </tmp/codegroup1.bak >/tmp/codegroup2.bak
+	./codegroup -e <codegroup >/tmp/codegroup1.bak
+	./codegroup -d </tmp/codegroup1.bak >/tmp/codegroup2.bak
 	cmp codegroup /tmp/codegroup2.bak
-	codegroup -e codegroup /tmp/codegroup1.bak
-	codegroup -d /tmp/codegroup1.bak /tmp/codegroup2.bak
+	./codegroup -e codegroup /tmp/codegroup1.bak
+	./codegroup -d /tmp/codegroup1.bak /tmp/codegroup2.bak
 	cmp codegroup /tmp/codegroup2.bak
 #	rm /tmp/codegroup1.bak /tmp/codegroup2.bak
--- codegroup-19981025.orig/debian/codegroup.doc-base
+++ codegroup-19981025/debian/codegroup.doc-base
@@ -0,0 +1,9 @@
+Document: codegroup
+Title: Codegroup Manual
+Author: John Walker
+Abstract: Codegroup encodes and decodes five letter format files.
+Section: Text
+
+Format: HTML
+Index: /usr/share/doc/codegroup/codegroup.html
+Files: /usr/share/doc/codegroup/codegroup.html
--- codegroup-19981025.orig/debian/upstream.txt
+++ codegroup-19981025/debian/upstream.txt
@@ -0,0 +1,12 @@
+How to create a codegroup-19981025.tar.gz
+
+wget http://www.fourmilab.ch/codegroup/codegroup.zip
+mkdir codegroup-19981025
+mv codegroup.zip codegroup-19981025
+cd codegroup-19981025
+unzip codegroup.zip
+rm codegroup.zip
+rm codegrp.exe # no need for MS windoze binary
+cd ..
+tar -czf codegroup-19981025.tar.gz codegroup-19981025
+
--- codegroup-19981025.orig/debian/dirs
+++ codegroup-19981025/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- codegroup-19981025.orig/debian/copyright
+++ codegroup-19981025/debian/copyright
@@ -0,0 +1,18 @@
+This package was debianized by Vince Mulhollon <vlm@debian.org> on
+Sat, 21 Aug 2004 20:36:44 -0500.
+
+It was downloaded from http://www.fourmilab.ch/codegroup/codegroup.zip
+
+Upstream Author: John Walker postmaster@fourmilab.ch
+
+Copyright:
+
+As seen in codegroup's manpage written by John Walker:
+
+This software is in the public domain.  Permission to use,
+copy,  modify,  and distribute this software and its docu-
+mentation for  any  purpose  and  without  fee  is  hereby
+granted,  without  any  conditions  or restrictions.
+This software is provided ``as is'' without express
+or  implied warranty.
+
--- codegroup-19981025.orig/debian/changelog
+++ codegroup-19981025/debian/changelog
@@ -0,0 +1,64 @@
+codegroup (19981025-6.4.201403171834) ucs4-0-0-0; urgency=low
+
+  * UCS auto build. No patches were applied to the original source package
+
+ -- Univention builddaemon <buildd@univention.de>  Mon, 17 Mar 2014 18:34:24 +0100
+
+codegroup (19981025-6) unstable; urgency=low
+
+  * Upgrade standards version from 3.9.1.0 to 3.9.2.0
+  * Redoing debian/rules into the "tiny" version.
+    The old rules file manually installed the binary into /usr/bin so I
+    added an install: stanza and BIN variable to the makefile.
+  * Minimal debian/watch file added
+  * Explicitly set source format 1.0 (for now) in debian/source/format
+    This makes lintian happy, missing-debian-source-format goes away
+    Eventually I'll switch to Quilt-3.0 format, just not today.
+
+ -- Vince Mulhollon <vlm@debian.org>  Sun, 24 Jul 2011 11:34:48 -0500
+
+codegroup (19981025-5) unstable; urgency=low
+
+  * Added Homepage line to control file 
+
+ -- Vince Mulhollon <vlm@debian.org>  Tue, 01 Mar 2011 13:26:39 -0600
+
+codegroup (19981025-4) unstable; urgency=low
+
+  * Upgraded dh compat from 4 to 8.  Updated control and compat to match.
+    This fixes lintian package-uses-deprecated-debhelper-compat-version
+  * Upgrade standards version from 3.7.2 to 3.9.1.0
+    This fixes lintian ancient-standards-version
+  * Corrected misspelling in the control file.
+    This fixes lintian spelling-error-in-description
+    (Closes: #363210)
+  * Fix section name in codegroup.doc-base
+    This fixes lintian doc-base-unknown-section
+  * Cleaned up whitespace in codegroup.doc-base
+    This fixes doc-base-file-separator-extra-whitespaces
+  * Edited the manpage to not use CS
+    This fixes lintian manpage-has-errors-from-man
+  * Changed from dh_clean -k to dh_prep
+    This fixes lintian dh-clean-k-is-deprecated
+
+ -- Vince Mulhollon <vlm@debian.org>  Tue, 01 Mar 2011 12:17:48 -0600
+
+codegroup (19981025-3) unstable; urgency=low
+
+  * Update standards version from 3.6.1.1 to 3.6.2.0 
+
+ -- Vince Mulhollon <vlm@debian.org>  Fri, 16 Sep 2005 21:05:13 -0500
+
+codegroup (19981025-2) unstable; urgency=low
+
+  * Fix typo in control file
+    (Closes: #277212)
+
+ -- Vince Mulhollon <vlm@debian.org>  Tue, 19 Oct 2004 19:07:55 -0500
+
+codegroup (19981025-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Vince Mulhollon <vlm@debian.org>  Sat, 21 Aug 2004 20:36:44 -0500
+
--- codegroup-19981025.orig/debian/codegroup.manpages
+++ codegroup-19981025/debian/codegroup.manpages
@@ -0,0 +1 @@
+codegroup.1
--- codegroup-19981025.orig/debian/compat
+++ codegroup-19981025/debian/compat
@@ -0,0 +1 @@
+8
--- codegroup-19981025.orig/debian/rules
+++ codegroup-19981025/debian/rules
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@
+
--- codegroup-19981025.orig/debian/control
+++ codegroup-19981025/debian/control
@@ -0,0 +1,23 @@
+Source: codegroup
+Section: text
+Priority: optional
+Maintainer: Vince Mulhollon <vlm@debian.org>
+Build-Depends: debhelper (>= 8)
+Standards-Version: 3.9.2.0
+Homepage: http://www.fourmilab.ch/codegroup/
+
+Package: codegroup
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Convert any file, including binary, into 5 letter code
+ Codegroup converts any file, of any format including raw binary,
+ into a set of five letter uppercase codegroups.
+ The codegroup format includes a 16 bit CRC and file length to verify
+ message integrity.
+ Codegroup does NO CRYPTO.  It's purely a file format converter
+ much like base64 or uuencoding.
+ Unlike other traditional file encoding algorithms such as
+ base64 or uuencoding, codegroup exclusively uses the 26 
+ letter alphabet.
+ Codegroup is ideal for transferring short binary files over a voice
+ or morse code channel.
--- codegroup-19981025.orig/debian/docs
+++ codegroup-19981025/debian/docs
@@ -0,0 +1,3 @@
+codegroup.html
+codegroup.jpg
+debian/upstream.txt
--- codegroup-19981025.orig/debian/watch
+++ codegroup-19981025/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://www.fourmilab.ch/codegroup/codegroup.zip
--- codegroup-19981025.orig/debian/source/format
+++ codegroup-19981025/debian/source/format
@@ -0,0 +1 @@
+1.0
