Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion debian/compat

This file was deleted.

9 changes: 3 additions & 6 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ Source: patchman
Section: python
Priority: optional
Maintainer: Marcus Furlong <furlongm@gmail.com>
Uploaders: Marcus Furlong <furlongm@gmail.com>
Build-Depends: debhelper (>=13), python3 (>= 3.11), dh-python, dh-exec
Build-Depends: debhelper-compat (= 13), python3 (>= 3.11), dh-python, dh-exec
Standards-Version: 4.6.2
Homepage: https://github.com/furlongm/patchman
Vcs-Git: git://github.com/furlongm/patchman
Expand All @@ -22,10 +21,9 @@ Depends: ${misc:Depends}, python3 (>= 3.11), python3-django (>= 4.2),
python3-yaml, libapache2-mod-wsgi-py3, apache2, sqlite3,
celery, python3-celery, python3-django-celery-beat, redis-server,
python3-redis, python3-git, python3-django-taggit, python3-zstandard,
python3-django-tables2, python3-django-select2
python3-django-tables2, python3-django-select2, adduser
Suggests: python3-mysqldb, python3-psycopg2, python3-pymemcache, memcached
Description: Django-based patch status monitoring tool for linux systems.
.
Patchman provides a web interface for monitoring host package updates.
.
Patchman clients send a list of installed packages and enabled repositories to
Expand All @@ -45,8 +43,7 @@ Description: Django-based patch status monitoring tool for linux systems.
Package: patchman-client
Architecture: all
Homepage: https://github.com/furlongm/patchman
Depends: ${misc:Depends}, curl, debianutils, util-linux, coreutils, mawk, jq
Depends: ${misc:Depends}, curl, mawk, jq
Description: Client for the patchman monitoring system.
.
The client will send a list of packages and repositories to the upstream
patchman server.
4 changes: 2 additions & 2 deletions debian/python3-patchman.install
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/dh-exec
etc/patchman/apache.conf.example => etc/apache2/conf-available/patchman.conf
etc/patchman/local_settings.py etc/patchman
etc/systemd/system/patchman-celery-worker.service => lib/systemd/system/patchman-celery-worker@.service
etc/systemd/system/patchman-celery-beat.service => lib/systemd/system/patchman-celery-beat.service
etc/systemd/system/patchman-celery-worker@.service usr/lib/systemd/system
etc/systemd/system/patchman-celery-beat.service => usr/lib/systemd/system/patchman-celery-beat.service
4 changes: 2 additions & 2 deletions debian/python3-patchman.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ if [ "$1" = "configure" ] ; then
patchman-manage migrate --run-syncdb --fake-initial
sqlite3 /var/lib/patchman/db/patchman.db 'PRAGMA journal_mode=WAL;'

adduser --quiet --system --group patchman
adduser --quiet --system --group --home /var/lib/patchman patchman
adduser --quiet www-data patchman
chown root:patchman /etc/patchman/celery.conf
chmod 640 /etc/patchman/celery.conf
chmod g+w /var/lib/patchman /var/lib/patchman/db /var/lib/patchman/db/patchman.db
chown -R patchman:patchman /var/lib/patchman
chown patchman:patchman /var/lib/patchman /var/lib/patchman/db /var/lib/patchman/db/patchman.db

WORKER_COUNT=1
if [ -f /etc/patchman/celery.conf ]; then
Expand Down
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ clean::
export PYBUILD_NAME=patchman

%:
dh $@ --with=python3 --buildsystem=pybuild --with=systemd
dh $@ --with=python3 --buildsystem=pybuild

override_dh_auto_test:
true