summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-07-02 16:00:58 +0300
committerLars Wirzenius <liw@liw.fi>2017-07-02 19:45:33 +0300
commitd3b30a10018142bce02f6b1870125225f6a42f9b (patch)
treec440d7f7d815a5f901acac50af8049981f8b8b11 /debian
parent51303e73746cdbe59aa4552b65402bd0ab731c16 (diff)
downloadick2-d3b30a10018142bce02f6b1870125225f6a42f9b.tar.gz
Add: uWSGI, systemd integration, incl. in .deb
Diffstat (limited to 'debian')
-rw-r--r--debian/control2
-rw-r--r--debian/ick2.dirs1
-rw-r--r--debian/ick2.install2
-rw-r--r--debian/ick2.postinst8
4 files changed, 12 insertions, 1 deletions
diff --git a/debian/control b/debian/control
index 19c4fda..c4e5b06 100644
--- a/debian/control
+++ b/debian/control
@@ -11,6 +11,6 @@ X-Python-Version: >= 2.7
Package: ick2
Architecture: all
Depends: ${python:Depends}, ${misc:Depends}, python (>= 2.7),
- python-bottle, python-cliapp
+ python-bottle, python-cliapp, uwsgi-plugin-python
Description: a work-in-progress CI server
This should be written.
diff --git a/debian/ick2.dirs b/debian/ick2.dirs
new file mode 100644
index 0000000..7bcc774
--- /dev/null
+++ b/debian/ick2.dirs
@@ -0,0 +1 @@
+var/lib/ick2
diff --git a/debian/ick2.install b/debian/ick2.install
new file mode 100644
index 0000000..49189b5
--- /dev/null
+++ b/debian/ick2.install
@@ -0,0 +1,2 @@
+uwsgi.ini etc/ick2
+ick2.service lib/systemd/system
diff --git a/debian/ick2.postinst b/debian/ick2.postinst
new file mode 100644
index 0000000..b429951
--- /dev/null
+++ b/debian/ick2.postinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -eu
+
+# Create the log directory with the right ownership and permissions.
+install -d -m 0755 -o www-data -g www-data /var/log/ick2
+
+#DEBHELPER#