-PYMODULES ?= /usr/lib/pymodules/python2.5
-PREFIX ?= /usr/bin
+DESTDIR ?=
+PYMODULES ?= $(DESTDIR)/usr/lib/pymodules/python2.5
+PREFIX ?= $(DESTDIR)/usr/bin
PYSUFFIX = `test -e ./dbuscron/__init__.pyo && echo pyo || echo pyc`
+all:
+ @echo "No compilation needed."
+
install:
install -o root -g root -m 0755 ./dbuscron.py $(PREFIX)/dbuscron
install -o root -g root -m 0755 ./dbuscrontab.py $(PREFIX)/dbuscrontab
install -o root -g root -m 0755 -d $(PYMODULES)/dbuscron
python -c 'import dbuscron'
install -o root -g root -m 0644 ./dbuscron/*.$(PYSUFFIX) $(PYMODULES)/dbuscron
- install -o root -g root -m 0644 ./event.d/dbuscron /etc/event.d/dbuscron
- touch /etc/dbuscrontab
+ install -o root -g root -m 0644 ./event.d/dbuscron $(DESTDIR)/etc/event.d/dbuscron
+ touch $(DESTDIR)/etc/dbuscrontab
@echo "Installation complete. Run \`dbuscrontab -e' to edit config file,"
@echo "then run \`initctl start dbuscron' to start dbuscron daemon."
-initctl stop dbuscron
rm -rf $(PYMODULES)/dbuscron
rm -f $(PREFIX)/dbuscron $(PREFIX)/dbuscrontab
- rm -f /etc/event.d/dbuscron
+ rm -f $(DESTDIR)/etc/event.d/dbuscron
clean:
find . -name "*.py[co]" | xargs rm -f
--- /dev/null
+dbuscron for Debian
+-------------------
+
+ -- Konstantin Stepanov <kstep@p-nut.info> Sun, 12 Dec 2010 14:40:04 +0200
--- /dev/null
+dbuscron (1.0-1) unstable; urgency=low
+
+ * Initial release
+
+ -- Konstantin Stepanov <kstep@p-nut.info> Sun, 12 Dec 2010 14:40:04 +0200
--- /dev/null
+Source: dbuscron
+Section: devel
+Priority: extra
+Maintainer: Konstantin Stepanov <kstep@p-nut.info>
+Build-Depends: debhelper (>= 7.0.50~)
+Standards-Version: 3.8.4
+Homepage: https://github.com/kstep/dbuscron
+#Vcs-Git: git://git.debian.org/collab-maint/dbuscron.git
+#Vcs-Browser: http://git.debian.org/?p=collab-maint/dbuscron.git;a=summary
+
+Package: dbuscron
+Architecture: all
+Depends: ${misc:Depends}, python (>=2.5)
+Description: dbuscron is cron-like DBUS events scheduler
+ It's main target is Maemo 5. I wrote it for my N900 actually,
+ so I can schedule tasks for different DBUS events. This package
+ is prepared for Maemo 5 only, but the application itself can
+ be used on any Linux system.
+ .
+ It's configuration file is /etc/dbuscrontab.
+ Use `dbuscrontab -e' command to edit it (run dbuscrontab without
+ parameters to see help on command arguments).
+ .
+ The format of dbuscrontab is really simple and very similar to
+ crontab's one: it is a white-space separated table file, each
+ not empty and not comment (the one with `#' at first column) line
+ consists of 9 space separated fields: bus (`S' for system and `s'
+ for session), event type (signal, method_call, method_return or error),
+ event sender name, interface, object path, member, destination,
+ event arguments (actually a semicolon-separated list of arguments
+ to match) and shell command to run.
+ .
+ Every field can contain `*' to match any value, or multiple possible
+ values separated with comma.
+ .
+ When run, daemon listens for these events and runs shell command
+ for caught event. That's it!
+
--- /dev/null
+This work was packaged for Debian by:
+
+ Konstantin Stepanov <kstep@p-nut.info> on Sun, 12 Dec 2010 14:40:04 +0200
+
+It was downloaded from:
+
+ http://github.com/kstep/dbuscron
+
+Upstream Author(s):
+
+ Konstantin Stepanov <kstep@p-nut.info>
+
+Copyright:
+
+ Copyright (C) 2010 Konstantin Stepanov <kstep@p-nut.info>
+
+License:
+
+ GNU Library General Public License 3
+
+The Debian packaging is:
+
+ Copyright (C) 2010 Konstantin Stepanov <kstep@p-nut.info>
+
+# Please chose a license for your packaging work. If the program you package
+# uses a mainstream license, using the same license is the safest choice.
+# Please avoid to pick license terms that are more restrictive than the
+# packaged work, as it may make Debian's contributions unacceptable upstream.
+# If you just want it to be GPL version 3, leave the following lines in.
+
+and is licensed under the GPL version 3,
+see "/usr/share/common-licenses/GPL-3".
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
--- /dev/null
+/usr/bin
+/usr/lib/pymodules/python2.5
+/etc/event.d
--- /dev/null
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+ dh $@
--- /dev/null
+3.0 (quilt)