mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.24 - Build libcap
This commit is contained in:
parent
1fc4fdf399
commit
f024869865
2 changed files with 34 additions and 0 deletions
22
scripts/chapter8/8.24-libcap.sh
Normal file
22
scripts/chapter8/8.24-libcap.sh
Normal 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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue