From 3fe5d3cd9831558df334839a4d277c6e00c6332a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Sat, 21 Jul 2001 13:10:12 +0000 Subject: [PATCH] initial release git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@602 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- debian/README.Debian | 7 +++ debian/changelog | 16 +++++++ debian/conffiles.ex | 7 +++ debian/control | 38 +++++++++++++++ debian/copyright | 14 ++++++ debian/dirs | 2 + debian/docs | 9 ++++ debian/hamlib-dev.dirs | 2 + debian/hamlib-dev.files | 2 + debian/hamlib1.dirs | 1 + debian/hamlib1.files | 1 + debian/manpage.1.ex | 60 ++++++++++++++++++++++++ debian/postinst.ex | 47 +++++++++++++++++++ debian/postrm.ex | 36 ++++++++++++++ debian/preinst.ex | 42 +++++++++++++++++ debian/prerm.ex | 37 +++++++++++++++ debian/rules | 101 ++++++++++++++++++++++++++++++++++++++++ debian/shlibs.local | 1 + debian/watch.ex | 5 ++ 19 files changed, 428 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/changelog create mode 100644 debian/conffiles.ex create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/docs create mode 100644 debian/hamlib-dev.dirs create mode 100644 debian/hamlib-dev.files create mode 100644 debian/hamlib1.dirs create mode 100644 debian/hamlib1.files create mode 100644 debian/manpage.1.ex create mode 100644 debian/postinst.ex create mode 100644 debian/postrm.ex create mode 100644 debian/preinst.ex create mode 100644 debian/prerm.ex create mode 100644 debian/rules create mode 100644 debian/shlibs.local create mode 100644 debian/watch.ex diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 000000000..70b347107 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,7 @@ +hamlib for Debian +----------------- + +This package has been compiled without WinRadio support. +If this causes you grief, let me know. + + -- Terry Dawson , Sun, 24 Jun 2001 22:02:12 +1000 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 000000000..3239b91cc --- /dev/null +++ b/debian/changelog @@ -0,0 +1,16 @@ +hamlib (1.1.1-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Run libtoolize to get support for new architectures. Closes: #104602 + + -- LaMont Jones Fri, 13 Jul 2001 16:41:45 -0600 + +hamlib (1.1.1-1) unstable; urgency=low + + * Initial Release. (Closes: #102342) + + -- Terry Dawson Sun, 24 Jun 2001 22:02:12 +1000 + +Local variables: +mode: debian-changelog +End: diff --git a/debian/conffiles.ex b/debian/conffiles.ex new file mode 100644 index 000000000..2f390c7e9 --- /dev/null +++ b/debian/conffiles.ex @@ -0,0 +1,7 @@ +# +# If you want to use this conffile, remove all comments and put files that +# you want dpkg to process here using their absolute pathnames. +# See section 9.1 of the packaging manual. +# +# for example: +# /etc/hamlib/hamlib.conf diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..fbf1a3c05 --- /dev/null +++ b/debian/control @@ -0,0 +1,38 @@ +Source: hamlib +Section: hamradio +Priority: optional +Maintainer: Terry Dawson +Build-Depends: debhelper (>> 3.0.0), autoconf, automake, libtool +Standards-Version: 3.5.2 + +Package: hamlib-dev +Architecture: any +Depends: hamlib1 (= ${Source-Version}), libc6-dev +Description: Development library to control radio transcievers and receivers. + Most recent amateur radio transceivers allow external control of their + functions through a computer interface. Unfortunately, control commands are + not always consistent across a manufacturer's product line and each + manufacturer's product line differs greatly from its competitors. + . + This library addresses that issue by providing a standardised programming + interface that applications can talk to and translating that into the + appropriate commands required by the radio in use. + . + This package provides the development library. If you wish to run applications + developed using this library you'll need the 'hamlib' package. + +Package: hamlib1 +Architecture: any +Depends: ${shlibs:Depends} +Description: Run-time library to control radio transcievers and receivers. + Most recent amateur radio transceivers allow external control of their + functions through a computer interface. Unfortunately, control commands are + not always consistent across a manufacturer's product line and each + manufacturer's product line differs greatly from its competitors. + . + This library addresses that issue by providing a standardised programming + interface that applications can talk to and translating that into the + appropriate commands required by the radio in use. + . + This package provides the run-time form of the library. If you wish to + develop software using this library you need the 'hamlib-dev' package. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 000000000..17328f095 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,14 @@ +This package was debianized by Terry Dawson on +Sun, 24 Jun 2001 22:02:12 +1000. + +It was downloaded from http://sourceforge.net/projects/hamlib + +Upstream Author(s): Frank Singleton, VK3FCS/KM5WS + Stephane Fillod, F4CFE + et.al. + +Copyright: + +This package is released under the terms of the GNU Public License version 2. +See /usr/share/apps/LICENSES/GPL_V2 for the detailed terms and conditions. + diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 000000000..ca882bbb7 --- /dev/null +++ b/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff --git a/debian/docs b/debian/docs new file mode 100644 index 000000000..b57bb1b6e --- /dev/null +++ b/debian/docs @@ -0,0 +1,9 @@ +INSTALL +NEWS +README +TODO +PLAN +AUTHORS +THANKS +ChangeLog +doc/ diff --git a/debian/hamlib-dev.dirs b/debian/hamlib-dev.dirs new file mode 100644 index 000000000..44188162e --- /dev/null +++ b/debian/hamlib-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include diff --git a/debian/hamlib-dev.files b/debian/hamlib-dev.files new file mode 100644 index 000000000..07740b80a --- /dev/null +++ b/debian/hamlib-dev.files @@ -0,0 +1,2 @@ +usr/include/* +usr/lib/lib*.a diff --git a/debian/hamlib1.dirs b/debian/hamlib1.dirs new file mode 100644 index 000000000..68457717b --- /dev/null +++ b/debian/hamlib1.dirs @@ -0,0 +1 @@ +usr/lib diff --git a/debian/hamlib1.files b/debian/hamlib1.files new file mode 100644 index 000000000..8aa4466a6 --- /dev/null +++ b/debian/hamlib1.files @@ -0,0 +1 @@ +usr/lib/lib*.so* diff --git a/debian/manpage.1.ex b/debian/manpage.1.ex new file mode 100644 index 000000000..7f0aef4e1 --- /dev/null +++ b/debian/manpage.1.ex @@ -0,0 +1,60 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH HAMLIB SECTION "June 24, 2001" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +hamlib \- program to do something +.SH SYNOPSIS +.B hamlib +.RI [ options ] " files" ... +.br +.B bar +.RI [ options ] " files" ... +.SH DESCRIPTION +This manual page documents briefly the +.B hamlib +and +.B bar +commands. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +Instead, it has documentation in the GNU Info format; see below. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBhamlib\fP is a program that... +.SH OPTIONS +These programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options is included below. +For a complete description, see the Info files. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH SEE ALSO +.BR bar (1), +.BR baz (1). +.br +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +This manual page was written by Terry Dawson , +for the Debian GNU/Linux system (but may be used by others). diff --git a/debian/postinst.ex b/debian/postinst.ex new file mode 100644 index 000000000..b1816da60 --- /dev/null +++ b/debian/postinst.ex @@ -0,0 +1,47 @@ +#! /bin/sh +# postinst script for hamlib +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/share/doc/packaging-manual/ +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/postrm.ex b/debian/postrm.ex new file mode 100644 index 000000000..c1514bc39 --- /dev/null +++ b/debian/postrm.ex @@ -0,0 +1,36 @@ +#! /bin/sh +# postrm script for hamlib +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see /usr/share/doc/packaging-manual/ + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 0 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + + diff --git a/debian/preinst.ex b/debian/preinst.ex new file mode 100644 index 000000000..fc0f7ec9d --- /dev/null +++ b/debian/preinst.ex @@ -0,0 +1,42 @@ +#! /bin/sh +# preinst script for hamlib +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# For details see /usr/share/doc/packaging-manual/ + +case "$1" in + install|upgrade) +# if [ "$1" = "upgrade" ] +# then +# start-stop-daemon --stop --quiet --oknodo \ +# --pidfile /var/run/hamlib.pid \ +# --exec /usr/sbin/hamlib 2>/dev/null || true +# fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/prerm.ex b/debian/prerm.ex new file mode 100644 index 000000000..b7ea40bed --- /dev/null +++ b/debian/prerm.ex @@ -0,0 +1,37 @@ +#! /bin/sh +# prerm script for hamlib +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/share/doc/packaging-manual/ + +case "$1" in + remove|upgrade|deconfigure) +# install-info --quiet --remove /usr/info/hamlib.info.gz + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/rules b/debian/rules new file mode 100644 index 000000000..87701bbf2 --- /dev/null +++ b/debian/rules @@ -0,0 +1,101 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=3 + +# shared library versions, option 1 +version=1.1.1 +major=1 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +#version=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +#major=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + ./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(MAKE) install prefix=$(CURDIR)/debian/tmp + + # Move the appropriate files into the development package.. + mv $(CURDIR)/debian/tmp/lib/libhamlib.so $(CURDIR)/debian/hamlib-dev/usr/lib/ + mv $(CURDIR)/debian/tmp/lib/*.a $(CURDIR)/debian/hamlib-dev/usr/lib/ + mv $(CURDIR)/debian/tmp/include/*.h $(CURDIR)/debian/hamlib-dev/usr/include/ + + # Move the appropriate files into the runtime package.. + mv $(CURDIR)/debian/tmp/lib/*.so $(CURDIR)/debian/hamlib1/usr/lib/ + +# 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_movefiles + +# dh_installdebconf + dh_installdocs +# dh_installexamples +# dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron + dh_installman +# dh_installinfo +# dh_undocumented + dh_installchangelogs ChangeLog +# dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs -Xaor -Xdummy -Xicom -Xkenwood -Xpcr -Xft747 -Xft847 -Xwinradio + 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 configure diff --git a/debian/shlibs.local b/debian/shlibs.local new file mode 100644 index 000000000..b5f5789ba --- /dev/null +++ b/debian/shlibs.local @@ -0,0 +1 @@ +libhamlib1 1.1.1 hamlib (>> 1.1.1-0), hamlib (<< 1.1.1-99) diff --git a/debian/watch.ex b/debian/watch.ex new file mode 100644 index 000000000..c65da04c4 --- /dev/null +++ b/debian/watch.ex @@ -0,0 +1,5 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# Site Directory Pattern Version Script +sunsite.unc.edu /pub/Linux/Incoming hamlib-(.*)\.tar\.gz debian uupdate