From 1fc4fdf39986499b21aac793a41fca60398a8ad6 Mon Sep 17 00:00:00 2001 From: Aditya Date: Wed, 11 Jan 2023 11:45:33 +0530 Subject: [PATCH] Add 8.23 - Build acl --- scripts/chapter8/8.23-acl.sh | 27 +++++++++++++++++++++++++++ scripts/main.sh | 12 ++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 scripts/chapter8/8.23-acl.sh diff --git a/scripts/chapter8/8.23-acl.sh b/scripts/chapter8/8.23-acl.sh new file mode 100644 index 0000000..df6c69f --- /dev/null +++ b/scripts/chapter8/8.23-acl.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +cd /sources +tar xf acl-2.3.1.tar.xz +cd acl-2.3.1 + +./configure --prefix=/usr \ + --disable-static \ + --docdir=/usr/share/doc/acl-2.3.1 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make -j5 + +if [ $? -ne 0 ] +then + exit 1 +fi + +make install + +cd /sources +rm -rf acl-2.3.1 + diff --git a/scripts/main.sh b/scripts/main.sh index 4d17191..7576146 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -810,3 +810,15 @@ then stop_script "chapter8/8.22-attr.sh" fi +# Chapter 8.23 +# ============ +echo "Building acl" +su -c "bash $SCRIPT/chapter8/8.23-acl.sh" + +# Exit on error +check_exit_code +if [ $exit_status -ne 0 ] +then + stop_script "chapter8/8.23-acl.sh" +fi +