From mboxrd@z Thu Jan 1 00:00:00 1970 From: git@ipfire.org To: ipfire-scm@lists.ipfire.org Subject: [git.ipfire.org] IPFire 3.x development tree branch, master, updated. 7bded4b099bd2a37dc868085ebcaba25a6d1ac80 Date: Sun, 07 Dec 2014 16:10:17 +0100 Message-ID: <20141207151020.D75192045F@argus.ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0320344927481468853==" List-Id: --===============0320344927481468853== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 3.x development tree". The branch, master has been updated via 7bded4b099bd2a37dc868085ebcaba25a6d1ac80 (commit) via 51331d6285828b916be14102d010a74c295f379a (commit) from 190e86f4ff9fc141c37d2e318ee42d4989545979 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 7bded4b099bd2a37dc868085ebcaba25a6d1ac80 Author: Michael Tremer Date: Sun Dec 7 16:08:37 2014 +0100 man-db: Update to 2.7.1 =20 Resolves a conflict to groff because of zsoelim and replaces the cron job by a systemd timer event. commit 51331d6285828b916be14102d010a74c295f379a Author: Michael Tremer Date: Sun Dec 7 16:08:27 2014 +0100 libpipeline: Update to 1.4.0 ----------------------------------------------------------------------- Summary of changes: libpipeline/libpipeline.nm | 2 +- man-db/man-db.cron | 20 ----------------- man-db/man-db.nm | 26 ++++++++++++++++----= -- ...-man-and-root-in-init-systemd-man-db.conf.patch | 19 ++++++++++++++++ man-db/systemd/man-db.service | 10 +++++++++ man-db/systemd/man-db.timer | 10 +++++++++ 6 files changed, 59 insertions(+), 28 deletions(-) delete mode 100644 man-db/man-db.cron create mode 100644 man-db/patches/1151558-switch-man-and-root-in-init-system= d-man-db.conf.patch create mode 100644 man-db/systemd/man-db.service create mode 100644 man-db/systemd/man-db.timer Difference in files: diff --git a/libpipeline/libpipeline.nm b/libpipeline/libpipeline.nm index 706de27..a57939e 100644 --- a/libpipeline/libpipeline.nm +++ b/libpipeline/libpipeline.nm @@ -4,7 +4,7 @@ ############################################################################= ### =20 name =3D libpipeline -version =3D 1.2.1 +version =3D 1.4.0 release =3D 1 =20 groups =3D Development/Libraries diff --git a/man-db/man-db.cron b/man-db/man-db.cron deleted file mode 100644 index c7d21ad..0000000 --- a/man-db/man-db.cron +++ /dev/null @@ -1,20 +0,0 @@ -#! /bin/bash - -renice +19 -p $$ >/dev/null 2>&1 -ionice -c3 -p $$ >/dev/null 2>&1 - -LOCKFILE=3D/var/lock/man-db.lock - -# The lockfile is not meant to be perfect, it's just in case the -# two man-db cron scripts get run close to each other to keep -# them from stepping on each other's toes. The worst that will -# happen is that they will temporarily corrupt the database. -[ -f $LOCKFILE ] && exit 0 - -trap "{ rm -f $LOCKFILE ; exit 0; }" EXIT -touch $LOCKFILE - -# Create/update the mandb database. -mandb -q - -exit 0 diff --git a/man-db/man-db.nm b/man-db/man-db.nm index f1dfba0..a36ea98 100644 --- a/man-db/man-db.nm +++ b/man-db/man-db.nm @@ -4,7 +4,7 @@ ############################################################################= ### =20 name =3D man-db -version =3D 2.6.3 +version =3D 2.7.1 release =3D 1 =20 groups =3D Documentation @@ -28,7 +28,9 @@ build gdbm-devel groff less - libpipeline-devel + libpipeline-devel >=3D 1.4.0 + systemd-devel + zlib-devel end =20 configure_options +=3D \ @@ -42,9 +44,8 @@ build mv -v %{BUILDROOT}%{libdir}/man-db/libman{,db}-%{version}.so %{BUILDROOT}%= {libdir} rm -rf %{BUILDROOT}%{libdir}/man-db/ =20 - # Create cron job to regularly update the man page database. - mkdir -pv %{BUILDROOT}%{sysconfdir}/cron.daily - install -v -m 755 %{DIR_SOURCE}/man-db.cron %{BUILDROOT}%{sysconfdir}/cron= .daily + # Remove zsoelim man page which is not part of groff + rm -vf %{BUILDROOT}%{datadir}/man/man*/zsoelim.* =20 # Create cache directory. mkdir -pv %{BUILDROOT}/var/cache/man @@ -68,12 +69,23 @@ packages =20 script posttransin # Update the database right now. - %{sysconfdir}/cron.daily/man-db.cron + rm -rf /var/cache/man/* + + systemctl -q enable man-db.timer + systemctl start man-db.timer end =20 script posttransup # Update the database right now. - %{sysconfdir}/cron.daily/man-db.cron + rm -rf /var/cache/man/* + + systemctl -q enable man-db.timer + systemctl start man-db.timer + end + + script preun + systemctl stop man-db.timer + systemctl -q disable man-db.timer end end =20 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 new file mode 100644 index 0000000..b91e6d0 --- /dev/null +++ b/man-db/patches/1151558-switch-man-and-root-in-init-systemd-man-db.conf.= patch @@ -0,0 +1,19 @@ +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 new file mode 100644 index 0000000..4adc297 --- /dev/null +++ b/man-db/systemd/man-db.service @@ -0,0 +1,10 @@ +[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 new file mode 100644 index 0000000..ce43df1 --- /dev/null +++ b/man-db/systemd/man-db.timer @@ -0,0 +1,10 @@ +[Unit] +Description=3DDaily man-db cache update + +[Timer] +OnCalendar=3Ddaily +AccuracySec=3D12h +Persistent=3Dtrue + +[Install] +WantedBy=3Dmulti-user.target hooks/post-receive -- IPFire 3.x development tree --===============0320344927481468853==--