--- nvram-wakeup-1.1.orig/debian/copyright +++ nvram-wakeup-1.1/debian/copyright @@ -0,0 +1,36 @@ +Upstream Homepage: + http://sourceforge.net/projects/nvram-wakeup + +Upstream Author: + Sergei Haller + +Debian Maintainers: + Tobias Grimm + Thomas Schmidt + +Copyright: + (C) 2001 - 2006 Sergei Haller + (C) 2002 Bernhard "Bero" Rosenkraenzer + (C) 1996 Paul Gortmaker + (C) 2004 - 2010 Tobias Grimm + +Copyright (Debian packaging): + (C) 2003 - 2010 Tobias Grimm, Thomas Schmidt + +License: + This program is free software; you can redistribute it and/or modify + t under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 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. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA. + + see /usr/share/common-licenses/GPL-2 --- nvram-wakeup-1.1.orig/debian/install +++ nvram-wakeup-1.1/debian/install @@ -0,0 +1,11 @@ +nvram-wakeup usr/sbin/ +rtc usr/sbin/ +biosinfo usr/sbin/ +guess usr/sbin/ +cat_nvram usr/sbin/ +guess-helper usr/sbin/ +guess-helper.mo usr/share/locale/de/LC_MESSAGES/ +nvram-wakeup.conf etc/ + +debian/S90.nvram-wakeup usr/share/vdr/shutdown-hooks/ +debian/vdr-nvram-wakeup.conf etc/vdr/ --- nvram-wakeup-1.1.orig/debian/watch +++ nvram-wakeup-1.1/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://qa.debian.org/watch/sf.php/nvram-wakeup/ nvram-wakeup-(.*)\.tar\.bz2 + --- nvram-wakeup-1.1.orig/debian/compat +++ nvram-wakeup-1.1/debian/compat @@ -0,0 +1 @@ +5 --- nvram-wakeup-1.1.orig/debian/README.Debian +++ nvram-wakeup-1.1/debian/README.Debian @@ -0,0 +1,36 @@ +nvram-wakeup for Debian +======================= + +nvram access methods +-------------------- + +There are two ways the NVRAM can be accessed. To use direct I/O access you +will have to specify the --directisa option. Alternatively you can use the +nvram kernel module. If this kernel module is available, but not loaded, +you may need to perform these steps: + + - modprobe nvram + - add nvram to /etc/modules + - alternatively you can use modconf to reach the same result + + +VDR integration +--------------- + +The original nvram-wakeup package has been created for the c't VDR project, +where an additional package vdr-addon-nvram-wakeup installed the necessary +shutdown hook script for VDR. This hook script is now included in nvram-wakeup +itself. + +If you intend to use nvram-wakeup with VDR, be aware, that some mainboards +need to reboot once, before the wakeup time is activated. This requires a +special shutdown procedure, that may use a modified kernel image or special +kernel parameters to force booting into runlevlel 0. See +/usr/share/doc/README.reboot.gz for more detailed instructions. You can +configure a script or command sequence that is called when a reboot is needed +in /etc/vdr/vdr-nvram-wakeup.conf. i.e.: + +SPECIALSHUTDOWN="lilo -R PowerOff ; shutdown -r now" + + -- Tobias Grimm Sun, 23 Nov 2008 13:40:08 +0100 + --- nvram-wakeup-1.1.orig/debian/docs +++ nvram-wakeup-1.1/debian/docs @@ -0,0 +1,3 @@ +README +README.mb +README.reboot --- nvram-wakeup-1.1.orig/debian/rules +++ nvram-wakeup-1.1/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/makefile.mk +# include /usr/share/cdbs/1/rules/dpatch.mk + +DEB_INSTALL_CHANGELOGS_ALL = HISTORY + +# +# TODO: This breaks DEB_BUILD_OPTIONS, +# Better hardcode the essential compiler switches in the upstream source +# instead of making them overrideable in user overridable variables like +# CFLAGS! +# +DEB_MAKE_INVOKE := $(DEB_MAKE_ENVVARS) make -C $(DEB_BUILDDIR) \ No newline at end of file --- nvram-wakeup-1.1.orig/debian/examples +++ nvram-wakeup-1.1/debian/examples @@ -0,0 +1,4 @@ +set_timer +set_timer.8 +VDR/vdrshutdown +nvram-wakeup.conf --- nvram-wakeup-1.1.orig/debian/NEWS +++ nvram-wakeup-1.1/debian/NEWS @@ -0,0 +1,18 @@ +nvram-wakeup (0.97-15) unstable; urgency=medium + + Due to conflicting names, /usr/sbin/time isn't installed anymore. + The functionallity of this tool can be replaced by using date: + + date -d "1970-01-01 1089365289 sec UTC" + date -u -d "1970-01-01 1089365289 sec UTC" + + The only script using /usr/sbin/time was set_timer, which also isn't + installed anymore. set_timer is now available as an example in + /usr/share/doc/nvram-wakeup/examples. It's only purpose was to serve as a + workaround, when there is no way to set the wakeup time in the nvram. + + In such cases, please consider using ACPI for wakeup + (/sys/class/rtc/rtc0/wakealarm) or use a customized set_timer version based + on the one provided in the examples. + + -- Tobias Grimm Fri, 02 Jan 2009 22:29:58 +0100 --- nvram-wakeup-1.1.orig/debian/manpages +++ nvram-wakeup-1.1/debian/manpages @@ -0,0 +1,7 @@ +nvram-wakeup.8 +nvram-wakeup.conf.5 +biosinfo.8 +cat_nvram.8 +guess.8 +rtc.8 +guess-helper.8 --- nvram-wakeup-1.1.orig/debian/control +++ nvram-wakeup-1.1/debian/control @@ -0,0 +1,20 @@ +Source: nvram-wakeup +Section: misc +Priority: optional +Maintainer: Debian VDR Team +Uploaders: Tobias Grimm , Thomas Schmidt +Build-Depends: debhelper (>= 5), cdbs +Standards-Version: 3.8.3 +Homepage: http://sourceforge.net/projects/nvram-wakeup +XS-Vcs-Svn: svn://svn.debian.org/pkg-vdr-dvb/general/nvram-wakeup/trunk/ +XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-vdr-dvb/general/nvram-wakeup/trunk/ + +Package: nvram-wakeup +Architecture: i386 amd64 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: A tool to read/write the WakeUp time from/to the BIOS + nvram-wakeup can read and write the wake up time in the BIOS + (via /dev/nvram on recent 2.4.x kernels or direct I/O port access). + On this wake up time the computer will be powered on automatically from + the soft-off state. For the video disc recorder VDR, nvram-wakeup installs + a hook script, that allows VDR to set a wake up time, when it powers down. --- nvram-wakeup-1.1.orig/debian/changelog +++ nvram-wakeup-1.1/debian/changelog @@ -0,0 +1,288 @@ +nvram-wakeup (1.1-1yavdr1) karmic; urgency=low + + * repo rebuilt + + -- Holger Schvestka Thu, 04 Feb 2010 18:08:11 +0100 + +nvram-wakeup (1.1-1) unstable; urgency=low + + * New upstream release (Closes: #484929) + * Buil-Depend debhelper (>= 5) + * Standards-Version: 3.8.3 + + -- Tobias Grimm Sun, 24 Jan 2010 13:04:58 +0100 + +nvram-wakeup (1.0-1) unstable; urgency=low + + * New upstream release (Closes: #529074) + * Added Homepage field + + -- Tobias Grimm Sun, 17 May 2009 20:37:25 +0200 + +nvram-wakeup (0.99b-1) unstable; urgency=low + + * New upstream release (Closes: #484680, #433929, #499896) + * Changed my maintainer email address + * Removed 01_Makefile-fix.dpatch (fixed upstream) + * Removed 04_WAKEUP_BEFORE-from-cli (fixed upstream) + * Removed 10_nvram-wakeup-mb.c.dpatch + * Fixed quotes in examples (Closes: #510595) + * Bumped standards version to 3.8.1 + * Updated debian/copyright + + -- Tobias Grimm Mon, 13 Apr 2009 13:59:17 +0200 + +nvram-wakeup (0.97-15) unstable; urgency=medium + + [ Tobias Grimm ] + * Don't install /usr/sbin/time anymore. The functionallity of this tool can + be replaced by `date` (e.g. `date -d "1970-01-01 1089365289 sec UTC"` and + `date -u -d "1970-01-01 1089365289 sec UTC"`) (Closes: #425120) + * Removed installation of set_timer (which used /usr/sbin/time) and install + it as example only (release notes added to NEWS) + * Removed 03_set_timer.dpatch + * Moved debconf installation instructions to README.Debian (Closes: #419444) + * Updated debian/copyright + * Added description to 10_nvram-wakeup-mb.c.dpatch + + [ Thomas Schmidt ] + * Do not create /dev/rtc and /dev/nvram in postinst anymore - these devices + should be automatically created on every installation (closes: #428694) + * Using COMPAT=5 now + * Bumped Standards-Version to 3.8.0 + * Switched Build-System to cdbs, Build-Depend on cdbs + + -- Tobias Grimm Sat, 03 Jan 2009 05:10:45 +0100 + +nvram-wakeup (0.97-14) unstable; urgency=low + + * Added Portuguese (pt.po) debconf-translation from Miguel Figueiredo + (closes: #415695) + * Added Dutch (nl.po) debconf-translation from Bart Cornelis + (closes: #419734) + * Added XS-Vcs-Svn and XS-Vcs-Browser fields to debian/control + + -- Thomas Schmidt Tue, 29 May 2007 23:30:38 +0200 + +nvram-wakeup (0.97-13) experimental; urgency=low + + * Changed debian/watch to use sf.php from qa.debian.org + * Changed Build-Dependancy on dpatch to be unversioned because even + Sarge has the right version of dpatch + * Build-Depend on po-debconf + + -- Thomas Schmidt Sat, 10 Mar 2007 19:03:41 +0100 + +nvram-wakeup (0.97-12) unstable; urgency=low + + * Fixed call to MAKEDEV in debian/postinst to not fail on systems + using udev + * Bumped Standards-Version to 3.7.2 + + -- Thomas Schmidt Mon, 28 Aug 2006 23:26:11 +0200 + +nvram-wakeup (0.97-11) unstable; urgency=low + + * Tobias Grimm + - Removed postrm - only thing it did was db_purge and that's automatically + added by dh_installdebconf + * Thomas Schmidt + - Removed bashism from S90.nvram-wakeup (closes: #375042) + + -- Debian VDR Team Sat, 24 Jun 2006 14:56:14 +0200 + +nvram-wakeup (0.97-10) unstable; urgency=low + + * Thomas Schmidt + - Updated nvram-wakeup-mb.c to rev 1.283 from cvs to have the newest + mainboard list + + -- Thomas Schmidt Thu, 15 Dec 2005 21:41:41 +0100 + +nvram-wakeup (0.97-9) unstable; urgency=low + + * Thomas Schmidt + - Added 04_WAKEUP_BEFORE-from-cli.dpatch - allows to specify how + long before the programmed wakeup time the computer should wake + up (the default is still 5 minutes for compatibility reasons) + (closes: #318191) + - Added Swedish (sv.po) debconf-translation from Daniel Nylander + (closes: #332354) + - Bumped Standards-Version to 3.6.2.1 + - Corrected address of the FSF in debian/copyright + * Tobias Grimm + - Added amd64 to list of supported architectures (closes: #332961) + + -- Debian VDR Team Sat, 15 Oct 2005 23:41:00 +0200 + +nvram-wakeup (0.97-8) unstable; urgency=low + + * Thomas Schmidt + - Use "${misc:Depends}" in debian/control to allow usage of cdebconf + + -- Debian VDR Team Wed, 31 Aug 2005 22:57:20 +0200 + +nvram-wakeup (0.97-7) unstable; urgency=low + + * Thomas Schmidt + - Added Vietnamese debconf-translation from Clytie Siddall + (closes: Bug#316328) + - Changed my email-address to the debian one + + -- Debian VDR Team Thu, 30 Jun 2005 12:09:18 +0200 + +nvram-wakeup (0.97-6) unstable; urgency=low + + * Tobias Grimm + - Added Czech debconf-translation from Miroslav Kure + (closes: Bug#298215) + + -- Debian VDR Team Sun, 6 Mar 2005 12:55:54 +0100 + +nvram-wakeup (0.97-5) unstable; urgency=low + + * Thomas Schmidt + - Added nvram-wakeup-mb.c rev 1.245 from cvs to have the newest + mainboard list + + -- Debian VDR Team Wed, 29 Dec 2004 23:52:04 +0100 + +nvram-wakeup (0.97-4) unstable; urgency=low + + * Thomas Schmidt + - Build-depend on dpatch (>= 2.0.9) + - Converted existing dpatch-files to the new short format + * Tobias Grimm + - Added option to the vdr shutdown hook, which allows to force a reboot + whenever nvram-wakup has set the time + -- Debian VDR Team Tue, 26 Oct 2004 11:32:53 +0200 + +nvram-wakeup (0.97-3) unstable; urgency=low + + * Thomas Schmidt + - Load the debconf-confmodule in postinst, to stop lintian + from complaining + - Updated german debconf-translation (closes: #276696) + * Tobias Grimm + - fixed bug in vdr shutdown hook (reboot didn't work) + + -- Debian VDR Team Sat, 16 Oct 2004 09:36:40 +0200 + +nvram-wakeup (0.97-2) unstable; urgency=low + + * Thomas Schmidt + - Removed debconf-question about loading the nvram-module + (closes: #262385) + - Added myself as Uploader + + -- Debian VDR Team Mon, 2 Aug 2004 13:19:35 +0200 + +nvram-wakeup (0.97-1) unstable; urgency=low + + * Tobias Grimm + - new upstream release + - manpages are now in the upstream version + - removed nvram-wakeup-mb patch + - guess-helper.sh has been renamed to guess-helper (including the manpage) + * Thomas Schmidt + - Added French debconf-translation from Michel Grentzinger + (closes: Bug#262212) + + -- Debian VDR Team Wed, 21 Jul 2004 19:28:00 +0200 + +nvram-wakeup (0.96-2) unstable; urgency=low + + * First upload to official Debian-archive (closes: Bug#257347) + * Tobias Grimm + - nvram-wakeup is now maintained on Alioth and also includes the + former vdr-addon-nvram-wakeup package from c't VDR + - using MAKEDEV instead of mknod now + - a regular wake up interval can be configured now + - the command to reboot before shutting down can be configured in + /etc/vdr/vdr-nvram-wakeup.conf, because there are no kernel-poweroff + or runlevel0-poweroff packages in the official Debian. + - moved manpage installation to debian/manpages + - added manpage for biosinfo, cat_nvram, guess, guess-helper.sh, rtc, + time, set_timer + - added patch for set_timer that fixes the paths to refer to /usr/sbin/ for + 'time' and to write its data between reboots to /var/tmp/ + * Thomas Schmidt + - Use po-debconf for translated debconf-templates + - Cleanup debian/rules a little bit + - Use dpatch, so build-dep on it + - Added 01_Makefile-fix.dpatch to disable optimizing for i686 + - Added watch-file + - Added 02_nvram-wakeup-mb.c.dpatch mainboardlist from cvs, Rev. 1.210 + - Depend on makedev + + -- Debian VDR Team Sun, 04 Jul 2004 12:10:00 +0200 + +nvram-wakeup (0.96-1) unstable; urgency=low + + * new upstream release + + -- Tobias Grimm Sun, 22 May 2004 16:50:00 +0200 + +nvram-wakeup (0.95a-2) unstable; urgency=low + + * moved nvram-wakeup to /usr/bin + * added installation of set_timer + * using dh_install now + + -- Tobias Grimm Wed, 23 Apr 2004 09:00:00 +0200 + +nvram-wakeup (0.95a-1) unstable; urgency=low + + * new upstream release + + -- Tobias Grimm Tue, 06 Apr 2004 20:10:00 +0100 + +nvram-wakeup (0.95-2) unstable; urgency=low + + * applied small patch to be up-to-date with upstreams most recent + CVS version + + -- Tobias Grimm Sun, 07 Mar 2004 01:37:00 +0100 + +nvram-wakeup (0.95-1) unstable; urgency=low + + * new upstream release + * guess-helper moved from debian to upstream source + * some changes to debconf templates + + -- Tobias Grimm Wed, 01 Mar 2004 22:00:00 +0100 + +nvram-wakeup (0.91-6) unstable; urgency=low + + * extended guess-helper.sh to make use of new cat_nvram and + translated it to english ( gettext is used now ) + * added missing debconf dependency + + -- Tobias Grimm Wed, 04 Feb 2004 00:45:00 +0100 + +nvram-wakeup (0.91-5) unstable; urgency=low + + * small bug in guess-helpe.sh removed (shutdown was commented out) + + -- Tobias Grimm Tue, 20 Jan 2004 00:15:00 +0100 + +nvram-wakeup (0.91-4) unstable; urgency=low + + * Added guess-helper.sh script to guide user through the + guess autodetection process + + -- Tobias Grimm Mon, 12 Jan 2004 00:22:00 +0100 + +nvram-wakeup (0.91-3) unstable; urgency=low + + * Added automatic installation of required device nodes and + kernel module. + * added example nvram-wakeup.conf as conffile in /etc + + -- Tobias Grimm Sun, 11 Jan 2004 12:41:00 +0100 + +nvram-wakeup (0.91-2) unstable; urgency=low + + * Initial Release. + + -- Tobias Grimm Sat, 6 Dec 2003 16:29:23 +0200 --- nvram-wakeup-1.1.orig/debian/vdr-nvram-wakeup.conf +++ nvram-wakeup-1.1/debian/vdr-nvram-wakeup.conf @@ -0,0 +1,41 @@ +# +# Configuration file for the VDR nvram-wakeup shutdown hook +# +# This is NOT the nvram-wakeup configuration file, which you can find in +# /etc/nvram-wakeup.conf and which must be set in COMMANDLINE (see below), +# if your mainboard ins not detected automatically. +# + +# Set to "yes" to enable nvram-wakeup for VDR +# +ENABLED="no" + +# Here you can specify additional command line parameters, that will be passed +# to nvram-wakeup. +# +# i.e.: +# COMMANDLINE="-I ecs_k7s5au" # mainboard of type K7S5au +# COMMANDLINE="-C /etc/nvram-wakeup.conf" # use config file +# +# see "man nvram-wakeup" +# +COMMANDLINE="" + +# If your mainboard needs to reboot before shutting down, set the command(s) to +# do this here. i.e.: +# +# SPECIALSHUTDOWN="lilo -R PowerOff ; shutdown -r now" +# +SPECIALSHUTDOWN="" + +# To force a reboot whenever nvram-wakeup sets the time, independently of +# whether a reboot is required, enable this option. +# +# FORCE_REBOOT="yes" +# + +# If you want your VDR machine to wakeup in regular intervals (i.e. for +# updating EPG data), specify a day interval and a wakeup time: +# +REGULAR_DAYS=0 # 0=disabled, 1=each day, 2=each 2'nd day, 3=... +REGULAR_TIME=01:00 # HH:MM --- nvram-wakeup-1.1.orig/debian/S90.nvram-wakeup +++ nvram-wakeup-1.1/debian/S90.nvram-wakeup @@ -0,0 +1,98 @@ +# +# VDR shutdown hook for nvram-wakeup - Tobias Grimm +# ---------------------------------- +# +# This shutdown hook sets the wakeup time for the next timer using +# nvram-wakeup. If necessary the shutdown command is modified to +# use a special shutdown strategy. +# + +NVRAMCMD=/usr/sbin/nvram-wakeup + +# read arguments for nvram-wakeup from conf-file +. /etc/vdr/vdr-nvram-wakeup.conf + +# Defaults: +[ -z "$ENABLED" ] && export ENABLED="no" +[ -z "$COMMANDLINE" ] && export COMMANDLINE="" +[ -z "$SPECIALSHUTDOWN" ] && export SPECIALSHUTDOWN="" +[ -z "$REGULAR_DAYS" ] && export REGULAR_DAYS=0 +[ -z "$REGULAR_TIME" ] && export REGULAR_TIME=0 +[ -z "$FORCE_REBOOT" ] && export FORCE_REBOOT="no" + +LOG="logger -t vdr-nvram-wakeup" + +if [ $ENABLED = "no" ] ; then + $LOG "nvram-wakeup functionality is disabled" + exit 0 +fi + +request_reboot() +{ + if [ -z "$SPECIALSHUTDOWN" ] ; then + $LOG "nvram-wakeup: A special shutdown strategy is required but not configured." + echo "ABORT_MESSAGE=\"no special shutdown configured\"" + exit 1 + else + echo "SHUTDOWNCMD=\"$SPECIALSHUTDOWN\"" + exit 0 + fi +} + +# calculate, at what time the machine should be powered on: + +TIMER=$1 + +if [ $REGULAR_DAYS -gt 0 ]; then + REGULAR_TIMER=$((`date -d "$REGULAR_TIME" +%s` + $REGULAR_DAYS * 24 * 60 * 60)) + + # when no vdr timer is set or vdr timer starts later than regular timer: + if [ $TIMER -eq 0 ] || [ $TIMER -gt 0 -a $REGULAR_TIMER -lt $TIMER ] ; then + TIMER=$REGULAR_TIMER + fi +fi + +# set wakeup time and check nvram-wakeup and check result: + +$LOG "$NVRAMCMD -ls $TIMER $COMMANDLINE" + +$NVRAMCMD -ls $TIMER $COMMANDLINE + +case $? in + 0) # all went ok - new date and time set + $LOG "nvram-wakeup: everything ok" + + if [ $FORCE_REBOOT = "yes" ] ; then + $LOG "nvram-wakeup: reboot not needed but forced" + request_reboot + fi + + exit 0 + ;; + 1) # all went ok - new date and time set. + # + # *** but we need to reboot. *** + # + # for some boards this is needed after every change. + # + # for some other boards, we only need this after changing the + # status flag, i.e. from enabled to disabled or the other way. + + + # For plan A - (Plan A is not supported anymore---see README) + # + # For plan B - (don't forget to install the modified kernel image first) + # + + $LOG "nvram-wakeup: everything ok - need to reboot first" + request_reboot + + ;; + *) # something went wrong + # don't do anything - just exit with status 1 + + $LOG "nvram-wakeup: could not set time, shutdown will be aborted" + echo "ABORT_MESSAGE=\"nvram-wakeup could not set time\"" + exit 1 + ;; +esac