--- hama-slide-mouse-control-1.0.orig/Makefile +++ hama-slide-mouse-control-1.0/Makefile @@ -24,7 +24,7 @@ doc: hama-slide-mouse-control.1 hama-slide-mouse-control.html hama-slide-mouse-control: hama-slide-mouse-control.c Makefile - $(CC) -lusb -Wall -W -O2 $(DEBUG) -o "$@" "$<" + $(CC) -Wall -W -O2 $(DEBUG) -o "$@" "$<" -lusb clean: rm -f *~ hama-slide-mouse-control --- hama-slide-mouse-control-1.0.orig/debian/compat +++ hama-slide-mouse-control-1.0/debian/compat @@ -0,0 +1 @@ +5 --- hama-slide-mouse-control-1.0.orig/debian/README.Debian +++ hama-slide-mouse-control-1.0/debian/README.Debian @@ -0,0 +1,11 @@ +hama-slide-mouse-control for Debian +----------------------------------- + +You can configure udev to set up the mouse whenever it is plugged in, by copying +60-hama-slide-mouse-control.rules from +/usr/share/doc/hama-slide-mouse-control/examples into /etc/udev/rules.d + +See the manpage hama-slide-mouse-control(1) or the equivalent HTML documentation +in /usr/share/doc/hama-slide-mouse-control/hama-slide-mouse-control.html for details. + + -- Richard Atterer Tue, 12 Jun 2007 00:34:43 +0200 --- hama-slide-mouse-control-1.0.orig/debian/preinst +++ hama-slide-mouse-control-1.0/debian/preinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +if [ "$1" = install ] || [ "$1" = upgrade ]; then + if [ -e "/etc/udev/rules.d/60-hama-slide-mouse-control.rules" ]; then + if [ "`md5sum \"/etc/udev/rules.d/60-hama-slide-mouse-control.rules\" | sed -e \"s/ .*//\"`" = \ + "`dpkg-query -W -f='${Conffiles}' hama-slide-mouse-control | sed -n -e \"\\\\' /etc/udev/rules.d/60-hama-slide-mouse-control.rules's/.* //p\"`" ] + then + rm -f "/etc/udev/rules.d/60-hama-slide-mouse-control.rules" + fi + fi +fi + +#DEBHELPER# --- hama-slide-mouse-control-1.0.orig/debian/rules +++ hama-slide-mouse-control-1.0/debian/rules @@ -0,0 +1,74 @@ +#!/usr/bin/make -f + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + $(MAKE) + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + -$(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) DESTDIR=$(CURDIR)/debian/hama-slide-mouse-control install + rm -rf debian/hama-slide-mouse-control/etc/udev + +# 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 + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# 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 configure --- hama-slide-mouse-control-1.0.orig/debian/hama-slide-mouse-control.doc-base +++ hama-slide-mouse-control-1.0/debian/hama-slide-mouse-control.doc-base @@ -0,0 +1,8 @@ +Document: hama-slide-mouse-control +Title: hama-slide-mouse-control Manual +Author: Richard Atterer +Abstract: Control the DPI setting and thumb buttons of a Hama SLide S1 gaming mouse connected to your USB port +Section: Apps/System + +Format: HTML +Index: /usr/share/doc/hama-slide-mouse-control/hama-slide-mouse-control.html --- hama-slide-mouse-control-1.0.orig/debian/hama-slide-mouse-control.examples +++ hama-slide-mouse-control-1.0/debian/hama-slide-mouse-control.examples @@ -0,0 +1 @@ +60-hama-slide-mouse-control.rules --- hama-slide-mouse-control-1.0.orig/debian/control +++ hama-slide-mouse-control-1.0/debian/control @@ -0,0 +1,21 @@ +Source: hama-slide-mouse-control +Section: utils +Priority: extra +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Richard Atterer +Build-Depends: debhelper (>= 5), libusb-dev +Standards-Version: 3.7.2 + +Package: hama-slide-mouse-control +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Control the DPI setting and thumb buttons of a Hama SLide S1 gaming mouse + This command-line program allows you to control a Hama SLide S1 mouse + connected to the USB port. You can switch between its three modes: + Either thumb button 1 and the scroll wheel select the DPI setting, or a + fixed DPI setting is used, or the two thumb buttons toggle between two + DPI settings. The colour of the mouse changes according to the current + setting. This package also aids you in configuring udev to apply your + favourite settings whenever the mouse is plugged in or the machine boots. + . + Homepage: http://atterer.net/hama-slide-mouse-control/ --- hama-slide-mouse-control-1.0.orig/debian/copyright +++ hama-slide-mouse-control-1.0/debian/copyright @@ -0,0 +1,33 @@ +This package was debianized by Richard Atterer on +Tue, 12 Jun 2007 00:34:43 +0200. + +It was downloaded from + +Upstream Author: + + Richard Atterer + +Copyright: + + Copyright (C) 2007 Richard Atterer + +License: + + This package 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. + + This package 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +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) 2007, Richard Atterer and +is licensed under the GPLv2, see above. --- hama-slide-mouse-control-1.0.orig/debian/docs +++ hama-slide-mouse-control-1.0/debian/docs @@ -0,0 +1 @@ +hama-slide-mouse-control.html --- hama-slide-mouse-control-1.0.orig/debian/changelog +++ hama-slide-mouse-control-1.0/debian/changelog @@ -0,0 +1,26 @@ +hama-slide-mouse-control (1.0-2ubuntu2) oneiric; urgency=low + + * Fix FTBFS with ld --as-needed. LP: #770874. + + -- Matthias Klose Thu, 15 Sep 2011 13:22:39 +0200 + +hama-slide-mouse-control (1.0-2ubuntu1) jaunty; urgency=low + + * Modify the package so that the udev rules aren't actually installed by + default, and instruct the user to copy out of examples and then modify; + otherwise they'll get conffile hell forever after. + + -- Scott James Remnant Tue, 13 Jan 2009 02:34:30 +0000 + +hama-slide-mouse-control (1.0-2) unstable; urgency=medium + + * added missing build-dep on libusb-dev (Closes: #432735) + + -- Richard Atterer Thu, 12 Jul 2007 10:20:39 +0200 + +hama-slide-mouse-control (1.0-1) unstable; urgency=low + + * Initial release + + -- Richard Atterer Sun, 24 Jun 2007 18:58:55 +0200 +