summaryrefslogtreecommitdiff
path: root/source/ap/man-db
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2019-01-06 20:03:14 +0000
committerEric Hameleers <alien@slackware.com>2019-01-07 08:59:45 +0100
commit4cc8e8065bec7cf7f1dfc8a8806a02075fa3c0f7 (patch)
tree4788dd7df9ff468a23062e5011fef8e735a46f26 /source/ap/man-db
parent29982cb6ad8ed85e9ec2dc4b74f02b3f10b89d6a (diff)
downloadcurrent-4cc8e8065bec7cf7f1dfc8a8806a02075fa3c0f7.tar.gz
Sun Jan 6 20:03:14 UTC 201920190106200314
a/ncompress-4.2.4.5-x86_64-1.txz: Upgraded. ap/man-db-2.8.5-x86_64-1.txz: Upgraded. Added /etc/profile.d/man-db.{csh,sh} to pick a MANPAGER (defaults to 'most'). ap/powertop-2.10-x86_64-1.txz: Upgraded. d/scons-3.0.2-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/ap/man-db')
-rw-r--r--source/ap/man-db/doinst.sh2
-rwxr-xr-xsource/ap/man-db/man-db.SlackBuild10
-rw-r--r--source/ap/man-db/man-db.csh5
-rw-r--r--source/ap/man-db/man-db.sh5
4 files changed, 21 insertions, 1 deletions
diff --git a/source/ap/man-db/doinst.sh b/source/ap/man-db/doinst.sh
index ed31b561..1c12bc80 100644
--- a/source/ap/man-db/doinst.sh
+++ b/source/ap/man-db/doinst.sh
@@ -12,6 +12,8 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider...
}
config etc/man_db.conf.new
+config etc/profile.d/man-db.csh.new
+config etc/profile.d/man-db.sh.new
# Slackware change: commenting the stuff below out. We're not going to
# generate a database during a package installation... especially since
diff --git a/source/ap/man-db/man-db.SlackBuild b/source/ap/man-db/man-db.SlackBuild
index 4d8d4bf1..7a5e24dd 100755
--- a/source/ap/man-db/man-db.SlackBuild
+++ b/source/ap/man-db/man-db.SlackBuild
@@ -8,7 +8,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=man-db
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.xz | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-1}
MAN2HTML=${MAN2HTML:-20180101}
@@ -232,6 +232,14 @@ mkdir -p $PKG/var/cache/man
mkdir -p $PKG/etc/cron.daily
install -m0755 -oroot -groot $CWD/$PKGNAM.cron $PKG/etc/cron.daily/$PKGNAM
+# Choose a pager (defaults to 'most'):
+mkdir -p $PKG/etc/profile.d
+cp -a $CWD/man-db.sh $CWD/man-db.csh $PKG/etc/profile.d
+chown root:root $PKG/etc/profile.d/*
+chmod 755 $PKG/etc/profile.d/*
+mv $PKG/etc/profile.d/man-db.csh $PKG/etc/profile.d/man-db.csh.new
+mv $PKG/etc/profile.d/man-db.sh $PKG/etc/profile.d/man-db.sh.new
+
# modified default config, customized for Slackware. See the conf file for
# list of changes.
cat $CWD/man_db.conf.new \
diff --git a/source/ap/man-db/man-db.csh b/source/ap/man-db/man-db.csh
new file mode 100644
index 00000000..1759e237
--- /dev/null
+++ b/source/ap/man-db/man-db.csh
@@ -0,0 +1,5 @@
+#!/bin/csh
+# Choose a default for the system's manual pager:
+#setenv MANPAGER less
+#setenv MANPAGER more
+setenv MANPAGER most
diff --git a/source/ap/man-db/man-db.sh b/source/ap/man-db/man-db.sh
new file mode 100644
index 00000000..d3d9f0d0
--- /dev/null
+++ b/source/ap/man-db/man-db.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Choose a default for the system's manual pager:
+#export MANPAGER=less
+#export MANPAGER=more
+export MANPAGER=most