diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-10-11 11:46:42 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-02-19 16:15:49 +0100 |
commit | 9494c5af7313f5f139ae815e9a1b81b757c27883 (patch) | |
tree | 1596492865507314904fb40b793584dd34872c2c | |
parent | 1292e6705f257ae0b93c356c7d4913d0188c1611 (diff) | |
download | Ishtar-9494c5af7313f5f139ae815e9a1b81b757c27883.tar.bz2 Ishtar-9494c5af7313f5f139ae815e9a1b81b757c27883.zip |
🚀 Debian package: ishtar-tasks
-rw-r--r-- | debian.tasks/changelog | 30 | ||||
-rw-r--r-- | debian.tasks/compat | 1 | ||||
-rw-r--r-- | debian.tasks/control | 19 | ||||
-rw-r--r-- | debian.tasks/copyright | 42 | ||||
-rw-r--r-- | debian.tasks/ishtar-tasks.install | 2 | ||||
-rw-r--r-- | debian.tasks/ishtar-tasks.postinst | 19 | ||||
-rwxr-xr-x | debian.tasks/rules | 13 | ||||
-rw-r--r-- | debian.tasks/source/format | 1 | ||||
-rw-r--r-- | install/celery | 1 | ||||
-rw-r--r-- | install/celeryd.default.template | 2 | ||||
-rw-r--r-- | install/tasks_settings.py.sample | 1 |
11 files changed, 130 insertions, 1 deletions
diff --git a/debian.tasks/changelog b/debian.tasks/changelog new file mode 100644 index 000000000..234a4fecf --- /dev/null +++ b/debian.tasks/changelog @@ -0,0 +1,30 @@ +ishtar-tasks (4.0.1-2) UNRELEASED; urgency=low + + * Add supervisor to recommends + + -- Étienne Loks <etienne.loks@iggdrasil.net> Sun, 10 Jul 2022 11:11:00 +0200 +ishtar-tasks (4.0.1-1) UNRELEASED; urgency=low + + * bullseye version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Sun, 10 Jul 2022 11:11:00 +0200 +ishtar-tasks (3.0.2-2) UNRELEASED; urgency=low + + * postinst: create /var/log/celery + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 19 Feb 2020 13:30:00 +0200 +ishtar-tasks (3.0.2-1) UNRELEASED; urgency=low + + * Add config in conf.d dir + + -- Étienne Loks <etienne.loks@iggdrasil.net> Mon, 17 Feb 2020 18:40:00 +0200 +ishtar-tasks (3.0.1-1) UNRELEASED; urgency=low + + * Do not depend on strict equality of python3-django-ishtar version + + -- Étienne Loks <etienne.loks@iggdrasil.net> Thu, 13 Feb 2020 13:00:00 +0200 +ishtar-tasks (3.0.0-1) UNRELEASED; urgency=low + + * First package + + -- Étienne Loks <etienne.loks@iggdrasil.net> Wed, 29 Jan 2020 11:00:00 +0200 diff --git a/debian.tasks/compat b/debian.tasks/compat new file mode 100644 index 000000000..f599e28b8 --- /dev/null +++ b/debian.tasks/compat @@ -0,0 +1 @@ +10 diff --git a/debian.tasks/control b/debian.tasks/control new file mode 100644 index 000000000..e7ee9a0a5 --- /dev/null +++ b/debian.tasks/control @@ -0,0 +1,19 @@ +Source: ishtar-tasks +Section: web +Priority: optional +Maintainer: Étienne Loks <etienne.loks@iggdrasil.net> +Build-Depends: debhelper (>= 11~) +Standards-Version: 4.3.0 +Homepage: https://ishtar-archeo.net/ + +Package: ishtar-tasks +Architecture: all +Depends: ${misc:Depends}, + python3-django-ishtar (>= ${source:Version}), + python3-celery, + python-celery-common +Recommends: + rabbitmq-server, + supervisor +Description: Background task server for Ishtar + Background task server using rabbitmq task queue. diff --git a/debian.tasks/copyright b/debian.tasks/copyright new file mode 100644 index 000000000..eaa377cee --- /dev/null +++ b/debian.tasks/copyright @@ -0,0 +1,42 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ishtar-tasks +Source: https://gitlab.com/iggdrasil/ishtar.git + +Files: * +Copyright: 2013-2020 Étienne Loks <etienne.loks@iggdrasil.net> +License: AGPL-3.0+ + +Files: debian/* +Copyright: 2013-2020 Étienne Loks <etienne.loks@iggdrasil.net> +License: GPL-3.0+ + +License: GPL-3.0+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". + +License: AGPL-3.0 + This program is free software: you can use, redistribute, and/or modify + this code under the terms of the GNU Affero General Public License + version 3. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + . + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + diff --git a/debian.tasks/ishtar-tasks.install b/debian.tasks/ishtar-tasks.install new file mode 100644 index 000000000..e59e52322 --- /dev/null +++ b/debian.tasks/ishtar-tasks.install @@ -0,0 +1,2 @@ +install/tasks_settings.py etc/ishtar/ +install/celery etc/ishtar/conf.d/ diff --git a/debian.tasks/ishtar-tasks.postinst b/debian.tasks/ishtar-tasks.postinst new file mode 100644 index 000000000..23d7328b4 --- /dev/null +++ b/debian.tasks/ishtar-tasks.postinst @@ -0,0 +1,19 @@ +#!/bin/sh + +set -e + +case "$1" in + configure) + mkdir -p /var/log/celery + chown www-data:www-data /var/log/celery + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac
\ No newline at end of file diff --git a/debian.tasks/rules b/debian.tasks/rules new file mode 100755 index 000000000..1fed0020d --- /dev/null +++ b/debian.tasks/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +## Prevent setuptools/distribute from accessing the internet. +#export http_proxy = http://127.0.9.1:9 + +%: + @dh $@ + +dh_auto_clean: + echo "Pass" diff --git a/debian.tasks/source/format b/debian.tasks/source/format new file mode 100644 index 000000000..163aaf8d8 --- /dev/null +++ b/debian.tasks/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/install/celery b/install/celery new file mode 100644 index 000000000..11d8ae58d --- /dev/null +++ b/install/celery @@ -0,0 +1 @@ +USE_CELERY=yes diff --git a/install/celeryd.default.template b/install/celeryd.default.template index 1337d8f92..7f1c8660f 100644 --- a/install/celeryd.default.template +++ b/install/celeryd.default.template @@ -16,7 +16,7 @@ CELERYD_PID_FILE="/run/celery/#APP_NAME#%n.pid" # Log level CELERYD_LOG_LEVEL=INFO -# Path to celery binary, that is in your virtual environment +# Path to celery binary CELERY_BIN=#CELERY_BIN_PATH# # to debug the service it could be necessary to uncomment the following line diff --git a/install/tasks_settings.py.sample b/install/tasks_settings.py.sample new file mode 100644 index 000000000..252885ed8 --- /dev/null +++ b/install/tasks_settings.py.sample @@ -0,0 +1 @@ +USE_BACKGROUND_TASK = True |