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

Jan Steffens heftig at archlinux.org
Sat May 14 10:31:59 UTC 2016


    Date: Saturday, May 14, 2016 @ 12:31:59
  Author: heftig
Revision: 267946

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

Added:
  man-db/repos/testing-i686/
  man-db/repos/testing-i686/PKGBUILD
    (from rev 267945, man-db/trunk/PKGBUILD)
  man-db/repos/testing-i686/convert-mans
    (from rev 267945, man-db/trunk/convert-mans)
  man-db/repos/testing-i686/man-db-purge.hook
    (from rev 267945, man-db/trunk/man-db-purge.hook)
  man-db/repos/testing-i686/man-db.hook
    (from rev 267945, man-db/trunk/man-db.hook)
  man-db/repos/testing-i686/man-db.install
    (from rev 267945, man-db/trunk/man-db.install)
  man-db/repos/testing-x86_64/
  man-db/repos/testing-x86_64/PKGBUILD
    (from rev 267945, man-db/trunk/PKGBUILD)
  man-db/repos/testing-x86_64/convert-mans
    (from rev 267945, man-db/trunk/convert-mans)
  man-db/repos/testing-x86_64/man-db-purge.hook
    (from rev 267945, man-db/trunk/man-db-purge.hook)
  man-db/repos/testing-x86_64/man-db.hook
    (from rev 267945, man-db/trunk/man-db.hook)
  man-db/repos/testing-x86_64/man-db.install
    (from rev 267945, man-db/trunk/man-db.install)

----------------------------------+
 testing-i686/PKGBUILD            |   67 +++++++++++++++++++++++++++++++++++++
 testing-i686/convert-mans        |   11 ++++++
 testing-i686/man-db-purge.hook   |    9 ++++
 testing-i686/man-db.hook         |   10 +++++
 testing-i686/man-db.install      |   11 ++++++
 testing-x86_64/PKGBUILD          |   67 +++++++++++++++++++++++++++++++++++++
 testing-x86_64/convert-mans      |   11 ++++++
 testing-x86_64/man-db-purge.hook |    9 ++++
 testing-x86_64/man-db.hook       |   10 +++++
 testing-x86_64/man-db.install    |   11 ++++++
 10 files changed, 216 insertions(+)

Copied: man-db/repos/testing-i686/PKGBUILD (from rev 267945, man-db/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2016-05-14 10:31:59 UTC (rev 267946)
@@ -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.7.5
+pkgrel=2
+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.hook
+        man-db-purge.hook)
+md5sums=('37da0bb0400cc7b640f33c26f6052202'
+         'SKIP'
+         '2b7662a7d5b33fe91f9f3e034361a2f6'
+         '2fe885f9f5d2914b6c7f41b8fd9c4f2b'
+         '0a8b9e0f85692ca9133d707069ab9714')
+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 hooks
+  install -d ${pkgdir}/usr/share/libalpm/hooks
+  install -m644 ${srcdir}/*.hook ${pkgdir}/usr/share/libalpm/hooks/
+}

Copied: man-db/repos/testing-i686/convert-mans (from rev 267945, man-db/trunk/convert-mans)
===================================================================
--- testing-i686/convert-mans	                        (rev 0)
+++ testing-i686/convert-mans	2016-05-14 10:31:59 UTC (rev 267946)
@@ -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-purge.hook (from rev 267945, man-db/trunk/man-db-purge.hook)
===================================================================
--- testing-i686/man-db-purge.hook	                        (rev 0)
+++ testing-i686/man-db-purge.hook	2016-05-14 10:31:59 UTC (rev 267946)
@@ -0,0 +1,9 @@
+[Trigger]
+Type = File
+Operation = Remove
+Target = usr/share/man/*
+
+[Action]
+Description = Purging old manpage index entries...
+When = PostTransaction
+Exec = /bin/sh -c 'mkdir -p /var/cache/man; exec mandb --quiet'

Copied: man-db/repos/testing-i686/man-db.hook (from rev 267945, man-db/trunk/man-db.hook)
===================================================================
--- testing-i686/man-db.hook	                        (rev 0)
+++ testing-i686/man-db.hook	2016-05-14 10:31:59 UTC (rev 267946)
@@ -0,0 +1,10 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Target = usr/share/man/*
+
+[Action]
+Description = Updating manpage index...
+When = PostTransaction
+Exec = /bin/sh -c 'mkdir -p /var/cache/man; exec mandb --quiet --no-purge'

Copied: man-db/repos/testing-i686/man-db.install (from rev 267945, man-db/trunk/man-db.install)
===================================================================
--- testing-i686/man-db.install	                        (rev 0)
+++ testing-i686/man-db.install	2016-05-14 10:31:59 UTC (rev 267946)
@@ -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/PKGBUILD (from rev 267945, man-db/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2016-05-14 10:31:59 UTC (rev 267946)
@@ -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.7.5
+pkgrel=2
+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.hook
+        man-db-purge.hook)
+md5sums=('37da0bb0400cc7b640f33c26f6052202'
+         'SKIP'
+         '2b7662a7d5b33fe91f9f3e034361a2f6'
+         '2fe885f9f5d2914b6c7f41b8fd9c4f2b'
+         '0a8b9e0f85692ca9133d707069ab9714')
+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 hooks
+  install -d ${pkgdir}/usr/share/libalpm/hooks
+  install -m644 ${srcdir}/*.hook ${pkgdir}/usr/share/libalpm/hooks/
+}

Copied: man-db/repos/testing-x86_64/convert-mans (from rev 267945, man-db/trunk/convert-mans)
===================================================================
--- testing-x86_64/convert-mans	                        (rev 0)
+++ testing-x86_64/convert-mans	2016-05-14 10:31:59 UTC (rev 267946)
@@ -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-purge.hook (from rev 267945, man-db/trunk/man-db-purge.hook)
===================================================================
--- testing-x86_64/man-db-purge.hook	                        (rev 0)
+++ testing-x86_64/man-db-purge.hook	2016-05-14 10:31:59 UTC (rev 267946)
@@ -0,0 +1,9 @@
+[Trigger]
+Type = File
+Operation = Remove
+Target = usr/share/man/*
+
+[Action]
+Description = Purging old manpage index entries...
+When = PostTransaction
+Exec = /bin/sh -c 'mkdir -p /var/cache/man; exec mandb --quiet'

Copied: man-db/repos/testing-x86_64/man-db.hook (from rev 267945, man-db/trunk/man-db.hook)
===================================================================
--- testing-x86_64/man-db.hook	                        (rev 0)
+++ testing-x86_64/man-db.hook	2016-05-14 10:31:59 UTC (rev 267946)
@@ -0,0 +1,10 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Target = usr/share/man/*
+
+[Action]
+Description = Updating manpage index...
+When = PostTransaction
+Exec = /bin/sh -c 'mkdir -p /var/cache/man; exec mandb --quiet --no-purge'

Copied: man-db/repos/testing-x86_64/man-db.install (from rev 267945, man-db/trunk/man-db.install)
===================================================================
--- testing-x86_64/man-db.install	                        (rev 0)
+++ testing-x86_64/man-db.install	2016-05-14 10:31:59 UTC (rev 267946)
@@ -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
+}



More information about the arch-commits mailing list