From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] man-db: Update to 2.11.2 Date: Sat, 25 Feb 2023 09:54:59 +0100 Message-ID: <20230225085459.23203-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1419615183030943673==" List-Id: --===============1419615183030943673== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable * Create man user/group for the man cache manager * Drop systemd files in favour of the project ones Signed-off-by: Stefan Schantl --- man-db/man-db.nm | 23 ++++++++++++++++--- ...and-root-in-init-systemd-man-db.conf.patch | 19 --------------- man-db/systemd/man-db.service | 10 -------- man-db/systemd/man-db.timer | 10 -------- 4 files changed, 20 insertions(+), 42 deletions(-) delete mode 100644 man-db/patches/1151558-switch-man-and-root-in-init-system= d-man-db.conf.patch delete mode 100644 man-db/systemd/man-db.service delete mode 100644 man-db/systemd/man-db.timer diff --git a/man-db/man-db.nm b/man-db/man-db.nm index 590349e9a..5d3240537 100644 --- a/man-db/man-db.nm +++ b/man-db/man-db.nm @@ -4,8 +4,8 @@ ############################################################################= ### =20 name =3D man-db -version =3D 2.7.1 -release =3D 3 +version =3D 2.11.2 +release =3D 1 =20 groups =3D Documentation url =3D http://savannah.nongnu.org/projects/man-db @@ -27,11 +27,15 @@ build gdbm-devel groff less - libpipeline-devel >=3D 1.4.0 + libpipeline-devel >=3D 1.5.0 systemd-devel zlib-devel end =20 + prepare_cmds + %{create_user} + end + configure_options +=3D \ --with-sections=3D"1 1p 8 2 3 3p 4 5 6 7 9 0p n l p o 1x 2x 3x 4x 5x 6x 7x= 8x" \ --disable-setuid \ @@ -48,9 +52,18 @@ build =20 # Create cache directory. mkdir -pv %{BUILDROOT}/var/cache/man + + # Own the cache directory to the man user/group. + chown man:man %{BUILDROOT}/var/cache/man end end =20 +create_user + getent group man >/dev/null || groupadd -r -g 15 man + getent passwd man >/dev/null || useradd -r -g 15 \ + -c "Manpage cache user" -d /var/cache/man -s /sbin/nologin man +end + packages package %{name} groups +=3D Base @@ -70,6 +83,10 @@ packages man end =20 + script prein + %{create_user} + end + script posttransin # Update the database right now. rm -rf /var/cache/man/* diff --git a/man-db/patches/1151558-switch-man-and-root-in-init-systemd-man-d= b.conf.patch b/man-db/patches/1151558-switch-man-and-root-in-init-systemd-man= -db.conf.patch deleted file mode 100644 index b91e6d01a..000000000 --- a/man-db/patches/1151558-switch-man-and-root-in-init-systemd-man-db.conf.= patch +++ /dev/null @@ -1,19 +0,0 @@ -From 1d523a44a5ad360c83bff362a625cc68cbe7f296 Mon Sep 17 00:00:00 2001 -From: Jan Chaloupka -Date: Wed, 15 Oct 2014 09:46:56 +0200 -Subject: [PATCH] switch man and root in init/systemd/man-db.conf - ---- - init/systemd/man-db.conf | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/init/systemd/man-db.conf b/init/systemd/man-db.conf -index 10b27b4..43dd2ad 100644 ---- a/init/systemd/man-db.conf -+++ b/init/systemd/man-db.conf -@@ -1 +1 @@ --d /var/cache/man 2755 man root 1w -+d /var/cache/man 2755 root man 1w ---=20 -1.9.3 - diff --git a/man-db/systemd/man-db.service b/man-db/systemd/man-db.service deleted file mode 100644 index 4adc29792..000000000 --- a/man-db/systemd/man-db.service +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=3DUpdate man-db cache -RequiresMountsFor=3D/var/cache/man - -[Service] -Type=3Doneshot -ExecStart=3D/usr/bin/mandb --quiet -Nice=3D19 -IOSchedulingClass=3Dbest-effort -IOSchedulingPriority=3D7 diff --git a/man-db/systemd/man-db.timer b/man-db/systemd/man-db.timer deleted file mode 100644 index ce43df175..000000000 --- a/man-db/systemd/man-db.timer +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=3DDaily man-db cache update - -[Timer] -OnCalendar=3Ddaily -AccuracySec=3D12h -Persistent=3Dtrue - -[Install] -WantedBy=3Dmulti-user.target --=20 2.30.2 --===============1419615183030943673==--