[arch-commits] Commit in man-db/repos (12 files)
Thomas Bächler
thomas at nymeria.archlinux.org
Fri Mar 28 20:18:21 UTC 2014
Date: Friday, March 28, 2014 @ 21:18:21
Author: thomas
Revision: 208924
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
man-db/repos/testing-i686/
man-db/repos/testing-i686/PKGBUILD
(from rev 208923, man-db/trunk/PKGBUILD)
man-db/repos/testing-i686/convert-mans
(from rev 208923, man-db/trunk/convert-mans)
man-db/repos/testing-i686/man-db.install
(from rev 208923, man-db/trunk/man-db.install)
man-db/repos/testing-i686/man-db.service
(from rev 208923, man-db/trunk/man-db.service)
man-db/repos/testing-i686/man-db.timer
(from rev 208923, man-db/trunk/man-db.timer)
man-db/repos/testing-x86_64/
man-db/repos/testing-x86_64/PKGBUILD
(from rev 208923, man-db/trunk/PKGBUILD)
man-db/repos/testing-x86_64/convert-mans
(from rev 208923, man-db/trunk/convert-mans)
man-db/repos/testing-x86_64/man-db.install
(from rev 208923, man-db/trunk/man-db.install)
man-db/repos/testing-x86_64/man-db.service
(from rev 208923, man-db/trunk/man-db.service)
man-db/repos/testing-x86_64/man-db.timer
(from rev 208923, man-db/trunk/man-db.timer)
-------------------------------+
testing-i686/PKGBUILD | 63 ++++++++++++++++++++++++++++++++++++++++
testing-i686/convert-mans | 11 ++++++
testing-i686/man-db.install | 22 +++++++++++++
testing-i686/man-db.service | 11 ++++++
testing-i686/man-db.timer | 7 ++++
testing-x86_64/PKGBUILD | 63 ++++++++++++++++++++++++++++++++++++++++
testing-x86_64/convert-mans | 11 ++++++
testing-x86_64/man-db.install | 22 +++++++++++++
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 208923, man-db/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2014-03-28 20:18:21 UTC (rev 208924)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: Sergej Pupykin <sergej at aur.archlinux.org>
+
+pkgname=man-db
+pkgver=2.6.6
+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://savannah.nongnu.org/download/man-db/$pkgname-$pkgver.tar.xz{,.sig}
+ convert-mans
+ man-db.{timer,service})
+md5sums=('5d65d66191080c144437a6c854e17868'
+ 'SKIP'
+ '2b7662a7d5b33fe91f9f3e034361a2f6'
+ 'df6d4f432e3e16c255c785fca1447346'
+ '36fb3f616e42a0e23cf7a4d284e640cd')
+
+build() {
+ cd ${srcdir}/${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 ${srcdir}/${pkgname}-${pkgver}
+ make check
+}
+
+package() {
+ cd ${srcdir}/${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 208923, man-db/trunk/convert-mans)
===================================================================
--- testing-i686/convert-mans (rev 0)
+++ testing-i686/convert-mans 2014-03-28 20:18:21 UTC (rev 208924)
@@ -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 208923, man-db/trunk/man-db.install)
===================================================================
--- testing-i686/man-db.install (rev 0)
+++ testing-i686/man-db.install 2014-03-28 20:18:21 UTC (rev 208924)
@@ -0,0 +1,22 @@
+post_install() {
+ echo "it's recommended to create an initial"
+ echo "database running as root:"
+ echo "\"/usr/bin/mandb --quiet\""
+}
+
+post_upgrade() {
+ if [ "`vercmp $2 2.5.3-2`" -lt 0 ]; then
+ echo "systemuser \"man\" is no more required"
+ echo "run \"userdel man\". please also"
+ echo "chown root:root /var/cache/man"
+ fi
+ # force database rebuild to get rid off badly imported pages
+ if [ "`vercmp $2 2.6.0.2`" -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 208923, man-db/trunk/man-db.service)
===================================================================
--- testing-i686/man-db.service (rev 0)
+++ testing-i686/man-db.service 2014-03-28 20:18:21 UTC (rev 208924)
@@ -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 208923, man-db/trunk/man-db.timer)
===================================================================
--- testing-i686/man-db.timer (rev 0)
+++ testing-i686/man-db.timer 2014-03-28 20:18:21 UTC (rev 208924)
@@ -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 208923, man-db/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2014-03-28 20:18:21 UTC (rev 208924)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: Sergej Pupykin <sergej at aur.archlinux.org>
+
+pkgname=man-db
+pkgver=2.6.6
+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://savannah.nongnu.org/download/man-db/$pkgname-$pkgver.tar.xz{,.sig}
+ convert-mans
+ man-db.{timer,service})
+md5sums=('5d65d66191080c144437a6c854e17868'
+ 'SKIP'
+ '2b7662a7d5b33fe91f9f3e034361a2f6'
+ 'df6d4f432e3e16c255c785fca1447346'
+ '36fb3f616e42a0e23cf7a4d284e640cd')
+
+build() {
+ cd ${srcdir}/${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 ${srcdir}/${pkgname}-${pkgver}
+ make check
+}
+
+package() {
+ cd ${srcdir}/${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 208923, man-db/trunk/convert-mans)
===================================================================
--- testing-x86_64/convert-mans (rev 0)
+++ testing-x86_64/convert-mans 2014-03-28 20:18:21 UTC (rev 208924)
@@ -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 208923, man-db/trunk/man-db.install)
===================================================================
--- testing-x86_64/man-db.install (rev 0)
+++ testing-x86_64/man-db.install 2014-03-28 20:18:21 UTC (rev 208924)
@@ -0,0 +1,22 @@
+post_install() {
+ echo "it's recommended to create an initial"
+ echo "database running as root:"
+ echo "\"/usr/bin/mandb --quiet\""
+}
+
+post_upgrade() {
+ if [ "`vercmp $2 2.5.3-2`" -lt 0 ]; then
+ echo "systemuser \"man\" is no more required"
+ echo "run \"userdel man\". please also"
+ echo "chown root:root /var/cache/man"
+ fi
+ # force database rebuild to get rid off badly imported pages
+ if [ "`vercmp $2 2.6.0.2`" -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 208923, man-db/trunk/man-db.service)
===================================================================
--- testing-x86_64/man-db.service (rev 0)
+++ testing-x86_64/man-db.service 2014-03-28 20:18:21 UTC (rev 208924)
@@ -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 208923, man-db/trunk/man-db.timer)
===================================================================
--- testing-x86_64/man-db.timer (rev 0)
+++ testing-x86_64/man-db.timer 2014-03-28 20:18:21 UTC (rev 208924)
@@ -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