From 8bc267c0c3e49a946f9d741aae60f069b3e8dda5 Mon Sep 17 00:00:00 2001 From: Konstantin Stepanov Date: Sun, 12 Dec 2010 14:08:47 +0200 Subject: [PATCH] Makefile to install & uninstall dbuscron added --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cf21aae --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ + +PYMODULES ?= /usr/lib/pymodules/python2.5 +PREFIX ?= /usr/bin +PYSUFFIX = `test -e ./dbuscron/__init__.pyo && echo pyo || echo pyc` + +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 + @echo "Installation complete. Run \`dbuscrontab -e' to edit config file," + @echo "then run \`initctl start dbuscron' to start dbuscron daemon." + +uninstall: + -initctl stop dbuscron + rm -rf $(PYMODULES)/dbuscron + rm -f $(PREFIX)/dbuscron $(PREFIX)/dbuscrontab + rm -f /etc/event.d/dbuscron -- 1.7.9.5