debian/0000755000000000000000000000000012211370125007160 5ustar debian/changelog0000644000000000000000000000632712211370125011042 0ustar macfanctld (0.6+repack1-1) unstable; urgency=low * Initial Debian upload (Closes: 706607) * Repack Ubuntu source into non-native package. Minor updates in packaging. * Check against policy 3.9.4. -- Thibaut Paumard Tue, 03 Sep 2013 16:21:09 +0200 macfanctld (0.6~mactel1ubuntu3~raring1) raring; urgency=low * Update for Raring. -- Mikael Strom Fri, 26 Apr 2013 21:58:40 +0800 macfanctld (0.6~mactel1ubuntu3~quantal1) quantal; urgency=low * Updated for Quantal. -- Mikael Strom Mon, 22 Oct 2012 23:49:02 +0800 macfanctld (0.6~mactel1ubuntu3~quantal) precise; urgency=low * Updated for Quantal. -- Mikael Strom Sun, 22 Oct 2012 14:54:02 +0800 macfanctld (0.6~mactel1ubuntu3~precise) precise; urgency=low * Updated for Precise. -- Mikael Strom Sun, 22 Apr 2012 12:12:02 +0800 macfanctld (0.6~mactel1ubuntu2) oneiric; urgency=low * Decreased CPU usage by caching sensor file names and replacing fopen()/fclose() with open()/close(). -- Mikael Strom Sat, 21 Apr 2012 17:16:42 +0800 macfanctld (0.6~mactel1ubuntu1) oneiric; urgency=low * updated for Oneiric -- Mikael Strom Sat, 21 Apr 2012 14:45:41 +0800 macfanctld (0.6~mactel1) natty; urgency=low * Use PnP rather than hardcoding resources and devices: locate applesmc via /sys/class/hwmon and check that device/name is "applesmc" as suggested by Julien BLACHE. -- Mikael Strom Wed, 19 Aug 2011 01:31:36 +0800 macfanctld (0.5~mactel1) natty; urgency=low * Corrected comment in macfanctl.conf -- Mikael Strom Wed, 18 Aug 2011 01:31:36 +0800 macfanctld (0.4~mactel1~karmic) karmic; urgency=low * Patched using Henrik Rydbergs "Off by one" patch * Added 'exclude' option to config file. Enables specific sensors to be excluded. -- Mikael Strom Sat, 06 Nov 2010 17:58:59 +0800 macfanctld (0.3~mactel1~maverick) maverick; urgency=low * Fixed empty line bug in log. Produced an empty line ecery 5 seconds. -- Mikael Strom Thu, 02 Sep 2010 03:22:15 +0800 macfanctld (0.2~mactel1~karmic) karmic; urgency=low * Moved to mactel repo. -- Mikael Strom Wed, 01 Sep 2010 22:24:26 +0800 macfanctld (0.2) lucid; urgency=low * Fixed bug where only fan 1 got updated. * Changed to use sensors TC0P/TG0P instead of TC0D/TC0D that was to noisy. * Removed the modes. Now uses TC0P/TG0P and average concurrently. * Replaced README with a new man page, macfanctld.1 -- Mikael Strom Sun, 29 Aug 2010 04:09:51 +0800 macfanctld (0.1) lucid; urgency=low * Updated to GPL 3 in source files. * Updated README, and added to the deb-package. * Clean up the code, monir bugfixes. * Added code to handle only 1 fan. * Removed command line switches -a -d and -s. Moved this settings to the config file. * Fixed so that HUP signal re-reads config properly. -- Mikael Strom Sat, 28 Aug 2010 00:43:55 +0800 macfanctld (0.0) lucid; urgency=low * Initial release -- Mikael Strom Fri, 27 Aug 2010 00:24:27 +0800 debian/compat0000644000000000000000000000000212172660621010367 0ustar 9 debian/control0000644000000000000000000000136012172661454010601 0ustar Source: macfanctld Section: utils Priority: extra Maintainer: Debian Mactel Team Uploaders: Thibaut Paumard Build-Depends: debhelper (>= 9) Standards-Version: 3.9.4 Homepage: https://github.com/MikaelStrom/macfanctld Vcs-Git: git://anonscm.debian.org/pkg-mactel/macfanctld.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-mactel/macfanctld.git Package: macfanctld Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: fan control daemon for Apple MacBook / MacBook Pro computers This daemon reads the temperature sensors in an Apple Macbook (or Macbook Pro) computer and throttles the fans accordingly to keep the temperature within configurable limits. debian/copyright0000644000000000000000000000162612211367076011133 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: macfanctld Upstream-Contact: Mikael Strom Source: https://github.com/MikaelStrom/macfanctld Files: * Copyright: 2010 Mikael Strom License: GPL-3+ This program 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, either version 3 of the License, or (at your option) any later version. . This program 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. . On Debian systems, the full text of the GPL 3 license can be found at `/usr/share/common-licenses/GPL-3'. Files: debian/* Copyright: 2013 Thibaut Paumard License: GPL-3+ debian/docs0000644000000000000000000000000612172641513010037 0ustar TODO debian/init.d0000644000000000000000000000415212211367771010307 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: macfanctld # Required-Start: $remote_fs # Required-Stop: $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Apple MacBook (Pro) fan control daemon ### END INIT INFO DESC="Apple MacBook (Pro) fan control daemon" NAME=macfanctld PATH=/sbin:/usr/sbin:/bin:/usr/bin DAEMON=/usr/sbin/$NAME PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME DAEMON_ARGS="" # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions # Function that starts the daemon/service do_start() { start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ $DAEMON_ARGS \ || return 2 } # Function that stops the daemon/service do_stop() { # Return start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON [ "$?" = 2 ] && return 2 return "$RETVAL" } # Function that sends a SIGHUP to the daemon/service do_reload() { start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME return 0 } case "$1" in start) log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) log_end_msg 0 ;; 2) log_end_msg 1 ;; esac ;; status) status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac : debian/patches/0000755000000000000000000000000012172662462010625 5ustar debian/patches/series0000644000000000000000000000002212172661527012035 0ustar hardening manpage debian/patches/hardening0000644000000000000000000000124412172662355012511 0ustar Description: Abide by (C|CPP|LD)FLAGS in Makefile In order to accept Debian's hardening flags. Author: Thibaut Paumard Origin: vendor Forwarded: no Last-Update: 2013-07-21 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/Makefile +++ b/Makefile @@ -5,14 +5,14 @@ # CC = gcc -CFLAGS = -Wall +#CFLAGS = -Wall SBIN_DIR = $(DESTDIR)/usr/sbin ETC_DIR = $(DESTDIR)/etc all: macfanctld macfanctld: macfanctl.c control.c config.c control.h config.h - $(CC) $(CFLAGS) macfanctl.c control.c config.c -o macfanctld + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) macfanctl.c control.c config.c -o macfanctld clean: dh_testdir debian/patches/manpage0000644000000000000000000000133612172662462012163 0ustar Description: Fix minor manpage bugs Author: Thibaut Paumard Origin: vendor Forwarded: no Last-Update: 2013-07-21 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/macfanctld.1 +++ b/macfanctld.1 @@ -68,7 +68,7 @@ .I /var/log/macfanctl.log .RS .P -Log file. When log_level is 1, the following ouput is generated: +Log file. When log_level is 1, the following output is generated: Speed: 6200, AVG: 52.5C, *TC0P: 62.0C, TG0P: 62.0C Speed: 6200, AVG: 52.4C, *TC0P: 62.0C, TG0P: 61.8C @@ -88,7 +88,7 @@ To follow the log as it's written do -$ tail -F /var/log/macfanctl.log +$ tail \-F /var/log/macfanctl.log .SH BUGS There are most certainly bugs in this software. debian/rules0000755000000000000000000000006412172661216010252 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 %: dh $@ debian/source/0000755000000000000000000000000012172641513010470 5ustar debian/source/format0000644000000000000000000000001412172641513011676 0ustar 3.0 (quilt) debian/manpages0000644000000000000000000000001512172641513010702 0ustar macfanctld.1 debian/dirs0000644000000000000000000000001712172657777010075 0ustar /usr/sbin /etc