summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-12-23 10:52:22 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-12-23 11:01:19 (GMT)
commita9af30025acf15ca8b9141a18a2d822ca6d3ea00 (patch)
treed83a398ec98897495c5c0f47fd41d3f8753b55e2
parent625eb1077f2605188f054b31b28ca9d416263982 (diff)
downloadpublik-client-scripts-a9af30025acf15ca8b9141a18a2d822ca6d3ea00.zip
publik-client-scripts-a9af30025acf15ca8b9141a18a2d822ca6d3ea00.tar.gz
publik-client-scripts-a9af30025acf15ca8b9141a18a2d822ca6d3ea00.tar.bz2
add debian packaging
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control13
-rw-r--r--debian/publik-strasbourg-scripts.cron.hourly4
-rw-r--r--debian/publik-strasbourg-scripts.dirs1
-rwxr-xr-xdebian/rules6
-rw-r--r--debian/source/format1
7 files changed, 31 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..8107c11
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+publik-client-scripts (0) UNRELEASED; urgency=medium
+
+ * Initial release.
+
+ -- Frederic Peters <fpeters@entrouvert.com> Sun, 23 Dec 2018 11:49:57 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0ba2738
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,13 @@
+Source: publik-client-scripts
+Section: web
+Priority: optional
+Maintainer: Frédéric Péters <fpeters@entrouvert.com>
+Build-Depends: debhelper (>= 9.0.0)
+Standards-Version: 3.9.4
+Homepage: https://git.entrouvert.org/publik-client-scripts.git
+
+Package: publik-strasbourg-scripts
+Architecture: all
+Depends: ${misc:Depends}, python-elasticsearch
+Description: Publik scripts for Strasbourg
+
diff --git a/debian/publik-strasbourg-scripts.cron.hourly b/debian/publik-strasbourg-scripts.cron.hourly
new file mode 100644
index 0000000..4e5807e
--- /dev/null
+++ b/debian/publik-strasbourg-scripts.cron.hourly
@@ -0,0 +1,4 @@
+#! /bin/sh
+
+test -d /var/lib/wcs || exit 0
+sudo -u wcs wcsctl runscript --vhost *strasbourg* /usr/lib/publik/clients/strasbourg/index-formdefs-in-elasticsearch.py
diff --git a/debian/publik-strasbourg-scripts.dirs b/debian/publik-strasbourg-scripts.dirs
new file mode 100644
index 0000000..68712a6
--- /dev/null
+++ b/debian/publik-strasbourg-scripts.dirs
@@ -0,0 +1 @@
+/usr/lib/publik/clients/strasbourg
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..acb39aa
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,6 @@
+#! /usr/bin/make -f
+
+#export DH_VERBOSE=1
+
+%:
+ dh $@
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)