[arch-commits] Commit in man-db/repos (14 files)
Jan Steffens
heftig at archlinux.org
Wed Jul 13 07:30:25 UTC 2016
Date: Wednesday, July 13, 2016 @ 07:30:25
Author: heftig
Revision: 271826
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
man-db/repos/testing-i686/
man-db/repos/testing-i686/PKGBUILD
(from rev 271825, man-db/trunk/PKGBUILD)
man-db/repos/testing-i686/convert-mans
(from rev 271825, man-db/trunk/convert-mans)
man-db/repos/testing-i686/man-db.hook
(from rev 271825, man-db/trunk/man-db.hook)
man-db/repos/testing-i686/man-db.install
(from rev 271825, man-db/trunk/man-db.install)
man-db/repos/testing-i686/man-db.service
(from rev 271825, man-db/trunk/man-db.service)
man-db/repos/testing-i686/man-db.timer
(from rev 271825, man-db/trunk/man-db.timer)
man-db/repos/testing-x86_64/
man-db/repos/testing-x86_64/PKGBUILD
(from rev 271825, man-db/trunk/PKGBUILD)
man-db/repos/testing-x86_64/convert-mans
(from rev 271825, man-db/trunk/convert-mans)
man-db/repos/testing-x86_64/man-db.hook
(from rev 271825, man-db/trunk/man-db.hook)
man-db/repos/testing-x86_64/man-db.install
(from rev 271825, man-db/trunk/man-db.install)
man-db/repos/testing-x86_64/man-db.service
(from rev 271825, man-db/trunk/man-db.service)
man-db/repos/testing-x86_64/man-db.timer
(from rev 271825, man-db/trunk/man-db.timer)
-------------------------------+
testing-i686/PKGBUILD | 73 ++++++++++++++++++++++++++++++++++++++++
testing-i686/convert-mans | 11 ++++++
testing-i686/man-db.hook | 11 ++++++
testing-i686/man-db.install | 11 ++++++
testing-i686/man-db.service | 12 ++++++
testing-i686/man-db.timer | 7 +++
testing-x86_64/PKGBUILD | 73 ++++++++++++++++++++++++++++++++++++++++
testing-x86_64/convert-mans | 11 ++++++
testing-x86_64/man-db.hook | 11 ++++++
testing-x86_64/man-db.install | 11 ++++++
testing-x86_64/man-db.service | 12 ++++++
testing-x86_64/man-db.timer | 7 +++
12 files changed, 250 insertions(+)
Copied: man-db/repos/testing-i686/PKGBUILD (from rev 271825, man-db/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2016-07-13 07:30:25 UTC (rev 271826)
@@ -0,0 +1,73 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: Sergej Pupykin <sergej at aur.archlinux.org>
+
+pkgname=man-db
+pkgver=2.7.5
+pkgrel=3
+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,timer,service})
+md5sums=('37da0bb0400cc7b640f33c26f6052202'
+ 'SKIP'
+ '2b7662a7d5b33fe91f9f3e034361a2f6'
+ '7d9606f232c9d2c5f50332d08acea295'
+ '21a0df646f7685e1399b5d478447fc05'
+ '4f9bc83456a9ba46b4c73ca683062d77')
+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}
+ 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.hook ${pkgdir}/usr/share/libalpm/hooks/man-db.hook
+ 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 271825, man-db/trunk/convert-mans)
===================================================================
--- testing-i686/convert-mans (rev 0)
+++ testing-i686/convert-mans 2016-07-13 07:30:25 UTC (rev 271826)
@@ -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.hook (from rev 271825, man-db/trunk/man-db.hook)
===================================================================
--- testing-i686/man-db.hook (rev 0)
+++ testing-i686/man-db.hook 2016-07-13 07:30:25 UTC (rev 271826)
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+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 271825, man-db/trunk/man-db.install)
===================================================================
--- testing-i686/man-db.install (rev 0)
+++ testing-i686/man-db.install 2016-07-13 07:30:25 UTC (rev 271826)
@@ -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 271825, man-db/trunk/man-db.service)
===================================================================
--- testing-i686/man-db.service (rev 0)
+++ testing-i686/man-db.service 2016-07-13 07:30:25 UTC (rev 271826)
@@ -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 271825, man-db/trunk/man-db.timer)
===================================================================
--- testing-i686/man-db.timer (rev 0)
+++ testing-i686/man-db.timer 2016-07-13 07:30:25 UTC (rev 271826)
@@ -0,0 +1,7 @@
+[Unit]
+Description=Daily man-db cache purge
+
+[Timer]
+OnCalendar=daily
+AccuracySec=1d
+Persistent=true
Copied: man-db/repos/testing-x86_64/PKGBUILD (from rev 271825, man-db/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2016-07-13 07:30:25 UTC (rev 271826)
@@ -0,0 +1,73 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: Sergej Pupykin <sergej at aur.archlinux.org>
+
+pkgname=man-db
+pkgver=2.7.5
+pkgrel=3
+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,timer,service})
+md5sums=('37da0bb0400cc7b640f33c26f6052202'
+ 'SKIP'
+ '2b7662a7d5b33fe91f9f3e034361a2f6'
+ '7d9606f232c9d2c5f50332d08acea295'
+ '21a0df646f7685e1399b5d478447fc05'
+ '4f9bc83456a9ba46b4c73ca683062d77')
+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}
+ 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.hook ${pkgdir}/usr/share/libalpm/hooks/man-db.hook
+ 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 271825, man-db/trunk/convert-mans)
===================================================================
--- testing-x86_64/convert-mans (rev 0)
+++ testing-x86_64/convert-mans 2016-07-13 07:30:25 UTC (rev 271826)
@@ -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.hook (from rev 271825, man-db/trunk/man-db.hook)
===================================================================
--- testing-x86_64/man-db.hook (rev 0)
+++ testing-x86_64/man-db.hook 2016-07-13 07:30:25 UTC (rev 271826)
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+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 271825, man-db/trunk/man-db.install)
===================================================================
--- testing-x86_64/man-db.install (rev 0)
+++ testing-x86_64/man-db.install 2016-07-13 07:30:25 UTC (rev 271826)
@@ -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 271825, man-db/trunk/man-db.service)
===================================================================
--- testing-x86_64/man-db.service (rev 0)
+++ testing-x86_64/man-db.service 2016-07-13 07:30:25 UTC (rev 271826)
@@ -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 271825, man-db/trunk/man-db.timer)
===================================================================
--- testing-x86_64/man-db.timer (rev 0)
+++ testing-x86_64/man-db.timer 2016-07-13 07:30:25 UTC (rev 271826)
@@ -0,0 +1,7 @@
+[Unit]
+Description=Daily man-db cache purge
+
+[Timer]
+OnCalendar=daily
+AccuracySec=1d
+Persistent=true
More information about the arch-commits
mailing list