12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- set -e
- program=libcap
- version=2.62
- release=1
- pkgcategory=libs
- tarname=${program}-${version}.tar.gz
- fetch=https://mirrors.edge.kernel.org/pub/linux/libs/security/linux-privs/libcap2/$tarname
- description="
- Library with capabilities for POSIX.1e.
- The libcap package implements the user-space interfaces to the
- POSIX 1003.1e capabilities available in Linux kernels.
- These capabilities are a partitioning of the all powerful root
- privilege into a set of distinct privileges.
- "
- homepage=https://sites.google.com/site/fullycapable
- license=GPLv2+
- docs="CHANGELOG License README"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- make DEBUG="" COPTS="$QICFLAGS" LDFLAGS="$QILDFLAGS"
- make install RAISE_SETFCAP=no \
- DESTDIR="$destdir" \
- LIBDIR=/usr/lib${libSuffix} \
- SBINDIR=/usr/sbin \
- PKGCONFIGDIR=/usr/lib${libSuffix}/pkgconfig
-
- chmod 755 "${destdir}/usr/lib${libSuffix}/libcap.so"
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
-
- mkdir -p "${destdir}${docsdir}"
- cp -p $docs "${destdir}${docsdir}"
- }
|