--- gpsk31-0.5.orig/gpsk31.diff +++ gpsk31-0.5/gpsk31.diff @@ -0,0 +1,50 @@ +Author: aurel32 +Status: in BTS + +diff -u gpsk31-0.2.4a/src/psk31-transmitter.C gpsk31-0.2.4a/src/psk31-transmitter.C +--- gpsk31-0.2.4a/src/psk31-transmitter.C ++++ gpsk31-0.2.4a/src/psk31-transmitter.C +@@ -11,7 +11,12 @@ + #include + #include + #include ++#if defined(__linux__) + #include ++#endif ++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ++#include ++#endif + #include + #include "psk31-coder.h" + #include "psk31-transmitter.h" +diff -u gpsk31-0.2.4a/src/main.C gpsk31-0.2.4a/src/main.C +--- gpsk31-0.2.4a/src/main.C ++++ gpsk31-0.2.4a/src/main.C +@@ -29,7 +29,12 @@ + #include + #include + #include ++#if defined(__linux__) + #include ++#endif ++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ++#include ++#endif + #include + #include + #include +--- gpsk31-0.2.4a.orig/src/spectrum.C ++++ gpsk31-0.2.4a/src/spectrum.C +@@ -30,7 +30,12 @@ + #include + #include + #include ++#if defined(__linux__) + #include ++#endif ++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ++#include ++#endif + + #include + #include --- gpsk31-0.5.orig/src/socketif.C +++ gpsk31-0.5/src/socketif.C @@ -186,7 +186,13 @@ int tcp_send(char *buf, int len) { int sts; - sts = send(stream_fd, buf, len, MSG_MORE); + int flags; +#ifdef MSG_MORE + flags = MSG_MORE; +#else + flags = 0; +#endif + sts = send(stream_fd, buf, len, flags); return sts; } --- gpsk31-0.5.orig/debian/rules +++ gpsk31-0.5/debian/rules @@ -0,0 +1,103 @@ +#!/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 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +config.status: configure + dh_testdir + # Add here commands to configure the package. + cp -f /usr/share/misc/config.guess . + cp -f /usr/share/misc/config.sub . + CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + + +build: build-stamp + +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/gpsk31.sgml > gpsk31.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp config.log + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) distclean + + rm -f config.guess config.sub + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/gpsk31. + $(MAKE) install DESTDIR=$(CURDIR)/debian/gpsk31 + + +# 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 ChangeLog + 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_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- gpsk31-0.5.orig/debian/docs +++ gpsk31-0.5/debian/docs @@ -0,0 +1,2 @@ +TODO +AUTHORS --- gpsk31-0.5.orig/debian/menu +++ gpsk31-0.5/debian/menu @@ -0,0 +1,2 @@ +?package(gpsk31):needs="X11" section="Applications/Amateur Radio"\ + title="gpsk31" command="/usr/bin/gpsk31" --- gpsk31-0.5.orig/debian/copyright +++ gpsk31-0.5/debian/copyright @@ -0,0 +1,35 @@ +This package was debianized by Carlos Barros on +Thu, 22 Dec 2005 21:30:56 +0000. + +It was downloaded from http://pg4i.chronos.org.uk/download + +Copyright Holder: Luc Langehegermann, LX2GT + Hansi Reiser, DL9RDZ + Joop Stakenborg, PG4I + +License, from src/main.C: + +/* gpsk31 - PSK31 for Linux with a GTK+ Interface + * Copyright (C) 2000 Luc Langehegermann, LX2GT + * Copyright (C) 2005 Joop Stakenborg, PG4I + * + * 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 + */ + +Both gpsk31 and the Debian packaging work are licensed under +the GNU General Public License version 2, which can be found in +`/usr/share/common-licenses/GPL-2'. + --- gpsk31-0.5.orig/debian/compat +++ gpsk31-0.5/debian/compat @@ -0,0 +1 @@ +4 --- gpsk31-0.5.orig/debian/control +++ gpsk31-0.5/debian/control @@ -0,0 +1,14 @@ +Source: gpsk31 +Section: hamradio +Priority: optional +Maintainer: Debian QA Group +Build-Depends: debhelper (>> 4.0.0), libgtk2.0-dev, autotools-dev +Standards-Version: 3.8.0 + +Package: gpsk31 +Architecture: any +Depends: ${shlibs:Depends} +Description: A gtk based psk31 + This is a PSK31 transmission mode program using the sound card and + optionally serial port to PTT the RIG. + It has nice functions and listen very well. --- gpsk31-0.5.orig/debian/changelog +++ gpsk31-0.5/debian/changelog @@ -0,0 +1,126 @@ +gpsk31 (0.5-3) unstable; urgency=low + + * QA upload. + * Fix FTBFS on GNU/kFreeBSD (Closes: #557160): only pass MSG_MORE if + it's defined. It might not be sufficient to get a working package on + GNU/kFreeBSD, bug reports are (as always) welcome. + * Tweak config.{guess,sub} handling: + - Unconditionally copy them before configure (there's autotools-dev + in Build-Depends already). + - Remove them in the clean target to keep the Debian diff clean. + + -- Cyril Brulebois Mon, 21 Dec 2009 10:38:58 +0100 + +gpsk31 (0.5-2) unstable; urgency=low + + * Retiring - set the package maintainer to Debian QA Group. + + -- Joop Stakenborg Sun, 01 Nov 2009 19:23:30 +0000 + +gpsk31 (0.5-1) unstable; urgency=low + + * New upstream release + * Update standards version + + -- Joop Stakenborg Sun, 29 Jun 2008 20:18:59 +0200 + +gpsk31 (0.4.2-1) unstable; urgency=low + + * New upstream release + + -- Joop Stakenborg Thu, 29 May 2008 19:36:12 +0200 + +gpsk31 (0.4.1-1) unstable; urgency=low + + * New upstream release. + + -- Joop Stakenborg Mon, 21 Apr 2008 23:29:18 +0200 + +gpsk31 (0.3.2-1) unstable; urgency=low + + * New upstream release. + * Fixes buffer overflow reading config file. Closes: #466850. + * New maintainer. + * Add Uploaders field to the control file with Carlos Barros, who is the + previous maintainer and me (upstream maintainer). + * Menu transition. + * Several lintian fixes. + * Remove debian manual page, is now provided upstream. + * Remove README from the docs, it is provided upstream in /usr/share/gpsk31 + and also available through the Help menu. + + -- Joop Stakenborg Mon, 25 Feb 2008 21:29:36 +0100 + +gpsk31 (0.3-1) unstable; urgency=low + + * New upstream version, closes: #363560. + + -- Carlos Barros Wed, 10 May 2006 21:30:46 +0200 + +gpsk31 (0.2.99-1) unstable; urgency=low + + * New upstream maintainer Joop Stakenborg PG4I. + * Fix FTBFS on GNU/kFreeBSD, closes: #336917. + * Trying to close a previous fixed bug report, closes: #117073. + + -- Carlos Barros Thu, 22 Dec 2005 21:30:46 +0100 + +gpsk31 (0.2.4a-7) unstable; urgency=low + + * Closes: #119923: Adopting NMU fixes. + * Closes: #260910: Changed manual to document options. + * Closes: #260902: Fixed message "unable to open file". + * Closes: #260912: Removed file /usr/share/doc/gpsk31/gpsk31.conf. + * Closes: #266946: Applied patch to fix FTBFS with gcc/g++ 3.4. + + -- Carlos Barros Sat, 4 Dec 2004 21:40:46 +0100 + +gpsk31 (0.2.4a-6.1) unstable; urgency=low + + * Non-maintainer upload during BSP + * Update config.sub,config.guess again as these updates + seems to have been lost (Closes: #119923) + + -- Frank Lichtenheld Sat, 20 Mar 2004 00:58:11 +0100 + +gpsk31 (0.2.4a-6) unstable; urgency=low + + * Packaging with a newer gcc/g++. + + -- Carlos Barros Fri, 13 Feb 2004 14:40:46 +0100 + +gpsk31 (0.2.4a-5) unstable; urgency=low + + * Closing fixed bugs. Closes: #119923, #117073. + + -- Carlos Barros Tue, 23 Apr 2002 21:45:14 -0300 + +gpsk31 (0.2.4a-4) unstable; urgency=low + + * update the manpage and change it name to gpsk31.1.gz + instead of manpage.1.gz . + + -- Carlos Barros Tue, 4 Dec 2001 01:50:31 -0300 + +gpsk31 (0.2.4a-3) unstable; urgency=low + + * Update config.{guess,sub} (closes: Bug#119923) + * make it compile under gcc 3.0 (closes: Bug#117703) + + -- Carlos Barros Tue, 4 Dec 2001 00:33:01 -0300 + +gpsk31 (0.2.4a-2) unstable; urgency=low + + * Lintian clean. + + -- Carlos Barros Mon, 13 Aug 2001 22:52:51 -0300 + +gpsk31 (0.2.4a-1) unstable; urgency=low + + * Initial Release. + + -- Carlos Barros Fri, 10 Aug 2001 21:54:20 -0300 + +Local variables: +mode: debian-changelog +End: --- gpsk31-0.5.orig/debian/dirs +++ gpsk31-0.5/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/gpsk31