--- ddrmat-0.11.orig/debian/copyright +++ ddrmat-0.11/debian/copyright @@ -0,0 +1,12 @@ +This package was debianized by Joe Wreschnig on +Wed, 25 Dec 2002 15:37:21 -0600 + +It was downloaded from http://icculus.org/pyddr/get.php + +Upstream Author: Brendan Becker + with code from Vojtech Pavlik + +Copyright: + +The GNU GPL v2 or later, as published by the Free Software Foundation. +This is available in /usr/share/common-licenses/GPL on Debian systems. --- ddrmat-0.11.orig/debian/changelog +++ ddrmat-0.11/debian/changelog @@ -0,0 +1,33 @@ +ddrmat (0.11-1) unstable; urgency=low + + * New upstream version. + + -- Joe Wreschnig Thu, 27 May 2004 23:51:23 -0500 + +ddrmat (0.9-4) unstable; urgency=low + + * Ignore dh_clean failures. (Closes: #211932) + * Change Standards-Version from "3.6.10" to "3.6.1". + * Depend on gcc, make, devscripts, debhelper. + + -- Joe Wreschnig Sun, 21 Sep 2003 21:31:00 -0500 + +ddrmat (0.9-3) unstable; urgency=low + + * s/pyddr/pydance/ + * Bump Standards-Version to 3.6.10. + + -- Joe Wreschnig Mon, 28 Jul 2003 00:58:59 -0500 + +ddrmat (0.9-2) unstable; urgency=low + + * Remove dh_python call, we don't need it. (Closes: #194894) + + -- Joe Wreschnig Tue, 27 May 2003 11:19:25 -0500 + +ddrmat (0.9-1) unstable; urgency=low + + * Split off from the package package (Debian and upstream). + * Bump standards version. + + -- Joe Wreschnig Sun, 18 May 2003 16:32:06 -0500 --- ddrmat-0.11.orig/debian/control +++ ddrmat-0.11/debian/control @@ -0,0 +1,20 @@ +Source: ddrmat +Section: games +Priority: extra +Maintainer: Joe Wreschnig +Build-Depends-Indep: debhelper (>= 4.1.25) +Standards-Version: 3.6.1 + +Package: ddrmat-source +Architecture: all +Section: misc +Depends: debhelper (>= 4.1.25), devscripts (>= 2.5.20), make, gcc +Recommends: kernel-package, pydance +Description: Linux kernel driver for using Playstation dancing mats (source) + This module is a modified version of the standard gaming console + joystick driver (gamecon.o), with better support for the mats used + in Dance Dance Revolution. If you have a DDR mat and a Playstation + to parallel port adapter, this is the module you want. + . + This package contains the source for the driver, which can be compiled + by hand, or using Debian's kernel-package program. --- ddrmat-0.11.orig/debian/rules +++ ddrmat-0.11/debian/rules @@ -0,0 +1,58 @@ +#!/usr/bin/make -f +#export DH_VERBOSE=1 +export DH_COMPAT=4 + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +clean: + dh_testdir + dh_testroot + -make clean + dh_clean + +install: configure + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + install -d debian/ddrmat-source/usr/src/modules/ddrmat/debian + install -d debian/ddrmat-source/usr/share/doc/ddrmat-source + for file in debian/*.MODULE debian/changelog debian/modutils.ddrmat debian/copyright; do \ + cp $$file debian/ddrmat-source/usr/src/modules/ddrmat/`echo $$file | sed 's/\.MODULE$$//'`; \ + done + -cp * debian/ddrmat-source/usr/src/modules/ddrmat + + cd debian/ddrmat-source/usr/src/; \ + chmod 0775 modules/ddrmat/debian/rules; \ + tar pzfvc ddrmat.tar.gz modules/; \ + rm -rf modules/ + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- ddrmat-0.11.orig/debian/rules.MODULE +++ ddrmat-0.11/debian/rules.MODULE @@ -0,0 +1,109 @@ +#!/usr/bin/make -f +# Ripped from the mga-vid source package, +# Originally from the debhelper example code + +#export DH_VERBOSE=1 +export DH_COMPAT=4 + +baseepoch=$(shell expr $(KDREV) : '\([0-9]*\):.*' 2>/dev/null ) +ifneq ($(baseepoch),) +EPOCH=$(baseepoch): +endif + +REV=$(shell expr $(KDREV) : '[0-9]*:\(.*\)' 2>/dev/null) +ifeq ($(REV),) +REV=$(KDREV) +endif + +ARCH=$(shell dpkg --print-architecture) +PKG_VERSION=$(EPOCH)$(VERSION)+$(REV) + +VERSION=$(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2) + +CHFILE=$(KSRC)/../ddrmat-source-$(KVERS)_$(PKG_VERSION)_$(ARCH).changes + +# This target verifies that we've got the needed variables passed to us. +# If the user is using make-kpkg (like he should), it won't be a problem. +# But - some may have a funny preference of using debian/rules directly, +# so here it is. It's ripped from the lm-sensors rules file. +check: + @if [ -z "$(KSRC)" ] ; then \ + echo "I need KSRC! Please set it on the command line." >&2; \ + exit 1; \ + elif [ ! -d "$(KSRC)/include" ] ; then \ + echo "KRSC is set to $(KRSC), but it does not have a include/" >&2; \ + echo "subdirectory! Please fix this." >&2; \ + exit 1; \ + elif [ -z "$(KVERS)" ] ; then \ + echo "KVERS is unset, please set it at the command line." >&2: \ + exit 1; \ + fi + +# This target cleans the source tree and the debian/ subdir. Also moves the +# original debian/control template back to it's original position (thus +# overwriting the generated one. +clean: + dh_testdir + dh_testroot + -dh_clean + + if [ -f debian/control.backup ]; then \ + mv -f debian/control.backup debian/control; \ + fi + + rm -f ddrmat.o build-stamp + +# This target builds the kernel module. +build: build-stamp +build-stamp: check clean + dh_testdir + dh_testroot + + make KERNEL_SOURCE=$(KSRC) KERNEL_VERSION_NUMBER=$(KVERS) + + touch build-stamp + +# This target installs the module to the temporary install directory. +install: + dh_testdir + dh_testroot + make install DESTDIR=debian/ddrmat-$(KVERS) KERNEL_SOURCE=$(KSRC) KERNEL_VERSION_NUMBER=$(KVERS) + install -m 644 -D debian/modutils.ddrmat debian/ddrmat-$(KVERS)/etc/modutils/ddrmat-$(KVERS) + +# To conform with Debian policy. +binary: binary-arch binary-indep + +# Generate a control file, and build the Debian package. +binary-arch: check build install + dh_testdir + dh_testroot + + rm -f debian/control.backup + mv debian/control debian/control.backup + sed 's/(KERNEL_VERSION)/$(KVERS)/g' debian/control.backup > \ + debian/control + + dh_installdirs + dh_installdocs + dh_installmodules + dh_installchangelogs + dh_gencontrol -- -v$(PKG_VERSION) + dh_fixperms + dh_compress + dh_installdeb + dh_md5sums + dh_builddeb --destdir=$(KSRC)/.. + +# No architecture-independent files to build. +binary-indep: + +kdist_image: binary clean + +kdist: clean binary + dpkg-genchanges -b -e"$(KMAINT) <$(KEMAIL)>" -u"$(KSRC)/.." > $(CHFILE) + debian/rules clean + +kdist_configure: +kdist_clean: clean + +.PHONY: check clean build install binary binary-arch binary-indep kdist_image kdist kdist_configure kdist_clean --- ddrmat-0.11.orig/debian/control.MODULE +++ ddrmat-0.11/debian/control.MODULE @@ -0,0 +1,19 @@ +Source: ddrmat +Section: games +Priority: optional +Build-Depends: debhelper (>= 4.1.25) +Maintainer: Joe Wreschnig +Standards-Version: 3.6.1 + +Package: ddrmat-(KERNEL_VERSION) +Architecture: i386 +Section: misc +Priority: extra +Recommends: pydance +Description: Kernel driver for using Dance Dance Revolution mats + This module is a modified version of the standard gaming console + joystick driver (gamecon.o), with better support for the mats used + in Dance Dance Revolution. If you have a DDR mat and a Playstation + to parallel port adapter, this is the module you want. + . + This package contains the module compiled for (KERNEL_VERSION). --- ddrmat-0.11.orig/debian/docs.MODULE +++ ddrmat-0.11/debian/docs.MODULE @@ -0,0 +1 @@ +README --- ddrmat-0.11.orig/debian/modutils.ddrmat +++ ddrmat-0.11/debian/modutils.ddrmat @@ -0,0 +1,4 @@ +# If your parallel port doesn't use IRQ 7, you might need to change this +# (for example, if you have an LPT2). +options ddrmat gc=0,7 +pre-install ddrmat modprobe parport_pc && modprobe joydev --- ddrmat-0.11.orig/debian/postinst.MODULE +++ ddrmat-0.11/debian/postinst.MODULE @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +if [ "$1" = configure ]; then + update-modules || true +fi + +#DEBHELPER# + +exit 0 --- ddrmat-0.11.orig/debian/postrm.MODULE +++ ddrmat-0.11/debian/postrm.MODULE @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +if [ "$1" = "upgrade" -o "$1" = "remove" ]; then + update-modules || true +fi + +#DEBHELPER# + +exit 0 --- ddrmat-0.11.orig/debian/.step +++ ddrmat-0.11/debian/.step @@ -0,0 +1,16 @@ +version 0.4 +file /home/piman/projects/debian/pyddr/pyddr-0.6.0/debian/.mp3 +song instep song +group instep group +bpm 140 +offset 150 + +SINGLE +BASIC 16 +delay 8 +ready +delay 8 + +eight 00 00 00 00 + +end