From da521135a17f9f0403de7337599482a6f08c44a9 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Tue, 21 Jan 2003 02:09:40 +0000 Subject: [PATCH] r3817: *** empty log message *** --- Makefile | 7 ++++ debian/README.Debian | 6 +++ debian/changelog | 6 +++ debian/control | 14 +++++++ debian/copyright | 15 +++++++ debian/dirs | 3 ++ debian/postinst | 48 ++++++++++++++++++++++ debian/postrm | 38 +++++++++++++++++ debian/preinst | 44 ++++++++++++++++++++ debian/prerm | 39 ++++++++++++++++++ debian/rules | 98 ++++++++++++++++++++++++++++++++++++++++++++ 11 files changed, 318 insertions(+) create mode 100644 Makefile create mode 100644 debian/README.Debian create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/dirs create mode 100644 debian/postinst create mode 100644 debian/postrm create mode 100644 debian/preinst create mode 100644 debian/prerm create mode 100755 debian/rules diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d84b290 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +compile: + g++ -O2 -I. wdq2wav.cpp -o wdq2wav + +install: compile + install -m 0755 -u root -g root wdq2wav $(DESTDIR)/usr/bin + install -m 0644 -u root -g root wdq2wav.1 $(DESTDIR)/usr/share/man/man1 + diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..931ec17 --- /dev/null +++ b/debian/README.Debian @@ -0,0 +1,6 @@ +wdq2wav for Debian +------------------ + + + + -- Kevin M. Rosenberg , Mon, 20 Jan 2003 18:59:50 -0700 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..9d3d033 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +wdq2wav (1.0-1) unstable; urgency=low + + * Initial Release. + + -- Kevin M. Rosenberg Mon, 20 Jan 2003 18:59:50 -0700 + diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..f8f097b --- /dev/null +++ b/debian/control @@ -0,0 +1,14 @@ +Source: wdq2wav +Section: contrib/utils +Priority: extra +Maintainer: Kevin M. Rosenberg +Build-Depends: debhelper (>> 4.0.0) +Standards-Version: 3.5.8 + +Package: wdq2wav +Architecture: any +Depends: ${shlibs:Depends} +Description: Converts a WinDAQ channel to sound .wav file + This program extracts a channel from a WinDAQ file and produces + a .wav file that can be played. This is helpful when recording a + chatter channel for a WinDAQ session with multiple A/D channels. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..10f8a52 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,15 @@ +This package was debianized by Kevin M. Rosenberg on +Mon, 20 Jan 2003 18:59:50 -0700. + +It was downloaded from ftp://wdq2wav.b9.com/ + +Upstream Authors: Kevin M. Rosenberg + +Copyright: + +Copyright (C) 2003 by Kevin M. Rosenberg + +This program is licensed under the GNU General Public License. A +copy of this license is in your Debian file system as +/usr/share/common-licenses/GPL. + diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 0000000..625e527 --- /dev/null +++ b/debian/dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/man/man1 + diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..5db5772 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,48 @@ +#! /bin/sh +# postinst script for wdq2wav +# +# 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 http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# 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 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 0000000..8da4652 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,38 @@ +#! /bin/sh +# postrm script for wdq2wav +# +# 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 http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/preinst b/debian/preinst new file mode 100644 index 0000000..199f4c9 --- /dev/null +++ b/debian/preinst @@ -0,0 +1,44 @@ +#! /bin/sh +# preinst script for wdq2wav +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) +# if [ "$1" = "upgrade" ] +# then +# start-stop-daemon --stop --quiet --oknodo \ +# --pidfile /var/run/wdq2wav.pid \ +# --exec /usr/sbin/wdq2wav 2>/dev/null || true +# fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/prerm b/debian/prerm new file mode 100644 index 0000000..9cb9a7d --- /dev/null +++ b/debian/prerm @@ -0,0 +1,39 @@ +#! /bin/sh +# prerm script for wdq2wav +# +# 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 http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) +# install-info --quiet --remove /usr/info/wdq2wav.info.gz + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +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 100755 index 0000000..3cb75fa --- /dev/null +++ b/debian/rules @@ -0,0 +1,98 @@ +#!/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 compatibility version to use. +export DH_COMPAT=4 + + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #/usr/bin/docbook-to-man debian/wdq2wav.sgml > wdq2wav.1 + + 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) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/wdq2wav. + $(MAKE) install DESTDIR=$(CURDIR)/debian/wdq2wav + + +# 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_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 + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + 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 -- 2.34.1