]> git.0d.be Git - panikdb.git/commitdiff
debian: add packaging
authorFrédéric Péters <fpeters@0d.be>
Thu, 28 May 2020 16:43:55 +0000 (18:43 +0200)
committerFrédéric Péters <fpeters@0d.be>
Thu, 28 May 2020 16:48:18 +0000 (18:48 +0200)
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..a98efcd
--- /dev/null
@@ -0,0 +1,5 @@
+panikdb (0-0) stable; urgency=low
+
+  * Initial version.
+
+ -- Frederic Peters <fred@radiopanik.org>  Thu, 28 May 2020 17:30:03 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..f599e28
--- /dev/null
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..9fa01f4
--- /dev/null
@@ -0,0 +1,16 @@
+Source: panikdb
+Section: python
+Priority: optional
+Maintainer: Frederic Peters <fred@radiopanik.org>
+Build-Depends: debhelper (>= 10),
+               python3-all,
+               python3-django
+               python3-setuptools,
+               dh-python
+Standards-Version: 3.9.1
+
+Package: panikdb
+Architecture: all
+Depends: ${python3:Depends}
+Description: Panik database management
+ Backoffice for everything.
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..a842ed8
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=panikdb
+export PYBUILD_DISABLE=test
+
+%:
+       dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_install:
+       dh_install
+       mv $(CURDIR)/debian/panikdb/usr/bin/manage.py $(CURDIR)/debian/panikdb/usr/lib/panikdb/manage.py