debianization
authorKonstantin Stepanov <kstep@p-nut.info>
Sun, 12 Dec 2010 13:02:19 +0000 (15:02 +0200)
committerKonstantin Stepanov <kstep@p-nut.info>
Sun, 12 Dec 2010 13:17:17 +0000 (15:17 +0200)
Makefile
debian/README.Debian [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/dirs [new file with mode: 0644]
debian/docs [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]

index fb5a434..8098d0d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,20 @@
 
-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."
 
@@ -18,7 +22,7 @@ uninstall:
        -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 
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644 (file)
index 0000000..33a97da
--- /dev/null
@@ -0,0 +1,4 @@
+dbuscron for Debian
+-------------------
+
+ -- Konstantin Stepanov <kstep@p-nut.info>  Sun, 12 Dec 2010 14:40:04 +0200
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..3fd0c4c
--- /dev/null
@@ -0,0 +1,5 @@
+dbuscron (1.0-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Konstantin Stepanov <kstep@p-nut.info>  Sun, 12 Dec 2010 14:40:04 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..84cb4c0
--- /dev/null
@@ -0,0 +1,38 @@
+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!
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..7786962
--- /dev/null
@@ -0,0 +1,35 @@
+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.
diff --git a/debian/dirs b/debian/dirs
new file mode 100644 (file)
index 0000000..26e0955
--- /dev/null
@@ -0,0 +1,3 @@
+/usr/bin
+/usr/lib/pymodules/python2.5
+/etc/event.d
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..b760bee
--- /dev/null
@@ -0,0 +1,13 @@
+#!/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 $@ 
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)