--- athcool-0.3.12.orig/Makefile +++ athcool-0.3.12/Makefile @@ -20,7 +20,7 @@ DEFS = -I. -I$(includedir) -DPACKAGE=\"$(PACKAGE)\" -DVERSION=\"$(VERSION)\" #DEFS += -DENABLE_FORCEID=1 #DEFS += -DDISABLE_WRITE_REG=1 -LIBS = -lpci +LIBS = $(shell pkg-config --libs libpci) ### rules ### --- athcool-0.3.12.orig/debian/changelog +++ athcool-0.3.12/debian/changelog @@ -0,0 +1,173 @@ +athcool (0.3.12-3) unstable; urgency=low + + * Add LSB header, as suggested by Kel Modderman; thanks Ken! + + -- Nicolas Boullis Fri, 25 Jul 2008 23:41:56 +0200 + +athcool (0.3.12-2) unstable; urgency=low + + * Build-depend on "libpci-dev | pciutils-dev (>= 1:2.2.10)" instead of + "pciutils-dev (>= 1:2.2.10)" only. (Closes: #478366) + + -- Nicolas Boullis Tue, 29 Apr 2008 23:09:31 +0200 + +athcool (0.3.12-1) unstable; urgency=low + + * New upstream release. + * Depend on pciutils-dev (>= 1:2.2.10) and pkg-config, and use + "pkg-config --libs libpci" to build statically with the correct + libraries. (Closes: #445016, #450447) + * Don't ignore failures of "make clean", as suggested by lintian. No + need to check for the existence of the Makefile. + * Improve the copyright notice in debian/copyright, as suggested by + lintian. + * Bump Standards-Version to 3.7.3 (no change required). + + -- Nicolas Boullis Fri, 22 Feb 2008 23:28:54 +0100 + +athcool (0.3.11-1) unstable; urgency=low + + * New upstream release. + * Update the postal address of the FSF in the copyright file. + * Bump Standards-Version to 3.6.2 (no change required). + + -- Nicolas Boullis Thu, 1 Dec 2005 00:57:11 +0100 + +athcool (0.3.10-2) unstable; urgency=low + + * Add kfreebsd-i386 and hurd-i386 to the supported architectures, as + athcool should be able to run on any athlon-based architecture with + libpci. (Currently, hurd-i386 has no libpci, but one can hope it will + change soon.) Many thanks to Aurélien Jarno for suggesting to add + kfreebsd-i386; (Closes: #314287) + + -- Nicolas Boullis Tue, 28 Jun 2005 01:21:03 +0200 + +athcool (0.3.10-1) unstable; urgency=low + + * New upstream release. + - Fixes support for AMD-762 chipsets, thanks to Tobias Lorenz for his + patch (sent upstream). (Closes: #295343) + + -- Nicolas Boullis Sun, 20 Feb 2005 00:41:08 +0100 + +athcool (0.3.9-1) unstable; urgency=low + + * New upstream release. (Closes: #293703) + * Rewrite the short description as an "apposive clause" and without an + initial capital letter. + + -- Nicolas Boullis Mon, 14 Feb 2005 21:12:18 +0100 + +athcool (0.3.8-2) unstable; urgency=low + + * Fix the problem reported by Adolfo González Blázquez, who can + enable but can't disable power-saving mode on his amd761-based + motherboard. (Closes: #282634) + * On purge, nuke the links in rc*.d if they were created (by the user), + and update README.Debian accordingly; this partly addresses Marc + Sherman's concerns. (Addresses: #283669) + * Back to dynamic linking against libpci, and hope I won't have to + change my mind once again. + + -- Nicolas Boullis Wed, 22 Dec 2004 02:09:15 +0100 + +athcool (0.3.8-1) unstable; urgency=low + + * New upstream release. + - Add bigger and fatter warnings about the problems that may occur. + + -- Nicolas Boullis Tue, 7 Sep 2004 02:29:24 +0200 + +athcool (0.3.7-1) unstable; urgency=low + + * New upstream release. + * Add a warning about possible filesystem corruption; thanks to Giuseppe + Bonacci for telling me about this problem. (Closes: #258211) + + -- Nicolas Boullis Tue, 20 Jul 2004 01:00:54 +0200 + +athcool (0.3.5-2) unstable; urgency=low + + * Fix the new "fixup" option that was inadvertently reverted. Thanks to + Andrea Vettorello for reporting the problem. (Closes: #253604) + * Fix a typo in the description of the package (missing part in the path + to the documentation). Thanks to David Smith for pointing this. + (Closes: #253456) + + -- Nicolas Boullis Fri, 11 Jun 2004 01:42:00 +0200 + +athcool (0.3.5-1) unstable; urgency=low + + * The "let's change my mind again" release. + * New upstream release, thanks to Peter Nelson for noticing. + (Closes: #251145). + * Back to static linking against libpci since pciutils seems to be stuck + in unstable. + * Update the init script to handle the new fixup option. + + -- Nicolas Boullis Sun, 30 May 2004 15:15:07 +0200 + +athcool (0.3.4-1) unstable; urgency=low + + * New upstream release. + * Revert to linking athcool dynamically against libpci, and hope it + won't break again. + + -- Nicolas Boullis Sat, 1 May 2004 16:58:28 +0200 + +athcool (0.3.3-2) unstable; urgency=low + + * The "let's work around this bug now and I'll implement a proper fix + ASAP" release. + * Link athcool statically against libpci, so it will not segfault when + linked dynamically with a wrong libpci (same SONAME but different + ABI). (Closes: #241110) + + -- Nicolas Boullis Thu, 8 Apr 2004 23:08:14 +0200 + +athcool (0.3.3-1) unstable; urgency=low + + * New upstream release, thanks to Christophe Combelles for pointing the + new release. (Closes: #235786) + + -- Nicolas Boullis Wed, 3 Mar 2004 00:52:45 +0100 + +athcool (0.3.2-2) unstable; urgency=low + + * The "Is there a way to satisfy everyone?" release. + * Add a /etc/default/athcool conffile to be able \ + to run /etc/init.d/athcool in reversed mode. > (Closes: #224263) + * Do not add startup links by default anymore. / + * Revert the manpage to the one I wrote, as I think it is better + written. + * Improve the package description, thanks to Andreas Rottmann. + (Closes: #227177) + * Add a NEWS.Debian file annd bump the versionned build-dependency on + debhelper to (>= 4.0.19) for dh_installchangelogs to install it. + * Remove useless debhelper calls from debian/rules. + + -- Nicolas Boullis Sun, 25 Jan 2004 19:07:27 +0100 + +athcool (0.3.2-1) unstable; urgency=low + + * New upstream release. + * Use new upstream manpage rather than mine. + * Set priority to extra to match the priority set in the override file. + + -- Nicolas Boullis Sat, 10 Jan 2004 18:29:41 +0100 + +athcool (0.3.1-2) unstable; urgency=low + + * The "I add that feature that everybody else wants" release. + * Add startup scripts to enable powersaving mode. (Closes: #217247) + + -- Nicolas Boullis Tue, 28 Oct 2003 01:12:10 +0100 + +athcool (0.3.1-1) unstable; urgency=low + + * Initial Release. (Closes: #215140) + * Write a manpage. + + -- Nicolas Boullis Fri, 10 Oct 2003 19:09:31 +0200 + --- athcool-0.3.12.orig/debian/compat +++ athcool-0.3.12/debian/compat @@ -0,0 +1 @@ +4 --- athcool-0.3.12.orig/debian/watch +++ athcool-0.3.12/debian/watch @@ -0,0 +1,3 @@ +version=2 +http://members.jcom.home.ne.jp/jacobi/linux/softwares.html \ + .*/athcool-(.*)\.tar\.gz debian uupdate --- athcool-0.3.12.orig/debian/rules +++ athcool-0.3.12/debian/rules @@ -0,0 +1,59 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# 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 + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + + +build: build-stamp +build-stamp: + dh_testdir + $(MAKE) CFLAGS="$(CFLAGS)" + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/athcool + + +# Build architecture-independent files here. +binary-indep: build install + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_installinit -n + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- athcool-0.3.12.orig/debian/control +++ athcool-0.3.12/debian/control @@ -0,0 +1,38 @@ +Source: athcool +Section: misc +Priority: extra +Maintainer: Nicolas Boullis +Build-Depends: debhelper (>= 4.0.19), libpci-dev | pciutils-dev (>= 1:2.2.10), pkg-config +Standards-Version: 3.7.3 + +Package: athcool +Architecture: i386 kfreebsd-i386 hurd-i386 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: tool to enable powersaving mode for Athlon/Duron processors + athcool is a small utility for enabling/disabling Powersaving mode + for AMD Athlon/Duron processors. + . + By enabling Powersaving mode you can lower power consumption and + CPU temperature when the CPU is idle. + . + Powersaving works only if your kernel supports ACPI (APM does not + work), because athcool does only (un)set the "Disconnect enable when + STPGNT detected" bits in the Chipset's Northbridge. To really save + power, the STPGNT signal has to be sent when the CPU is idling. This + is done by the ACPI subsystem when C2 state entered. + . + !!!WARNING!!! + Depending on your motherboard and/or hardware components, enabling + Athlon powersaving mode sometimes causes: + . + * noisy or distorted sound playback, + * a slowdown in harddisk performance, + * system locks or instability, + * massive corruption of the filesystem (observed at least once). + . + If you met those problems, you should not use athcool. Please use + athcool AT YOUR OWN RISK. + . + If athcool works fine for you, and you want it to run automatically + on startup, please read the /usr/share/doc/athcool/README.Debian + file. --- athcool-0.3.12.orig/debian/copyright +++ athcool-0.3.12/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by Nicolas Boullis on +Fri, 10 Oct 2003 19:09:31 +0200. + +It was downloaded from http://members.jcom.home.ne.jp/jacobi/linux/softwares.html#athcool + +Upstream Author: Osamu Kayasono + +Copyright: 2002-2004 Osamu Kayasono + + 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; version 2 dated June, 1991. + + 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'. + --- athcool-0.3.12.orig/debian/NEWS +++ athcool-0.3.12/debian/NEWS @@ -0,0 +1,23 @@ +athcool (0.3.5-1) unstable; urgency=low + + * New "fixup" option to fix broken chipset for problems like broken + audio playback. + + -- Nicolas Boullis Sun, 30 May 2004 15:07:26 +0200 + +athcool (0.3.2-2) unstable; urgency=low + + * Make it possible to run /etc/init.d/athcool in reversed mode. That + way, you can use /etc/init.d/athcool start to disable powersaving + mode. + This is especially useful to disable powersaving mode on startup if + your mother board and BIOS enable powersaving mode by default, but + breaks randomly when it is enabled. + * Do not add startup link anymore by default. + This means that you now have to set those links yourself if you need + to enable or disable powersaving mode on startup. + On the other hand, links set up by previous versions of athcool will + not be removed, even on purge. You will have to remove them yourself. + Read /usr/share/doc/athcool/README.Debian for more information. + + -- Nicolas Boullis Sun, 25 Jan 2004 19:07:15 +0100 --- athcool-0.3.12.orig/debian/athcool.docs +++ athcool-0.3.12/debian/athcool.docs @@ -0,0 +1 @@ +README --- athcool-0.3.12.orig/debian/athcool.init +++ athcool-0.3.12/debian/athcool.init @@ -0,0 +1,94 @@ +#! /bin/sh +# +### BEGIN INIT INFO +# Provides: athcool +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: +# Description: enable powersaving mode for Athlon/Duron processors +### END INIT INFO +# +# skeleton example file to build /etc/init.d/ scripts. +# This file should be used to construct scripts for /etc/init.d. +# +# Written by Miquel van Smoorenburg . +# Modified for Debian +# by Ian Murdock . +# Adapted for athcool by Nicolas Boullis . +# +# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl +# + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +PROG=/usr/sbin/athcool + +test -x $PROG || exit 0 + +# Source the init script configuration +if [ -f "/etc/default/athcool" ]; then + . /etc/default/athcool +fi + +set -e + +case "$ATHCOOL_FIXUP" in + [yY][eE][sS]) + FIXUP="fixup" + ;; + *) + FIXUP="" + ;; +esac + + +prog_on() { + echo -n "Enabling Athlon powersaving mode..." + if $PROG $FIXUP on > /dev/null; then + echo "done." + else + echo "failed." + fi +} + +prog_off() { + echo -n "Disabling Athlon powersaving mode..." + if $PROG off > /dev/null; then + echo "done." + else + echo "failed." + fi +} + +case "$1" in + start) + case "$ATHCOOL_REVERSED" in + [yY][eE][sS]) + prog_off + ;; + *) + prog_on + ;; + esac + ;; + stop) + case "$ATHCOOL_REVERSED" in + [yY][eE][sS]) + prog_on + ;; + *) + prog_off + ;; + esac + ;; + restart|force-reload) + $0 stop + $0 start + ;; + *) + echo "Usage: /etc/init.d/athcool {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- athcool-0.3.12.orig/debian/athcool.default +++ athcool-0.3.12/debian/athcool.default @@ -0,0 +1,16 @@ +# Defaults for athcool initscript +# sourced by /etc/init.d/athcool +# installed at /etc/default/athcool by the maintainer scripts + +# +# This is a POSIX shell fragment +# + +# Set this to yes if you want athcool to work in reversed mode. +# "/etc/init.d/athcool start" would disable powersaving mode. +# "/etc/init.d/athcool stop" would enable powersaving mode. +ATHCOOL_REVERSED="no" + +# Set this to yes if you want athcool to try to fixup "broken" +# chipsets. +ATHCOOL_FIXUP="no" --- athcool-0.3.12.orig/debian/athcool.postrm +++ athcool-0.3.12/debian/athcool.postrm @@ -0,0 +1,6 @@ +#!/bin/sh +set -e +if [ "$1" = "purge" ] ; then + update-rc.d athcool remove >/dev/null || exit 0 +fi +#DEBHELPER# --- athcool-0.3.12.orig/debian/athcool.README.Debian +++ athcool-0.3.12/debian/athcool.README.Debian @@ -0,0 +1,24 @@ + INIT SCRIPT AND STARTUP LINKS FOR ATHCOOL + +If your motherboard and BIOS enable powersaving mode by default, you +should set athcool to work in reversed mode in "/etc/default/athcool". +Then "/etc/init.d/athcool start" will disable powersaving mode and you +can use startup links to disable powersaving mode on startup. That is +especially useful with some broken motherboards, that freeze randomly +when powersaving mode is enabled. + +If athcool works fine for you (I hope it does), you probably want to +use it automatically on startup, either for enabling or for disabling +powersaving mode. This is done by setting startup links. If you ever +change your mind, just remove those links. + +You can do this by issuing the following commands as root: + * "update-rc.d athcool start 20 2 3 4 5 ." to run athcool on + startup + * "update-rc.d -f athcool remove" to remove the startup links + +The startup links will automatically be removed when you purge the +package. + + -- Nicolas Boullis , Wed Dec 22 00:40:20 UTC 2004 +