diff --git a/chapter08/libcap.xml b/chapter08/libcap.xml index d9ae8674f..fc3335f25 100644 --- a/chapter08/libcap.xml +++ b/chapter08/libcap.xml @@ -43,9 +43,9 @@ Installation of Libcap - Prevent a static library from being installed: + Prevent static libraries from being installed: -sed -i '/install -m.*STACAPLIBNAME/d' libcap/Makefile +sed -i '/install -m.*STA/d' libcap/Makefile Compile the package: @@ -72,10 +72,11 @@ Install the package and do some cleanup: make lib=lib PKGCONFIGDIR=/usr/lib/pkgconfig install -chmod -v 755 /lib/libcap.so.&libcap-version; -mv -v /lib/libpsx.a /usr/lib -rm -v /lib/libcap.so -ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so +for libname in cap psx; do + chmod -v 755 /lib/lib${libname}.so.&libcap-version; + rm -v /lib/lib${libname}.so + ln -sfv ../../lib/lib${libname}.so.2 /usr/lib/lib${libname}.so +done @@ -88,7 +89,7 @@ ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so capsh, getcap, getpcaps, and setcap - libcap.so and libpsx.a + libcap.so and libpsx.so