summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile14
-rw-r--r--src/setup.py15
2 files changed, 29 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..c3a3660
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,14 @@
+# vim: shiftwidth=4 tabstop=4 noexpandtab
+
+DESTDIR="" # leave empty for the current system or provide a fakeroot here
+
+.PHONY: all clean install
+
+all:
+ python setup.py build
+
+clean:
+ rm -rf build
+
+install: all
+ python setup.py install --root=$(DESTDIR) --optimize=1 --skip-build
diff --git a/src/setup.py b/src/setup.py
new file mode 100644
index 0000000..4666c36
--- /dev/null
+++ b/src/setup.py
@@ -0,0 +1,15 @@
+#!/usr/bin/python3
+# vim: shiftwidth=4 tabstop=4 expandtab
+
+
+from distutils.core import setup
+
+
+setup(name="xbackup",
+ version="0.0.1",
+ description="Convenience wrapper around the Borg backup tool",
+ author="xengineering",
+ author_email="me@xengineering.eu",
+ url="https://xengineering.eu",
+ packages=["xbackup"],
+)