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

Andreas Radke andyrtr at archlinux.org
Thu Sep 10 19:20:45 UTC 2015


    Date: Thursday, September 10, 2015 @ 21:20:45
  Author: andyrtr
Revision: 245752

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

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

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

Copied: man-db/repos/testing-i686/PKGBUILD (from rev 245751, man-db/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2015-09-10 19:20:45 UTC (rev 245752)
@@ -0,0 +1,68 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: Sergej Pupykin <sergej at aur.archlinux.org>
+
+pkgname=man-db
+pkgver=2.7.3
+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=(http://download-mirror.savannah.gnu.org/releases/man-db/$pkgname-$pkgver.tar.xz{,.sig}
+        convert-mans
+        man-db.{timer,service})
+md5sums=('df898c82d766dad6492a5a96d5a26647'
+         'SKIP'
+         '2b7662a7d5b33fe91f9f3e034361a2f6'
+         'df6d4f432e3e16c255c785fca1447346'
+         '36fb3f616e42a0e23cf7a4d284e640cd')
+validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') # Colin Watson <cjwatson at debian.org>
+
+build() {
+  cd ${pkgname}-${pkgver}
+  
+  # fix group in systemd tempfile
+  sed -i 's/man\ root/root\ root/' init/systemd/man-db.conf
+    
+  ./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}
+  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-i686/convert-mans (from rev 245751, man-db/trunk/convert-mans)
===================================================================
--- testing-i686/convert-mans	                        (rev 0)
+++ testing-i686/convert-mans	2015-09-10 19:20:45 UTC (rev 245752)
@@ -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 245751, man-db/trunk/man-db.install)
===================================================================
--- testing-i686/man-db.install	                        (rev 0)
+++ testing-i686/man-db.install	2015-09-10 19:20:45 UTC (rev 245752)
@@ -0,0 +1,17 @@
+post_install() {
+  echo "it's recommended to create an initial"
+  echo "database running as root:"
+  echo "\"/usr/bin/mandb --quiet\""
+}
+
+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 245751, man-db/trunk/man-db.service)
===================================================================
--- testing-i686/man-db.service	                        (rev 0)
+++ testing-i686/man-db.service	2015-09-10 19:20:45 UTC (rev 245752)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Update man-db cache
+RequiresMountsFor=/var/cache/man
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/mkdir -m 0755 -p /var/cache/man
+ExecStart=/usr/bin/mandb --quiet
+Nice=19
+IOSchedulingClass=best-effort
+IOSchedulingPriority=7

Copied: man-db/repos/testing-i686/man-db.timer (from rev 245751, man-db/trunk/man-db.timer)
===================================================================
--- testing-i686/man-db.timer	                        (rev 0)
+++ testing-i686/man-db.timer	2015-09-10 19:20:45 UTC (rev 245752)
@@ -0,0 +1,7 @@
+[Unit]
+Description=Daily man-db cache update
+
+[Timer]
+OnCalendar=daily
+AccuracySec=12h
+Persistent=true

Copied: man-db/repos/testing-x86_64/PKGBUILD (from rev 245751, man-db/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2015-09-10 19:20:45 UTC (rev 245752)
@@ -0,0 +1,68 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: Sergej Pupykin <sergej at aur.archlinux.org>
+
+pkgname=man-db
+pkgver=2.7.3
+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=(http://download-mirror.savannah.gnu.org/releases/man-db/$pkgname-$pkgver.tar.xz{,.sig}
+        convert-mans
+        man-db.{timer,service})
+md5sums=('df898c82d766dad6492a5a96d5a26647'
+         'SKIP'
+         '2b7662a7d5b33fe91f9f3e034361a2f6'
+         'df6d4f432e3e16c255c785fca1447346'
+         '36fb3f616e42a0e23cf7a4d284e640cd')
+validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') # Colin Watson <cjwatson at debian.org>
+
+build() {
+  cd ${pkgname}-${pkgver}
+  
+  # fix group in systemd tempfile
+  sed -i 's/man\ root/root\ root/' init/systemd/man-db.conf
+    
+  ./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}
+  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 245751, man-db/trunk/convert-mans)
===================================================================
--- testing-x86_64/convert-mans	                        (rev 0)
+++ testing-x86_64/convert-mans	2015-09-10 19:20:45 UTC (rev 245752)
@@ -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 245751, man-db/trunk/man-db.install)
===================================================================
--- testing-x86_64/man-db.install	                        (rev 0)
+++ testing-x86_64/man-db.install	2015-09-10 19:20:45 UTC (rev 245752)
@@ -0,0 +1,17 @@
+post_install() {
+  echo "it's recommended to create an initial"
+  echo "database running as root:"
+  echo "\"/usr/bin/mandb --quiet\""
+}
+
+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 245751, man-db/trunk/man-db.service)
===================================================================
--- testing-x86_64/man-db.service	                        (rev 0)
+++ testing-x86_64/man-db.service	2015-09-10 19:20:45 UTC (rev 245752)
@@ -0,0 +1,11 @@
+[Unit]
+Description=Update man-db cache
+RequiresMountsFor=/var/cache/man
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/mkdir -m 0755 -p /var/cache/man
+ExecStart=/usr/bin/mandb --quiet
+Nice=19
+IOSchedulingClass=best-effort
+IOSchedulingPriority=7

Copied: man-db/repos/testing-x86_64/man-db.timer (from rev 245751, man-db/trunk/man-db.timer)
===================================================================
--- testing-x86_64/man-db.timer	                        (rev 0)
+++ testing-x86_64/man-db.timer	2015-09-10 19:20:45 UTC (rev 245752)
@@ -0,0 +1,7 @@
+[Unit]
+Description=Daily man-db cache update
+
+[Timer]
+OnCalendar=daily
+AccuracySec=12h
+Persistent=true



More information about the arch-commits mailing list