From 135b1c88a37eaea8045bf2cd82582d830a9122f6 Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 12 Jan 2023 19:48:49 +0530 Subject: [PATCH] Add 8.71 - Build man-db --- scripts/chapter8/8.71-man-db.sh | 35 +++++++++++++++++++++++++++++++++ scripts/main.sh | 12 +++++++++++ 2 files changed, 47 insertions(+) create mode 100644 scripts/chapter8/8.71-man-db.sh diff --git a/scripts/chapter8/8.71-man-db.sh b/scripts/chapter8/8.71-man-db.sh new file mode 100644 index 0000000..8ebdffd --- /dev/null +++ b/scripts/chapter8/8.71-man-db.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +cd /sources +tar xf man-db-2.10.2.tar.xz +cd man-db-2.10.2 + +./configure --prefix=/usr \ + --docdir=/usr/share/doc/man-db-2.10.2 \ + --sysconfdir=/etc \ + --disable-setuid \ + --enable-cache-owner=bin \ + --with-browser=/usr/bin/lynx \ + --with-vgrind=/usr/bin/vgrind \ + --with-grap=/usr/bin/grap \ + --with-systemdtmpfilesdir= \ + --with-systemdsystemunitdir= + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make check + +make install + +cd /sources +rm -rf man-db-2.10.2 diff --git a/scripts/main.sh b/scripts/main.sh index 0a22674..5e4b7d9 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -1390,3 +1390,15 @@ then stop_script "chapter8/8.70-eudev.sh" fi +# Chapter 8.71 +# ============ +echo "Building man-db" +su -c "bash $SCRIPT/chapter8/8.71-man-db.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.71-man-db.sh" +fi +