vdr/nvram-wakeup/debian changelog config control copyright dirs docs install postinst postrm rules templates templates.de

Tobias Grimm pkg-vdr-dvb-changes@lists.alioth.debian.org
Sun, 04 Jul 2004 09:56:34 +0000


Update of /cvsroot/pkg-vdr-dvb/vdr/nvram-wakeup/debian
In directory haydn:/tmp/cvs-serv11439/debian

Added Files:
	changelog config control copyright dirs docs install postinst 
	postrm rules templates templates.de 
Log Message:
Added debian changes for version 0.96-1. 


--- NEW FILE: postinst ---
#! /bin/sh
# postinst script for nvram-wakeup
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <postinst> `configure' <most-recently-configured-version>
#        * <old-postinst> `abort-upgrade' <new version>
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
#          <new-version>
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
#          <failed-install-package> <version> `removing'
#          <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
#
# quoting from the policy:
#     Any necessary prompting should almost always be confined to the
#     post-installation script, and should be protected with a conditional
#     so that unnecessary prompting doesn't happen if a package's
#     installation fails and the `postinst' is called with `abort-upgrade',
#     `abort-remove' or `abort-deconfigure'.

case "$1" in
    configure)

	. /usr/share/debconf/confmodule

	db_get nvram-wakeup/install_module
	install_module="$RET"       
	
	if [ $install_module = "true" ]
	then
	    # Install required device nodes

	    if [ ! -e /dev/nvram ]
	    then
		mknod /dev/nvram c 10 144 || echo "Error creating /dev/nvram"
	    fi

	    if [ ! -e /dev/rtc ]
	    then
		mknod /dev/rtc c 10 135 || echo "Error creating /dev/rtc"
	    fi

	    if [ ! -e /dev/mem ]
	    then
		mknod /dev/mem c 1 1 || echo "Error creating /dev/mem"
	    fi


	    # Install nvram kernel module

	    if ! lsmod | grep -q nvram
	    then
		if insmod nvram
		then
		    if ! cat /etc/modules | grep -q nvram
		    then
    			test "$(tail -n1 /etc/modules)" && printf "\n" >> /etc/modules
    			echo "nvram" >> /etc/modules
		    fi
		fi
	    fi
	fi

    ;;

    abort-upgrade|abort-remove|abort-deconfigure)

    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0



--- NEW FILE: config ---
#!/bin/sh

if ! lsmod | grep -q nvram
then
    . /usr/share/debconf/confmodule

     # ask module install question:
    db_input high nvram-wakeup/install_module || false
    db_go
    db_get nvram-wakeup/install_module
    if [ "$RET" = "false" ]
    then
	# show manual install instructions:
	db_input high nvram-wakeup/install_instruction || true
	db_go
    fi
fi

--- NEW FILE: templates.de ---
Template: nvram-wakeup/install_module
Type: boolean
Default: false
Description: Try to automatically install the nvram kernel module?
 Enable this, if you want setup to automatically load the nvram Kernel
 module and add it to /etc/modules. Without this kernel module you have to
 use direct I/O access by using the --directisa option. 
Description-de: NVRAM-Kernelmodul automatisch installieren?
 Aktivieren Sie dies Option, um das NVRAM-Kernelmodul automatisch zu laden
 und in /etc/modules einzutragen. Ohne dieses Kernelmodul müssen Sie
 nvram-wakeup mit der Option --directisa verwenden.

Template: nvram-wakeup/install_instruction
Type: note
Description: Install instructions
 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:
 .
 - mknod /dev/nvram c 10 144
 .
 - insmod nvram
 .
 - add nvram to /etc/modules
 .
 - update-modules
Description-de: Installationsanweisungen
 Es gibt zwei Wege um auf den NVRAM zuzugreifen. Für den direkten I/O-Zugriff
 verwenden Sie die --directisa option. Alterantiv können Sie auch das
 NVRAM-Kernelmodul verwenden. Ist dieses zwar verfügbar aber nicht geladen, so
 können Sie es wie folgt aktivieren:
 .
 - mknod /dev/nvram c 10 144
 .
 - insmod nvram
 .
 - nvram zu /etc/modules hinzufügen
 .
 - update-modules

--- NEW FILE: install ---
nvram-wakeup 		usr/bin/
set_timer 		usr/bin/
rtc 			usr/sbin/
time 			usr/sbin/
biosinfo 		usr/sbin/
guess 			usr/sbin/
cat_nvram 		usr/sbin/
guess-helper.sh 	usr/sbin/
guess-helper.mo 	usr/share/locale/de/LC_MESSAGES/
nvram-wakeup.conf	etc/

--- NEW FILE: postrm ---
#! /bin/sh
# postrm script for nvram-wakeup
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <postrm> `remove'
#        * <postrm> `purge'
#        * <old-postrm> `upgrade' <new-version>
#        * <new-postrm> `failed-upgrade' <old-version>
#        * <new-postrm> `abort-install'
#        * <new-postrm> `abort-install' <old-version>
#        * <new-postrm> `abort-upgrade' <old-version>
#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
       purge)
    	    # purge debconf database	
	    . /usr/share/debconf/confmodule
	    db_purge || echo "WARNING: db_purge failed"
       ;;
       
       remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)


        ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1

esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0

--- NEW FILE: control ---
Source: nvram-wakeup
Section: misc
Priority: optional
Maintainer: Tobias Grimm <tg@e-tobi.net>
Build-Depends: debhelper (>> 3.0.0), gettext
Standards-Version: 3.5.2

Package: nvram-wakeup
Architecture: any
Depends: ${shlibs:Depends}, debconf
Description: A tool to read/write the WakeUp time from/to the BIOS
 nvram-wakeup can read and write the WakeUp time in the BIOS 
 (via /dev/nvram on recent 2.4.x kernels or direct I/O port access). 
 On this WakeUp time the computer will be powered on automatically from
 the soft-off state.

--- NEW FILE: templates ---
Template: nvram-wakeup/install_module
Type: boolean
Default: false
Description: Try to automatically install the nvram kernel module?
 Enable this, if you want setup to automatically load the
 nvram Kernel module and add it to /etc/modules. Without this kernel module
 you have to use direct I/O access by using the --directisa option.
 

Template: nvram-wakeup/install_instruction
Type: note
Description: Install instructions
 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:
 .
 - mknod /dev/nvram c 10 144
 .
 - insmod nvram
 .
 - add nvram to /etc/modules
 .
 - update-modules

--- NEW FILE: docs ---
README
README.mb
README.reboot

--- NEW FILE: rules ---
#!/usr/bin/make -f
# 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

# This is the debhelper compatibility version to use.
export DH_COMPAT=4

ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -g
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
	INSTALL_PROGRAM += -s
endif

configure: configure-stamp
configure-stamp:
	dh_testdir
	# Add here commands to configure the package.

	touch configure-stamp


build: build-stamp

build-stamp: configure-stamp 
	dh_testdir

	# Add here commands to compile the package.
	$(MAKE)
	#/usr/bin/docbook-to-man debian/nvram-wakeup.sgml > nvram-wakeup.1

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp

	# Add here commands to clean up after the build process.
	-$(MAKE) clean
	rm -f debian/guess-helper.mo
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	dh_install


# 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_installdebconf	
	dh_installdocs
	dh_installexamples nvram-wakeup.conf VDR/vdrshutdown
	dh_installmenu
#	dh_installlogrotate
#	dh_installemacsen
#	dh_installpam
#	dh_installmime
#	dh_installinit
	dh_installcron
	dh_installman -v nvram-wakeup.8 nvram-wakeup.conf.5
	dh_installinfo
#	dh_undocumented
	dh_installchangelogs HISTORY
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
#	dh_makeshlibs
	dh_installdeb
#	dh_perl
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure

--- NEW FILE: changelog ---
nvram-wakeup (0.96-1) unstable; urgency=low

  * new upstream release

 -- Tobias Grimm <tg@e-tobi.net>  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 <tg@e-tobi.net>  Wed,  23 Apr 2004 09:00:00 +0200

nvram-wakeup (0.95a-1) unstable; urgency=low

  * new upstream release

 -- Tobias Grimm <tg@e-tobi.net>  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 <tg@e-tobi.net>  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 <tg@e-tobi.net>  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 <tg@e-tobi.net>  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 <tg@e-tobi.net>  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 <tg@e-tobi.net>  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 <tg@e-tobi.net>  Sun,  11 Jan 2004 12:41:00 +0100

nvram-wakeup (0.91-2) unstable; urgency=low

  * Initial Release.

 -- Tobias Grimm <tg@e-tobi.net>  Sat,  6 Dec 2003 16:29:23 +0200

--- NEW FILE: copyright ---
This package was debianized by Tobias Grimm <tg@e-tobi.net> on
Sat,  6 Dec 2003 16:29:23 +0200.

It was downloaded from http://sourceforge.net/projects/nvram-wakeup

Upstream Author(s): Sergei Haller <Sergei.Haller@math.uni-giessen.de>

Copyright:

  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 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA

 see /usr/share/common-licenses/GPL


--- NEW FILE: dirs ---
usr/bin
usr/sbin
usr/share/doc/nvram-wakeup
etc
usr/share/locale/de/LC_MESSAGES