Skip to content

Commit cb96685

Browse files
committed
packaging updates
1 parent bf4253e commit cb96685

8 files changed

Lines changed: 14 additions & 7 deletions

File tree

debian/control

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Section: python
33
Priority: optional
44
Maintainer: Marcus Furlong <furlongm@gmail.com>
55
Uploaders: Marcus Furlong <furlongm@gmail.com>
6-
Build-Depends: debhelper (>=13), python3 (>= 3.11), dh-python, dh-exec
6+
Build-Depends: debhelper (>=13), python3 (>= 3.11), dh-python, dh-exec, dh-systemd
77
Standards-Version: 4.6.2
88
Homepage: https://github.com/furlongm/patchman
99
Vcs-Git: git://github.com/furlongm/patchman
@@ -18,10 +18,10 @@ Depends: ${misc:Depends}, python3 (>= 3.11), python3-django (>= 4.2),
1818
python3-djangorestframework, python3-django-filters, python3-debian,
1919
python3-rpm, python3-tqdm, python3-defusedxml, python3-pip, python3-tenacity,
2020
python3-requests, python3-colorama, python3-magic, python3-humanize,
21-
python3-pymemcache, python3-yaml, memcached, libapache2-mod-wsgi-py3,
22-
apache2, python3-django-taggit, python3-celery, python3-django-celery-beat,
23-
python3-redis, python3-git
24-
Suggests: python3-mysqldb, python3-psycopg2
21+
python3-yaml, libapache2-mod-wsgi-py3, apache2,
22+
celery, python3-celery, python3-django-celery-beat, redis-server,
23+
python3-redis, python3-git, python3-django-taggit
24+
Suggests: python3-mysqldb, python3-psycopg2, python3-pymemcache, memcached
2525
Description: Django-based patch status monitoring tool for linux systems.
2626
.
2727
Patchman provides a web interface for monitoring host package updates.

debian/python3-patchman.postinst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ if [ "$1" = "configure" ] ; then
1212
. /usr/share/apache2/apache2-maintscript-helper
1313
apache2_invoke enconf patchman.conf
1414

15+
adduser --system --group patchman-celery
16+
1517
patchman-set-secret-key
1618
chown www-data /etc/patchman/local_settings.py
1719

debian/rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ clean::
99
export PYBUILD_NAME=patchman
1010

1111
%:
12-
dh $@ --with python3 --buildsystem=pybuild
12+
dh $@ --with=python3 --buildsystem=pybuild --with=systemd
1313

1414
override_dh_auto_test:
1515
true

errata/__init__.py

Whitespace-only changes.

etc/patchman/celery.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REDIS_HOST=127.0.0.1
2+
REDIS_PORT=6379

etc/systemd/system/patchman-celery.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ After=network-onlne.target
77
Type=simple
88
User=patchman-celery
99
Group=patchman-celery
10-
EnvironmentFile=/etc/patchman/celery
10+
EnvironmentFile=/etc/patchman/celery.conf
1111
ExecStart=/usr/bin/celery --broker redis://${REDIS_HOST}:${REDIS_PORT}/0 --app patchman worker --loglevel info --beat --scheduler django_celery_beat.schedulers:DatabaseScheduler --task-events --pool threads
1212

1313
[Install]

security/__init__.py

Whitespace-only changes.

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ requires = /usr/bin/python3
2525
python3-importlib-metadata
2626
python3-cvss
2727
python3-redis
28+
redis-server
29+
celery
30+
python3-django-celery-beat
2831
python3-GitPython
2932
policycoreutils-python-utils
3033
httpd

0 commit comments

Comments
 (0)