Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=f2e7605c4916ba61d61a48be58586bfc4b71352a

commit f2e7605c4916ba61d61a48be58586bfc4b71352a
Author: Devil505 <devil505li...@gmail.com>
Date:   Thu Mar 10 09:53:20 2011 +0100

man-db-2.5.9-1-i686
* new package (replacing man)

diff --git a/source/base/man-db/README.Frugalware 
b/source/base/man-db/README.Frugalware
new file mode 100644
index 0000000..d4d059a
--- /dev/null
+++ b/source/base/man-db/README.Frugalware
@@ -0,0 +1,8 @@
+If you like coloured man-pages then you can enable that feature by issuing
+
+----
+# chmod +x /etc/profile.d/man-colors.sh
+----
+
+It is handled as a configuration file, so feel free to edit the colors in that
+file if you want.
diff --git a/source/base/man-db/convert-mans b/source/base/man-db/convert-mans
new file mode 100644
index 0000000..58a0224
--- /dev/null
+++ b/source/base/man-db/convert-mans
@@ -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
diff --git a/source/base/man-db/man-colors.sh b/source/base/man-db/man-colors.sh
new file mode 100644
index 0000000..6b2635c
--- /dev/null
+++ b/source/base/man-db/man-colors.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# colored manpages in less
+
+export LESS_TERMCAP_mb=$'\E[01;32m'
+export LESS_TERMCAP_md=$'\E[01;32m'
+export LESS_TERMCAP_me=$'\E[0m'
+export LESS_TERMCAP_ue=$'\E[0m'
+export LESS_TERMCAP_us=$'\E[01;34m'
diff --git a/source/base/man-db/man-db.cron.daily 
b/source/base/man-db/man-db.cron.daily
new file mode 100644
index 0000000..53e66e1
--- /dev/null
+++ b/source/base/man-db/man-db.cron.daily
@@ -0,0 +1,39 @@
+#!/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
diff --git a/source/base/man-db/man-db.install 
b/source/base/man-db/man-db.install
new file mode 100644
index 0000000..6a0f36b
--- /dev/null
+++ b/source/base/man-db/man-db.install
@@ -0,0 +1,18 @@
+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
+}
+
+post_remove() {
+  rm -rf /var/cache/man
+}
+
diff --git a/source/base/man-db/man.sh b/source/base/man-db/man.sh
new file mode 100644
index 0000000..d010920
--- /dev/null
+++ b/source/base/man-db/man.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ -z "$MANPATH" ]; then
+       export 
MANPATH=/usr/share/man:/usr/man:/usr/local/man:/usr/local/share/man
+else
+       export 
MANPATH=$MANPATH:/usr/share/man:/usr/man:/usr/local/man:/usr/local/share/man
+fi
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to