diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2009-06-17 22:44:17 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2009-06-17 22:44:17 +0200 |
commit | 780625a4fab29a43f63603c6a1137ebbdd7a2412 (patch) | |
tree | 8a592fe000f4b093388a8908f3e889eb15ecc526 /debian | |
parent | 35936f4b71aece84643d7a6627efb73c2a0d9369 (diff) |
debian: update policy-version to 3.8.2, fix build, re-add initscript
Diffstat (limited to 'debian')
-rw-r--r-- | debian/control | 2 | ||||
-rwxr-xr-x | debian/i3status-wmii.init | 35 | ||||
-rwxr-xr-x | debian/rules | 4 |
3 files changed, 38 insertions, 3 deletions
diff --git a/debian/control b/debian/control index 2f68cac..68993a1 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Maintainer: Michael Stapelberg <michael@stapelberg.de> DM-Upload-Allowed: yes Build-Depends: debhelper (>= 5) -Standards-Version: 3.7.3 +Standards-Version: 3.8.2 Homepage: http://i3.zekjur.net/i3status Package: i3status diff --git a/debian/i3status-wmii.init b/debian/i3status-wmii.init new file mode 100755 index 0000000..9b5ea6d --- /dev/null +++ b/debian/i3status-wmii.init @@ -0,0 +1,35 @@ +#!/bin/sh +# +### BEGIN INIT INFO +# Provides: i3status +# Required-Start: +# Required-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Generates a status line for dzen2 or wmii +# Description: Generates a status line for dzen2 or wmii +### END INIT INFO + +# For the pidfile, you must be root. i3status itself runs as user just fine +[ $(id -ru) -eq 0 ] || { echo "You need to be root"; exit 1; } + +. /lib/lsb/init-functions + +case "$1" in +start) log_daemon_msg "Starting wmii status bar filler" "i3status" + start-stop-daemon --start --background --quiet --make-pidfile --pidfile /var/run/i3status.pid --name i3status --startas /usr/bin/i3status + log_end_msg $? + ;; +stop) log_daemon_msg "Stopping wmii status bar filler" "i3status" + start-stop-daemon --stop --quiet --pidfile /var/run/i3status.pid --name i3status + log_end_msg $? + ;; +restart|reload|force-reload) log_daemon_msg "Restarting wmii status bar filler" "i3status" + start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/i3status.pid --name i3status + start-stop-daemon --start --background --quiet --make-pidfile --pidfile /var/run/i3status.pid --name i3status --startas /usr/bin/i3status + ;; +*) log_action_msg "Usage: $0 {start|stop|restart|reload|force-reload}" + exit 2 + ;; +esac +exit 0 diff --git a/debian/rules b/debian/rules index d9baa9c..82bdb4b 100755 --- a/debian/rules +++ b/debian/rules @@ -46,7 +46,7 @@ binary-indep: build install binary-arch: binary-i3status binary-i3status-wmii -binary-i3status: build-stamp-i3status +binary-i3status: build-i3status dh_testdir dh_testroot dh_installchangelogs @@ -64,7 +64,7 @@ binary-i3status: build-stamp-i3status dh_md5sums dh_builddeb -binary-i3status-wmii: build-stamp-i3status-wmii +binary-i3status-wmii: build-i3status-wmii dh_testdir dh_testroot dh_installchangelogs |