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

Andreas Radke andyrtr at archlinux.org
Tue Dec 13 21:22:06 UTC 2016


    Date: Tuesday, December 13, 2016 @ 21:22:06
  Author: andyrtr
Revision: 283123

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  man-db/repos/testing-i686/
  man-db/repos/testing-i686/PKGBUILD
    (from rev 283122, man-db/trunk/PKGBUILD)
  man-db/repos/testing-i686/convert-mans
    (from rev 283122, man-db/trunk/convert-mans)
  man-db/repos/testing-i686/man-db.install
    (from rev 283122, man-db/trunk/man-db.install)
  man-db/repos/testing-i686/man-db.service
    (from rev 283122, man-db/trunk/man-db.service)
  man-db/repos/testing-i686/man-db.timer
    (from rev 283122, man-db/trunk/man-db.timer)
  man-db/repos/testing-x86_64/
  man-db/repos/testing-x86_64/PKGBUILD
    (from rev 283122, man-db/trunk/PKGBUILD)
  man-db/repos/testing-x86_64/convert-mans
    (from rev 283122, man-db/trunk/convert-mans)
  man-db/repos/testing-x86_64/man-db.install
    (from rev 283122, man-db/trunk/man-db.install)
  man-db/repos/testing-x86_64/man-db.service
    (from rev 283122, man-db/trunk/man-db.service)
  man-db/repos/testing-x86_64/man-db.timer
    (from rev 283122, man-db/trunk/man-db.timer)

-------------------------------+
 testing-i686/PKGBUILD         |   72 ++++++++++++++++++++++++++++++++++++++++
 testing-i686/convert-mans     |   11 ++++++
 testing-i686/man-db.install   |   11 ++++++
 testing-i686/man-db.service   |   12 ++++++
 testing-i686/man-db.timer     |    7 +++
 testing-x86_64/PKGBUILD       |   72 ++++++++++++++++++++++++++++++++++++++++
 testing-x86_64/convert-mans   |   11 ++++++
 testing-x86_64/man-db.install |   11 ++++++
 testing-x86_64/man-db.service |   12 ++++++
 testing-x86_64/man-db.timer   |    7 +++
 10 files changed, 226 insertions(+)

Copied: man-db/repos/testing-i686/PKGBUILD (from rev 283122, man-db/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2016-12-13 21:22:06 UTC (rev 283123)
@@ -0,0 +1,72 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: Sergej Pupykin <sergej at aur.archlinux.org>
+
+pkgname=man-db
+pkgver=2.7.6
+pkgrel=1
+pkgdesc="A utility for reading man pages"
+arch=('i686' 'x86_64')
+url="http://www.nongnu.org/man-db/"
+license=('GPL' 'LGPL')
+groups=('base')
+depends=( 'bash' 'gdbm' 'zlib' 'groff' 'libpipeline' 'less')
+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}
+        convert-mans
+        man-db.{timer,service})
+sha256sums=('c68cffa6b93f6362beb1d1259f9ad5b65af2aee9a7d9910086082ea4b75f5da2'
+            'SKIP'
+            'affab3adc4b83d011ed83060d8ac579211c932e6c0900b92e12779c092ad5df3'
+            '25ffaae49ecd8403df7787f988463f39821aacd35690775f1c8a2f2bf4d2bee3'
+            '8cbae3f06e9847614926962b44bf68f2997365d2c5afdfbd03ad0063424f548e')
+validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') # Colin Watson <cjwatson at debian.org>
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+
+  # fix group in systemd tempfile
+  sed -i 's/man\ root/root\ root/' init/systemd/man-db.conf
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr \
+    --sbindir=/usr/bin \
+    --sysconfdir=/etc \
+    --libexecdir=/usr/lib \
+    --with-db=gdbm \
+    --disable-setuid \
+    --enable-mandirs=GNU \
+    --with-sections="1 n l 8 3 0 2 5 4 9 6 7"
+  make
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  # test suite fails due to recent setgid/uid changes, upstream has been informed
+  make -k check || /bin/true
+}
+
+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-i686/convert-mans (from rev 283122, man-db/trunk/convert-mans)
===================================================================
--- testing-i686/convert-mans	                        (rev 0)
+++ testing-i686/convert-mans	2016-12-13 21:22:06 UTC (rev 283123)
@@ -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-i686/man-db.install (from rev 283122, man-db/trunk/man-db.install)
===================================================================
--- testing-i686/man-db.install	                        (rev 0)
+++ testing-i686/man-db.install	2016-12-13 21:22:06 UTC (rev 283123)
@@ -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-i686/man-db.service (from rev 283122, man-db/trunk/man-db.service)
===================================================================
--- testing-i686/man-db.service	                        (rev 0)
+++ testing-i686/man-db.service	2016-12-13 21:22:06 UTC (rev 283123)
@@ -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-i686/man-db.timer (from rev 283122, man-db/trunk/man-db.timer)
===================================================================
--- testing-i686/man-db.timer	                        (rev 0)
+++ testing-i686/man-db.timer	2016-12-13 21:22:06 UTC (rev 283123)
@@ -0,0 +1,7 @@
+[Unit]
+Description=Daily man-db cache update
+
+[Timer]
+OnCalendar=daily
+AccuracySec=1d
+Persistent=true

Copied: man-db/repos/testing-x86_64/PKGBUILD (from rev 283122, man-db/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2016-12-13 21:22:06 UTC (rev 283123)
@@ -0,0 +1,72 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: Sergej Pupykin <sergej at aur.archlinux.org>
+
+pkgname=man-db
+pkgver=2.7.6
+pkgrel=1
+pkgdesc="A utility for reading man pages"
+arch=('i686' 'x86_64')
+url="http://www.nongnu.org/man-db/"
+license=('GPL' 'LGPL')
+groups=('base')
+depends=( 'bash' 'gdbm' 'zlib' 'groff' 'libpipeline' 'less')
+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}
+        convert-mans
+        man-db.{timer,service})
+sha256sums=('c68cffa6b93f6362beb1d1259f9ad5b65af2aee9a7d9910086082ea4b75f5da2'
+            'SKIP'
+            'affab3adc4b83d011ed83060d8ac579211c932e6c0900b92e12779c092ad5df3'
+            '25ffaae49ecd8403df7787f988463f39821aacd35690775f1c8a2f2bf4d2bee3'
+            '8cbae3f06e9847614926962b44bf68f2997365d2c5afdfbd03ad0063424f548e')
+validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') # Colin Watson <cjwatson at debian.org>
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+
+  # fix group in systemd tempfile
+  sed -i 's/man\ root/root\ root/' init/systemd/man-db.conf
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr \
+    --sbindir=/usr/bin \
+    --sysconfdir=/etc \
+    --libexecdir=/usr/lib \
+    --with-db=gdbm \
+    --disable-setuid \
+    --enable-mandirs=GNU \
+    --with-sections="1 n l 8 3 0 2 5 4 9 6 7"
+  make
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  # test suite fails due to recent setgid/uid changes, upstream has been informed
+  make -k check || /bin/true
+}
+
+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 283122, man-db/trunk/convert-mans)
===================================================================
--- testing-x86_64/convert-mans	                        (rev 0)
+++ testing-x86_64/convert-mans	2016-12-13 21:22:06 UTC (rev 283123)
@@ -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 283122, man-db/trunk/man-db.install)
===================================================================
--- testing-x86_64/man-db.install	                        (rev 0)
+++ testing-x86_64/man-db.install	2016-12-13 21:22:06 UTC (rev 283123)
@@ -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 283122, man-db/trunk/man-db.service)
===================================================================
--- testing-x86_64/man-db.service	                        (rev 0)
+++ testing-x86_64/man-db.service	2016-12-13 21:22:06 UTC (rev 283123)
@@ -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 283122, man-db/trunk/man-db.timer)
===================================================================
--- testing-x86_64/man-db.timer	                        (rev 0)
+++ testing-x86_64/man-db.timer	2016-12-13 21:22:06 UTC (rev 283123)
@@ -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