summaryrefslogtreecommitdiffstats
path: root/abs/core/libcap
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 14:42:45 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 14:42:45 (GMT)
commit086090b673780c3374f22766f2269ebc7521a822 (patch)
treec23dcf287cf8dbd78b8067696a4f386523cda59c /abs/core/libcap
parentffe9531bff1ebd10a31af620390c3fdef4adcf2e (diff)
downloadlinhes_pkgbuild-086090b673780c3374f22766f2269ebc7521a822.zip
linhes_pkgbuild-086090b673780c3374f22766f2269ebc7521a822.tar.gz
linhes_pkgbuild-086090b673780c3374f22766f2269ebc7521a822.tar.bz2
libpcap 2.22
Diffstat (limited to 'abs/core/libcap')
-rw-r--r--abs/core/libcap/PKGBUILD33
1 files changed, 21 insertions, 12 deletions
diff --git a/abs/core/libcap/PKGBUILD b/abs/core/libcap/PKGBUILD
index a08e96c..99d938b 100644
--- a/abs/core/libcap/PKGBUILD
+++ b/abs/core/libcap/PKGBUILD
@@ -1,22 +1,31 @@
-#$Id: PKGBUILD 64614 2010-01-21 11:40:53Z allan $
-# Maintainer: Hugo Doria <hugo@archlinux.org>
+#$Id: PKGBUILD 158556 2012-05-04 23:56:45Z allan $
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Contributor: Hugo Doria <hugo@archlinux.org>
pkgname=libcap
-pkgver=2.19
-pkgrel=1
+pkgver=2.22
+pkgrel=3
pkgdesc="POSIX 1003.1e capabilities"
arch=('i686' 'x86_64')
-url="http://www.kernel.org/pub/linux/libs/security/linux-privs/"
-license=('GPL')
+url="http://sites.google.com/site/fullycapable/"
+license=('GPL2')
depends=('glibc' 'attr')
-source=(http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/${pkgname}-${pkgver}.tar.gz)
-md5sums=('9caa6dafc9e3db4cbaecdb8e48f23fa2')
+source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc})
+md5sums=('b4896816b626bea445f0b3849bdd4077'
+ '9d0983e25e5a251d098507f9561d2b27')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
- sed -i -e "s|LIBDIR=\$(FAKEROOT)\$(lib_prefix)/\$(lib)|LIBDIR=\$(FAKEROOT)/\$(lib)|g" Make.Rules || return 1
- make prefix=/usr DESTDIR=${pkgdir} install
+ make
+}
- rm ${pkgdir}/lib/*.a || return 1
- chmod 755 ${pkgdir}/lib/libcap.so.${pkgver} || return 1
+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
+
+ install -Dm644 pam_cap/capability.conf \
+ $pkgdir/usr/share/doc/$pkgname/capability.conf.example
}