summaryrefslogtreecommitdiffstats
path: root/abs/core/libcap/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2014-02-16 23:53:03 (GMT)
committerJames Meyer <james.meyer@operamail.com>2014-02-19 19:03:03 (GMT)
commitaeeb1750810cd85ef5a1373e97de811aba59a1e9 (patch)
treedea5ae3d80ed7a438ff7ca01608ed2175fac9edf /abs/core/libcap/PKGBUILD
parent57da00f1efeef15771c989ac7884d43aa903efea (diff)
downloadlinhes_pkgbuild-aeeb1750810cd85ef5a1373e97de811aba59a1e9.zip
linhes_pkgbuild-aeeb1750810cd85ef5a1373e97de811aba59a1e9.tar.gz
linhes_pkgbuild-aeeb1750810cd85ef5a1373e97de811aba59a1e9.tar.bz2
krb5, libatasmart, libcap, ligbusb, linl, libsasl, lighttpd:
update binary path to /usr/bin refs #961
Diffstat (limited to 'abs/core/libcap/PKGBUILD')
-rw-r--r--abs/core/libcap/PKGBUILD31
1 files changed, 21 insertions, 10 deletions
diff --git a/abs/core/libcap/PKGBUILD b/abs/core/libcap/PKGBUILD
index 99d938b..b6dbd5a 100644
--- a/abs/core/libcap/PKGBUILD
+++ b/abs/core/libcap/PKGBUILD
@@ -1,18 +1,30 @@
-#$Id: PKGBUILD 158556 2012-05-04 23:56:45Z allan $
+#$Id: PKGBUILD 203064 2014-01-03 09:18:41Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Hugo Doria <hugo@archlinux.org>
pkgname=libcap
-pkgver=2.22
-pkgrel=3
+pkgver=2.23
+pkgrel=2
pkgdesc="POSIX 1003.1e capabilities"
arch=('i686' 'x86_64')
url="http://sites.google.com/site/fullycapable/"
license=('GPL2')
depends=('glibc' 'attr')
-source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc})
-md5sums=('b4896816b626bea445f0b3849bdd4077'
- '9d0983e25e5a251d098507f9561d2b27')
+options=('!staticlibs')
+source=(https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.23.tar.xz
+ libcap-2.23-header.patch)
+
+prepare() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ # install into /usr/bin
+ sed -i "/SBINDIR/s#sbin#bin#" Make.Rules
+
+ # fix header path issues
+ patch -p1 -i $srcdir/libcap-2.23-header.patch
+ # and fix the build with that patch
+ sed -i "s#uapi/##" libcap/Makefile
+}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
@@ -21,11 +33,10 @@ build() {
package() {
cd ${srcdir}/${pkgname}-${pkgver}
- make prefix=/usr DESTDIR=${pkgdir} RAISE_SETFCAP=no install
-
- chmod 755 ${pkgdir}/usr/lib/libcap.so.${pkgver}
- rm ${pkgdir}/usr/lib/libcap.a
+ make prefix=/usr lib=/lib DESTDIR=${pkgdir} RAISE_SETFCAP=no install
install -Dm644 pam_cap/capability.conf \
$pkgdir/usr/share/doc/$pkgname/capability.conf.example
}
+md5sums=('09a185e4b0aa8a81a51c1e4d0eba7db0'
+ '945984c4bf5e601c24a7c80f001fb2c6')