Date: Thursday, June 21, 2018 @ 19:03:34 Author: andyrtr Revision: 327412
archrelease: copy trunk to staging-x86_64 Added: man-db/repos/staging-x86_64/ man-db/repos/staging-x86_64/PKGBUILD (from rev 327411, man-db/trunk/PKGBUILD) man-db/repos/staging-x86_64/convert-mans (from rev 327411, man-db/trunk/convert-mans) man-db/repos/staging-x86_64/man-db.install (from rev 327411, man-db/trunk/man-db.install) man-db/repos/staging-x86_64/man-db.service (from rev 327411, man-db/trunk/man-db.service) man-db/repos/staging-x86_64/man-db.timer (from rev 327411, man-db/trunk/man-db.timer) ----------------+ PKGBUILD | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ convert-mans | 11 +++++++++ man-db.install | 11 +++++++++ man-db.service | 12 +++++++++ man-db.timer | 7 +++++ 5 files changed, 108 insertions(+) Copied: man-db/repos/staging-x86_64/PKGBUILD (from rev 327411, man-db/trunk/PKGBUILD) =================================================================== --- staging-x86_64/PKGBUILD (rev 0) +++ staging-x86_64/PKGBUILD 2018-06-21 19:03:34 UTC (rev 327412) @@ -0,0 +1,67 @@ +# $Id$ +# Maintainer: Andreas Radke <andy...@archlinux.org> +# Contributor: Sergej Pupykin <ser...@aur.archlinux.org> + +pkgname=man-db +pkgver=2.8.3 +pkgrel=2 +pkgdesc="A utility for reading man pages" +arch=('x86_64') +url="http://www.nongnu.org/man-db/" +license=('GPL' 'LGPL') +groups=('base') +depends=( 'bash' 'gdbm' 'zlib' 'groff' 'libpipeline' 'less' 'libseccomp') +makedepends=('po4a') +optdepends=('gzip') +backup=('etc/man_db.conf') +conflicts=('man') +provides=('man') +replaces=('man') +install=${pkgname}.install +source=(#https://download-mirror.savannah.gnu.org/releases/man-db/$pkgname-$pkgver.tar.xz{,.sig} + https://savannah.nongnu.org/download/man-db/$pkgname-$pkgver.tar.xz{,.asc} + convert-mans + man-db.{timer,service}) +validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') # Colin Watson <cjwat...@debian.org> +sha512sums=('35d5dda7a2bda94978d10770d24d4c78b3c62c71a68cfeb400df61b0df289ed17aa8aa223d4ae3ffa094d76df8d9172b878230fd7b0397ce7728b9c8ac0b1745' + 'SKIP' + '0b159285da20008f0fc0afb21f1eaebd39e8df5b0594880aa0e8a913b656608b8d16bb8d279d9e62d7aae52f62cb9b2fc49e237c6711f4a5170972b38d345535' + '2ed529500fbe18ba00ac7a6fc4c9da59e396464afb256db33f462b1127e497916602370e65e485c8d788c839f5b1b1130028502f61e1cc9ec8571ad6dd993738' + '76f8d51866418b612a72deaf3b07134d416a6d014dd3883fa78e08683c6b08553f483a4384ac87da25ac9896faa4807842fc69c42950cefe3c1c0590883aa600') + +build() { + cd ${pkgname}-${pkgver} + ./configure --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --libexecdir=/usr/lib \ + --with-db=gdbm \ + --disable-setuid \ + --enable-cache-owner=root \ + --enable-mandirs=GNU \ + --with-sections="1 n l 8 3 0 2 5 4 9 6 7" + make +} + +check() { + cd ${pkgname}-${pkgver} + make check +} + +package() { + cd ${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install + + # part of groff pkg + rm -f ${pkgdir}/usr/bin/zsoelim + + # script from LFS to convert manpages, see + # http://www.linuxfromscratch.org/lfs/view/6.4/chapter06/man-db.html + install -D -m755 ${srcdir}/convert-mans ${pkgdir}/usr/bin/convert-mans + + # install man-db update timer + install -D -m644 ${srcdir}/man-db.timer ${pkgdir}/usr/lib/systemd/system/man-db.timer + install -D -m644 ${srcdir}/man-db.service ${pkgdir}/usr/lib/systemd/system/man-db.service + install -d -m755 ${pkgdir}/usr/lib/systemd/system/multi-user.target.wants + ln -s ../man-db.timer ${pkgdir}//usr/lib/systemd/system/multi-user.target.wants/man-db.timer +} Copied: man-db/repos/staging-x86_64/convert-mans (from rev 327411, man-db/trunk/convert-mans) =================================================================== --- staging-x86_64/convert-mans (rev 0) +++ staging-x86_64/convert-mans 2018-06-21 19:03:34 UTC (rev 327412) @@ -0,0 +1,11 @@ +#!/bin/sh -e +FROM="$1" +TO="$2" +shift ; shift +while [ $# -gt 0 ] +do + FILE="$1" + shift + iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv + mv .tmp.iconv "$FILE" +done Copied: man-db/repos/staging-x86_64/man-db.install (from rev 327411, man-db/trunk/man-db.install) =================================================================== --- staging-x86_64/man-db.install (rev 0) +++ staging-x86_64/man-db.install 2018-06-21 19:03:34 UTC (rev 327412) @@ -0,0 +1,11 @@ +post_upgrade() { + # force database rebuild as recommended per upstream + if [ "`vercmp $2 2.7.0`" -lt 0 ]; then + echo "(re)building database..." + mandb -c --quiet + fi +} + +post_remove() { + rm -rf /var/cache/man +} Copied: man-db/repos/staging-x86_64/man-db.service (from rev 327411, man-db/trunk/man-db.service) =================================================================== --- staging-x86_64/man-db.service (rev 0) +++ staging-x86_64/man-db.service 2018-06-21 19:03:34 UTC (rev 327412) @@ -0,0 +1,12 @@ +[Unit] +Description=Update man-db cache +RequiresMountsFor=/var/cache/man + +[Service] +Type=oneshot +ExecStart=/usr/bin/mkdir -p /var/cache/man +ExecStart=/usr/bin/mandb +CPUSchedulingPolicy=batch +Nice=19 +IOSchedulingClass=best-effort +IOSchedulingPriority=7 Copied: man-db/repos/staging-x86_64/man-db.timer (from rev 327411, man-db/trunk/man-db.timer) =================================================================== --- staging-x86_64/man-db.timer (rev 0) +++ staging-x86_64/man-db.timer 2018-06-21 19:03:34 UTC (rev 327412) @@ -0,0 +1,7 @@ +[Unit] +Description=Daily man-db cache update + +[Timer] +OnCalendar=daily +AccuracySec=1d +Persistent=true