--- vdmfec-1.0.orig/debian/docs +++ vdmfec-1.0/debian/docs @@ -0,0 +1,2 @@ +README +README.fec --- vdmfec-1.0.orig/debian/manpages +++ vdmfec-1.0/debian/manpages @@ -0,0 +1,2 @@ +*.1 +*.3 --- vdmfec-1.0.orig/debian/rules +++ vdmfec-1.0/debian/rules @@ -0,0 +1,20 @@ +#!/usr/bin/make -f +# debian/rules for vdmfec using cdbs +# Andreas Tille , GPL + +include /usr/share/cdbs/1/rules/simple-patchsys.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk + +DEB_MAKE_INSTALL_TARGET := install prefix=$(CURDIR)/debian/vdmfec/usr + +VERSION=1.0 +get-orig-source: + wget http://members.tripod.com/professor_tom/archives/vdmfec-$(VERSION).tgz + mkdir tmp + cd tmp ; \ + tar -xzf ../vdmfec-$(VERSION).tgz ; \ + rm -f vdmfec-$(VERSION)/fec_ccr.ps.gz; \ + GZIP=-9 tar -czf ../vdmfec_$(VERSION).orig.tar.gz * ; + rm -rf tmp + rm -f vdmfec-$(VERSION).tgz --- vdmfec-1.0.orig/debian/compat +++ vdmfec-1.0/debian/compat @@ -0,0 +1 @@ +5 --- vdmfec-1.0.orig/debian/dirs +++ vdmfec-1.0/debian/dirs @@ -0,0 +1 @@ +usr/bin --- vdmfec-1.0.orig/debian/README.Debian +++ vdmfec-1.0/debian/README.Debian @@ -0,0 +1,17 @@ +vdmfec for Debian +----------------- + +This package served as useful example in a workshop about Debian +packaging at Max-Planck-Institut für Kognitions- und Neurowissenschaften. +While it would be a shame to have this not uninteresting program +ready packaged hanging around anywhere it was finally uploaded +to serve our users. I have no special interest in it and would +offer it for adoption to anybody. + +The original tarball contains a documentation file (fec_ccr.ps.gz) +that has no sufficient copyright for inclusion into Debian. Thus +it was excluded from the source tarball. You can read this file +at the page of the author of the paper at + http://info.iet.unipi.it/~luigi/fec.html + + -- Andreas Tille , Sat, 30 Sep 2006 13:46:44 +0200 --- vdmfec-1.0.orig/debian/changelog +++ vdmfec-1.0/debian/changelog @@ -0,0 +1,22 @@ +vdmfec (1.0-2) unstable; urgency=low + + * XCBS-URL -> Homepage and removed "Homepage" from long desc + Closes: #479125 + * Standards-Version: 3.7.3 (no changes needed) + + -- Andreas Tille Sat, 03 May 2008 22:30:29 +0200 + +vdmfec (1.0-1) unstable; urgency=low + + * First official release (Closes: #390292) + * Switched to cdbs (for educational purposes) + * Removed fec_ccr.ps.gz which has no source and the author has + granted the copyright to the publisher + + -- Andreas Tille Fri, 6 Oct 2006 19:22:21 +0200 + +vdmfec (1.0-0.1) unstable; urgency=low + + * First packaging using debhelper + + -- Andreas Tille Sat, 30 Sep 2006 13:46:44 +0200 --- vdmfec-1.0.orig/debian/copyright +++ vdmfec-1.0/debian/copyright @@ -0,0 +1,59 @@ +This package was debianized by Andreas Tille on +Sat, 30 Sep 2006 13:46:44 +0200. + +It was downloaded from http://members.tripod.com/professor_tom/archives + +Upstream Author: Tom Holroyd + +Copyright: 2001 by Tom Holroyd + +License: + +This software is released under GPL. On Debian systems, the complete +text of the GNU General Public License can be found in +`/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2006, Andreas Tille and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + + +fec.c +----- +fec.c -- forward error correction based on Vandermonde matrices + 980624 +(C) 1997-98 Luigi Rizzo (luigi@iet.unipi.it) + + Portions derived from code by Phil Karn (karn@ka9q.ampr.org), + Robert Morelos-Zaragoza (robert@spectra.eng.hawaii.edu) and Hari + Thirumoorthy (harit@spectra.eng.hawaii.edu), Aug 1995 + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, + OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + OF SUCH DAMAGE. + + THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, + THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A + PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + --- vdmfec-1.0.orig/debian/links +++ vdmfec-1.0/debian/links @@ -0,0 +1,2 @@ +usr/share/man/man1/vdmfec.1 usr/share/man/man1/vdm_decode.1 +usr/share/man/man1/vdmfec.1 usr/share/man/man1/vdm_encode.1 --- vdmfec-1.0.orig/debian/watch +++ vdmfec-1.0/debian/watch @@ -0,0 +1,8 @@ +# watch control file for vdmfec + +version=3 + +http://members.tripod.com/professor_tom/archives/vdmfec-(.*)\.tgz + +# This works as well: +# http://members.tripod.com/professor_tom/archives vdmfec-(.*)\.tgz --- vdmfec-1.0.orig/debian/control +++ vdmfec-1.0/debian/control @@ -0,0 +1,21 @@ +Source: vdmfec +Section: misc +Priority: extra +Maintainer: Andreas Tille +Build-Depends: cdbs (>= 0.4.23-1.1), patchutils (>= 0.2.25), debhelper (>= 5) +Standards-Version: 3.7.3 +Homepage: http://members.tripod.com/professor_tom/archives/ + +Package: vdmfec +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: recover lost blocks using Forward Error Correction + VDMFEC implements Block ECC using a Forward Error Correction + (FEC) code based on Vandermonde (VDM) matrices in GF(2^8) due + to Luigi Rizzo. Given the FEC parameters K and N, with N + greater than K, N blocks are written for every K input blocks + in such a way that any K blocks are sufficient to reconstruct + the data. That is, up to N - K blocks out of every group of N + blocks may be lost without loss of data. Its primary + application is intended to be in recovering data from + unreliable media such as diskettes. --- vdmfec-1.0.orig/debian/patches/fec.3.diff +++ vdmfec-1.0/debian/patches/fec.3.diff @@ -0,0 +1,68 @@ +--- fec.3.orig 2001-09-19 11:06:14.000000000 +0200 ++++ fec.3 2006-10-06 19:56:12.000000000 +0200 +@@ -52,7 +52,6 @@ + and passing it pointers to the code descriptor, the source and + destination data packets, the index of the packet to be produced, + and the size of the packet. +- + .Pp Decoding is done calling + .Fn fec_decode + with pointers to the code, received packets, indexes of received +@@ -61,22 +60,21 @@ + as long as the received packets are different. The decoding procedure + does some limited testing on this and returns if parameters are + invalid. +- + .Sh EXAMPLE + .nf + #include +- ++.Pp + /* + * example of sender code + */ + void *code ; + int n, k ; +- ++.Pp + void *src[] ; + void *pkt ; +- ++.Pp + code = new_code (k, n ); +- ++.Pp + for (i = 0 ; i < k ; i++ ) + src[i] = .. pointer to i-th source packet .. + for (each packet to transmit) { +@@ -85,18 +83,18 @@ + .. use packet in pkt + } + fec_free(code) ; +- ++.Pp + /* + * example of receiver code + */ + void *code ; + int n, k ; +- ++.Pp + void *data[] ; + int *ix[] ; +- ++.Pp + code = new_code (k, n ); +- ++.Pp + for (i = 0 ; i < k ; i++ ) { + ... receive a new packet ... + data[i] = .. pointer to i-th source packet .. +@@ -106,7 +104,5 @@ + /* + * now data[] has pointers to the source packets + */ +- + .SH BUGS + Please direct bug reports to luigi@iet.unipi.it . +-.Sh "SEE ALSO"