From 72f7df6d3d480faea4d2e0b3284542fd66b19d5d Mon Sep 17 00:00:00 2001 From: Doan Tran Cong Danh Date: Wed, 23 Oct 2019 08:18:33 +0700 Subject: [PATCH] man-db: add system account man:man man-db complains that: > mandb: the setuid man user "man" does not exist --- srcpkgs/man-db/files/man-db.cron-daily | 1 + srcpkgs/man-db/template | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/man-db/files/man-db.cron-daily b/srcpkgs/man-db/files/man-db.cron-daily index 6953b76560f..ed5c2342a09 100755 --- a/srcpkgs/man-db/files/man-db.cron-daily +++ b/srcpkgs/man-db/files/man-db.cron-daily @@ -7,6 +7,7 @@ set -e if ! [ -d /var/cache/man ]; then # Recover from deletion, per FHS. mkdir -p /var/cache/man + chown man:man /var/cache/man chmod 755 /var/cache/man fi diff --git a/srcpkgs/man-db/template b/srcpkgs/man-db/template index dfc483c3ea8..84b4a0c28d4 100644 --- a/srcpkgs/man-db/template +++ b/srcpkgs/man-db/template @@ -1,7 +1,7 @@ # Template file for 'man-db' pkgname=man-db version=2.9.0 -revision=1 +revision=2 build_style=gnu-configure configure_args="--with-db=db --with-pager=less --with-gzip=/usr/bin/gzip --with-bzip2=/usr/bin/bzip2 --disable-rpath --enable-threads=posix @@ -21,6 +21,9 @@ distfiles="${NONGNU_SITE}/${pkgname}/${pkgname}-${version}.tar.xz" checksum=5d4aacd9e8876d6a3203a889860c3524c293c38f04111a3350deab8a6cd3e261 provides="man-0_1" lib32disabled=yes +system_accounts="man" +man_homedir="/var/cache/man" +make_dirs="/var/cache/man 0755 man man" alternatives=" man:man:/usr/bin/mandb-man