Stéphane Glondu pushed to branch master at Debian OCaml Maintainers / approx


Commits:
7d7e72c3 by Luca Boccassi at 2026-06-02T21:56:56+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
https://www.freedesktop.org/software/systemd/man/latest/tmpfiles.d.html

- - - - -
b8feb629 by Stéphane Glondu at 2026-06-04T09:05:57+00:00
Merge branch 'sysusers' into 'master'

Install and use sysusers.d/tmpfiles.d config files

See merge request ocaml-team/approx!9
- - - - -


4 changed files:

- debian/approx.postinst
- + debian/approx.sysusers
- + debian/approx.tmpfiles
- debian/control


Changes:

=====================================
debian/approx.postinst
=====================================
@@ -8,15 +8,6 @@ case "$1" in
     *) exit 0 ;;
 esac
 
-# add the approx user
-adduser --quiet --system --group --no-create-home --home /var/cache/approx 
approx
-
-# create the approx cache directory if necessary
-if [ ! -d /var/cache/approx ]; then
-    mkdir /var/cache/approx
-    chown approx:approx /var/cache/approx
-fi
-
 if dpkg --compare-versions "$2" lt "4.0"; then
     if [ -f /etc/default/approx ]; then
         rm -f /etc/default/approx


=====================================
debian/approx.sysusers
=====================================
@@ -0,0 +1 @@
+u! approx - - /var/cache/approx /usr/sbin/nologin


=====================================
debian/approx.tmpfiles
=====================================
@@ -0,0 +1 @@
+d /var/cache/approx 0755 approx approx


=====================================
debian/control
=====================================
@@ -6,6 +6,7 @@ Build-Depends:
  debhelper-compat (= 13),
  dh-ocaml,
  dh-sequence-cruft,
+ dh-sequence-installsysusers,
  libnethttpd-ocaml-dev,
  libounit-ocaml-dev,
  libre-ocaml-dev,
@@ -23,7 +24,6 @@ Depends:
  ${ocaml:Depends},
  ${misc:Depends},
  ${shlibs:Depends},
- adduser,
  bzip2,
  curl,
  xz-utils



View it on GitLab: 
https://salsa.debian.org/ocaml-team/approx/-/compare/0b835c7a602fc5031057f4c5ee0e610b95f093a9...b8feb62918e761328985d07c89b3498e0e41a182

-- 
View it on GitLab: 
https://salsa.debian.org/ocaml-team/approx/-/compare/0b835c7a602fc5031057f4c5ee0e610b95f093a9...b8feb62918e761328985d07c89b3498e0e41a182
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


Reply via email to