[arch-commits] Commit in man-db/repos (6 files)

Andreas Radke andyrtr at archlinux.org
Sun Aug 5 18:49:25 UTC 2018


    Date: Sunday, August 5, 2018 @ 18:49:24
  Author: andyrtr
Revision: 330627

archrelease: copy trunk to testing-x86_64

Added:
  man-db/repos/testing-x86_64/
  man-db/repos/testing-x86_64/PKGBUILD
    (from rev 330626, man-db/trunk/PKGBUILD)
  man-db/repos/testing-x86_64/convert-mans
    (from rev 330626, man-db/trunk/convert-mans)
  man-db/repos/testing-x86_64/man-db.install
    (from rev 330626, man-db/trunk/man-db.install)
  man-db/repos/testing-x86_64/man-db.service
    (from rev 330626, man-db/trunk/man-db.service)
  man-db/repos/testing-x86_64/man-db.timer
    (from rev 330626, 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/testing-x86_64/PKGBUILD (from rev 330626, man-db/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2018-08-05 18:49:24 UTC (rev 330627)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: Sergej Pupykin <sergej at aur.archlinux.org>
+
+pkgname=man-db
+pkgver=2.8.4
+pkgrel=1
+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 <cjwatson at debian.org>
+sha512sums=('3cc160a5a8a0a4e918f6f6546582d1e5fe9851a13c5bd8dc94e3fcbf4ec28cb3cd1524b1ae30722931c84981fa8ca9ac64c9c4d9544c2d0bea80ac9f39cb5e66'
+            '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/testing-x86_64/convert-mans (from rev 330626, man-db/trunk/convert-mans)
===================================================================
--- testing-x86_64/convert-mans	                        (rev 0)
+++ testing-x86_64/convert-mans	2018-08-05 18:49:24 UTC (rev 330627)
@@ -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/testing-x86_64/man-db.install (from rev 330626, man-db/trunk/man-db.install)
===================================================================
--- testing-x86_64/man-db.install	                        (rev 0)
+++ testing-x86_64/man-db.install	2018-08-05 18:49:24 UTC (rev 330627)
@@ -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/testing-x86_64/man-db.service (from rev 330626, man-db/trunk/man-db.service)
===================================================================
--- testing-x86_64/man-db.service	                        (rev 0)
+++ testing-x86_64/man-db.service	2018-08-05 18:49:24 UTC (rev 330627)
@@ -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/testing-x86_64/man-db.timer (from rev 330626, man-db/trunk/man-db.timer)
===================================================================
--- testing-x86_64/man-db.timer	                        (rev 0)
+++ testing-x86_64/man-db.timer	2018-08-05 18:49:24 UTC (rev 330627)
@@ -0,0 +1,7 @@
+[Unit]
+Description=Daily man-db cache update
+
+[Timer]
+OnCalendar=daily
+AccuracySec=1d
+Persistent=true



More information about the arch-commits mailing list