36 lines
1.4 KiB
Text
36 lines
1.4 KiB
Text
# Maintainer: David Runge <dvzrv@archlinux.org>
|
|
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
|
# Contributor: Allan McRae <allan@archlinux.org>
|
|
# Contributor: Hugo Doria <hugo@archlinux.org>
|
|
|
|
pkgname=libcap
|
|
pkgver=2.64
|
|
pkgrel=1
|
|
pkgdesc="POSIX 1003.1e capabilities"
|
|
arch=(x86_64)
|
|
url="https://sites.google.com/site/fullycapable/"
|
|
license=(GPL2)
|
|
depends=(glibc pam)
|
|
makedepends=(linux-api-headers)
|
|
provides=(libcap.so libpsx.so)
|
|
options=(debug)
|
|
source=(https://kernel.org/pub/linux/libs/security/linux-privs/${pkgname}2/$pkgname-$pkgver.tar.{xz,sign})
|
|
sha512sums=('3c5cf478cef249585ee1a0dfd75c6b41b0daf4e1ecb59dce894eac5523841aa79ca499be4161f73193dd8e7363edcd51063f3e281930cee939ebd50983eecbaf'
|
|
'SKIP')
|
|
b2sums=('078ce2505a79c1bd4ca0a8eaf3444178bc19a566f0505d28c6959f86fbbac2fe2fc88c06fd0d988087a6e20e8ec66a2633146cea957f0f3fd92eaff4f81d7c66'
|
|
'SKIP')
|
|
validpgpkeys=(38A644698C69787344E954CE29EE848AE2CCF3F4) # Andrew G. Morgan <morgan@kernel.org>
|
|
|
|
build() {
|
|
make DYNAMIC=yes KERNEL_HEADERS=/usr/include lib=lib prefix=/usr sbindir=bin -C $pkgname-$pkgver
|
|
}
|
|
|
|
check() {
|
|
make test -k -C $pkgname-$pkgver
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" RAISE_SETFCAP=no lib=lib prefix=/usr sbindir=bin install -C $pkgname-$pkgver
|
|
install -vDm 644 $pkgname-$pkgver/{CHANGELOG,README} -t "$pkgdir/usr/share/doc/$pkgname/"
|
|
install -vDm 644 $pkgname-$pkgver/pam_cap/capability.conf -t "$pkgdir/usr/share/doc/$pkgname/examples/"
|
|
}
|