Add 8.24 - Build libcap

This commit is contained in:
Aditya 2023-01-11 11:49:43 +05:30
parent 1fc4fdf399
commit f024869865
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#!/bin/bash
cd /sources
tar xf libcap-2.65.tar.xz
cd libcap-2.65
sed -i '/install -m.*STA/d' libcap/Makefile
make prefix=/usr lib=lib
if [ $? -ne 0 ]
then
exit 1
fi
make test
make prefix=/usr lib=lib install
cd /sources
rm -rf libcap-2.65

View file

@ -822,3 +822,15 @@ then
stop_script "chapter8/8.23-acl.sh" stop_script "chapter8/8.23-acl.sh"
fi fi
# Chapter 8.24
# ============
echo "Building libcap"
su -c "bash $SCRIPT/chapter8/8.24-libcap.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter8/8.24-libcap.sh"
fi