--- hpfall-2.6.32.orig/debian/compat +++ hpfall-2.6.32/debian/compat @@ -0,0 +1 @@ +7 --- hpfall-2.6.32.orig/debian/rules +++ hpfall-2.6.32/debian/rules @@ -0,0 +1,74 @@ +#!/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 + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + gcc -O2 -g -Wall -o hpfall hpfall.c + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + rm -f hpfall + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + install -D hpfall $(CURDIR)/debian/hpfall/usr/sbin/hpfall + + +# 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 +# dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime + dh_installinit +# dh_installcron + dh_installman +# dh_installinfo +# dh_undocumented + dh_installchangelogs + 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 --- hpfall-2.6.32.orig/debian/changelog +++ hpfall-2.6.32/debian/changelog @@ -0,0 +1,17 @@ +hpfall (2.6.32-0pmjdebruijn2~lucid) lucid; urgency=low + + * Added default file for configuration. + + -- Pascal de Bruijn Fri, 23 Apr 2010 14:13:18 +0200 + +hpfall (2.6.32-0pmjdebruijn1~lucid) lucid; urgency=low + + * New upstream release (taken from linux-2.6.32.11). + + -- Pascal de Bruijn Mon, 19 Apr 2010 18:02:20 +0200 + +hpfall (2.6.31-0pmjdebruijn1~karmic) karmic; urgency=low + + * Initial release. + + -- Pascal de Bruijn Mon, 14 Sep 2009 16:05:01 +0200 --- hpfall-2.6.32.orig/debian/control +++ hpfall-2.6.32/debian/control @@ -0,0 +1,14 @@ +Source: hpfall +Section: misc +Priority: optional +Maintainer: Pascal de Bruijn +Build-Depends: debhelper (>> 7.0.0) +Standards-Version: 3.8.4 + +Package: hpfall +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: HP 3D DriveGuard daemon for HP/Compaq laptops + This is a disk protection user-space daemon. It monitors the acceleration + values through the STM LIS sensors and automatically initiates disk head + parking if a fall of the laptop is detected. --- hpfall-2.6.32.orig/debian/copyright +++ hpfall-2.6.32/debian/copyright @@ -0,0 +1,12 @@ +This package was debianized by Pascal de Bruijn on +Mon, 14 Sep 2009 15:44:49 +0200. + +Copyright 2008 Eric Piel +Copyright 2009 Pavel Machek + +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. + +On Debian GNU/Linux systems, the complete text of the GNU General Public +License version 2 can be found in /usr/share/common-licenses/GPL-2. --- hpfall-2.6.32.orig/debian/hpfall.default +++ hpfall-2.6.32/debian/hpfall.default @@ -0,0 +1 @@ +DEVICE=/dev/sda --- hpfall-2.6.32.orig/debian/hpfall.init +++ hpfall-2.6.32/debian/hpfall.init @@ -0,0 +1,42 @@ +#!/bin/sh +# Start/stop the cron daemon. +# +### BEGIN INIT INFO +# Provides: hpfall +# Required-Start: $local_fs +# Required-Stop: $local_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: HP 3D DriveGuard daemon for HP/Compaq laptops +# Description: This is a disk protection user-space daemon. +### END INIT INFO + +DAEMON=hpfall + +test -f /usr/sbin/$DAEMON || exit 0 + +PIDFILE=/var/run/$DAEMON.pid + +. /lib/lsb/init-functions + +test -f /etc/default/hpfall && . /etc/default/hpfall + +case "$1" in + start) log_daemon_msg "Starting HP 3D DriveGuard protection daemon: " "$DAEMON" + start-stop-daemon --start --quiet --make-pidfile --pidfile $PIDFILE --background --name $DAEMON --exec /usr/sbin/$DAEMON $DEVICE + log_end_msg $? + ;; + stop) log_daemon_msg "Stopping HP 3D DriveGuard protection daemon: " "$DAEMON" + start-stop-daemon --stop --quiet --pidfile $PIDFILE --name $DAEMON + log_end_msg $? + ;; + restart) log_daemon_msg "Restarting HP 3D DriveGuard protection daemon: " "$DAEMON" + start-stop-daemon --stop --quiet --pidfile $PIDFILE --name $DAEMON + start-stop-daemon --start --quiet --make-pidfile --pidfile $PIDFILE --background --name $DAEMON --exec /usr/sbin/$DAEMON $DEVICE + log_end_msg $? + ;; + *) log_action_msg "Usage: /etc/init.d/$DAEMON {start|stop|restart}" + exit 2 + ;; +esac +exit 0