Alexandre Detiste pushed to branch master at Debian Java Maintainers / jetty9
Commits: 450642e7 by Luca Boccassi at 2026-05-04T14:10:48+01:00 Install and use sysusers.d/tmpfiles.d config files sysusers.d/tmpfiles.d config files allow a package to use declarative configuration instead of manually written maintainer scripts. This also allows image-based systems to be created with /usr/ only, and also allows for factory resetting a system and recreating /etc/ on boot. https://www.freedesktop.org/software/systemd/man/latest/sysusers.d.html - - - - - e2000676 by Alexandre Detiste at 2026-05-07T13:30:54+02:00 Merge branch 'sysusers' into 'master' Install and use sysusers.d/tmpfiles.d config files See merge request java-team/jetty9!3 - - - - - 5 changed files: - debian/control - debian/jetty9.dirs - debian/jetty9.postinst - + debian/jetty9.sysusers - + debian/jetty9.tmpfiles Changes: ===================================== debian/control ===================================== @@ -6,6 +6,7 @@ Uploaders: Emmanuel Bourg <[email protected]> Build-Depends: ant-optional, debhelper-compat (= 13), + dh-sequence-installsysusers, default-jdk, dh-exec, javahelper, @@ -77,7 +78,6 @@ Description: Java servlet engine and webserver -- extra libraries Package: jetty9 Architecture: all Depends: - adduser, apache2-utils, default-jre-headless (>= 2:1.8) | java8-runtime-headless, libeclipse-jdt-core-java, ===================================== debian/jetty9.dirs ===================================== @@ -3,6 +3,3 @@ etc/jetty9/start.d usr/share/doc/jetty9 usr/share/jetty9 usr/share/jetty9/lib/ext -var/cache/jetty9 -var/lib/jetty9/webapps -var/log/jetty9 ===================================== debian/jetty9.postinst ===================================== @@ -6,21 +6,7 @@ JETTY_GROUP=jetty case "$1" in configure) - # Install the default page if no root context exist - if [ ! -f /var/lib/jetty9/webapps/root.war ]; then - mkdir -p /var/lib/jetty9/webapps/root - if [ -z "$(ls -A /var/lib/jetty9/webapps/root)" ]; then - cp /usr/share/jetty9/default-root/* /var/lib/jetty9/webapps/root - fi - fi - - if ! id jetty > /dev/null 2>&1 ; then - adduser --system --home /usr/share/jetty9 --no-create-home \ - --group --disabled-password --shell /bin/false \ - $JETTY_USER - fi - chown -Rh jetty:adm /var/cache/jetty9 /var/log/jetty9 /var/lib/jetty9 - chmod 750 /var/log/jetty9 + systemd-sysusers ${DPKG_ROOT:+--root="$DPKG_ROOT"} jetty9.conf # Authorize user jetty to open privileged ports via authbind. JETTY_UID="`id -u $JETTY_USER`" ===================================== debian/jetty9.sysusers ===================================== @@ -0,0 +1 @@ +u! jetty - - /usr/share/jetty9 /bin/false ===================================== debian/jetty9.tmpfiles ===================================== @@ -0,0 +1,8 @@ +d /var/cache/jetty9 0755 jetty adm +Z /var/cache/jetty9 - jetty adm +d /var/log/jetty9 0750 jetty adm +Z /var/log/jetty9 - jetty adm +d /var/lib/jetty9 0755 jetty adm +Z /var/lib/jetty9 - jetty adm +d /var/lib/jetty9/webapps 0755 jetty adm +C /var/lib/jetty9/webapps/root - - - - /usr/share/jetty9/default-root View it on GitLab: https://salsa.debian.org/java-team/jetty9/-/compare/a9456cde705208073942da21c80f22000ac41b2d...e20006767443cf6a614e16357dd4a846d4b78379 -- View it on GitLab: https://salsa.debian.org/java-team/jetty9/-/compare/a9456cde705208073942da21c80f22000ac41b2d...e20006767443cf6a614e16357dd4a846d4b78379 You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
_______________________________________________ pkg-java-commits mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-commits

