Commit 67389238 authored by Jeff Huang's avatar Jeff Huang 🤔
Browse files

[skip-ci] man-db: update to 2.8.6.1

parent bb245f9a
Pipeline #4084 skipped
=== modified file 'src/straycats.c'
--- src/straycats.c 2011-01-10 20:08:22 +0000
+++ src/straycats.c 2011-06-04 06:34:51 +0000
@@ -177,6 +177,7 @@
char *lang, *page_encoding;
char *mandir_base;
pipecmd *col_cmd;
+ char *col_locale;
char *fullpath;
/* we have a straycat. Need to filter it and get
@@ -226,6 +227,12 @@
col_cmd = pipecmd_new_argstr
(get_def_user ("col", COL));
pipecmd_arg (col_cmd, "-bx");
+ col_locale = find_charset_locale ("UTF-8");
+ if (col_locale) {
+ pipecmd_setenv (col_cmd, "LC_CTYPE",
+ col_locale);
+ free (col_locale);
+ }
pipeline_command (decomp, col_cmd);
fullpath = canonicalize_file_name (catdir);
#maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
# Contributions from Arch:
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Sergej Pupykin <sergej@aur.archlinux.org>
pkgname=man-db
pkgver=2.6.3
pkgrel=2
pkgver=2.8.6.1
pkgrel=1
pkgdesc="A utility for reading man pages"
arch=('x86_64')
url="http://www.nongnu.org/man-db/"
url="https://www.nongnu.org/man-db/"
license=('GPL' 'LGPL')
depends=( 'bash' 'gdbm' 'zlib' 'groff' 'libpipeline')
optdepends=('less' 'gzip')
backup=('etc/man_db.conf'
'etc/cron.daily/man-db')
groups=('base')
depends=('bash' 'gdbm' 'zlib' 'groff' 'libpipeline' 'less' 'libseccomp')
makedepends=('po4a')
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
convert-mans man-db.cron.daily)
md5sums=('a593a095599ae97bcacf8d038659a146'
'2b7662a7d5b33fe91f9f3e034361a2f6'
'd30c39ae47560304471b5461719e0f03')
source=(https://savannah.nongnu.org/download/man-db/$pkgname-$pkgver.tar.xz{,.asc}
convert-mans)
validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') # Colin Watson <cjwatson@debian.org>
sha512sums=('0c43cdddf2e07cd4a2225e098ea4cbfb2842a9bbf08bfb073058be0d66efac3a77ca0f8725564677c8f61e671f471c76f1dbba77a7601d7a63bb81350ef51bb5'
'SKIP'
'0b159285da20008f0fc0afb21f1eaebd39e8df5b0594880aa0e8a913b656608b8d16bb8d279d9e62d7aae52f62cb9b2fc49e237c6711f4a5170972b38d345535')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr --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"
cd ${pkgname}-${pkgver}
./configure --prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--libexecdir=/usr/lib \
--with-db=gdbm \
--disable-setuid \
--enable-cache-owner=root \
--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}
cd ${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
# part of groff pkg
......@@ -43,9 +48,8 @@ package() {
# 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 -D -m755 ${srcdir}/convert-mans ${pkgdir}/usr/bin/convert-mans
#install whatis cron script
install -D -m744 ${srcdir}/man-db.cron.daily ${pkgdir}/etc/cron.daily/man-db
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
}
#!/bin/sh
# nicenesses range from -20 (most favorable scheduling) to 19 (least favorable)
NICE=19
# 0 for none, 1 for real time, 2 for best-effort, 3 for idle
IONICE_CLASS=2
# 0-7 (for IONICE_CLASS 1 and 2 only), 0=highest, 7=lowest
IONICE_PRIORITY=7
UPDATEMANDB="/usr/bin/mandb --quiet"
# Update the "whatis" database
#/usr/sbin/makewhatis -u -w
# taken from Debian
# man-db cron daily
set -e
if ! [ -d /var/cache/man ]; then
# Recover from deletion, per FHS.
mkdir -p /var/cache/man
chmod 755 /var/cache/man
fi
# regenerate man database
if [ -x /usr/bin/nice ]; then
UPDATEMANDB="/usr/bin/nice -n ${NICE:-19} ${UPDATEMANDB}"
fi
if [ -x /usr/bin/ionice ]; then
UPDATEMANDB="/usr/bin/ionice -c ${IONICE_CLASS:-2} -n ${IONICE_PRIORITY:-7} ${UPDATEMANDB}"
fi
${UPDATEMANDB}
exit 0
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"
# 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
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment