[arch-commits] Commit in libcap/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Mon Nov 19 07:41:22 UTC 2018


    Date: Monday, November 19, 2018 @ 07:41:21
  Author: bpiotrowski
Revision: 340118

archrelease: copy trunk to testing-x86_64

Added:
  libcap/repos/testing-x86_64/
  libcap/repos/testing-x86_64/PKGBUILD
    (from rev 340117, libcap/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: libcap/repos/testing-x86_64/PKGBUILD (from rev 340117, libcap/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2018-11-19 07:41:21 UTC (rev 340118)
@@ -0,0 +1,38 @@
+# Maintainer:  Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Allan McRae <allan at archlinux.org>
+# Contributor: Hugo Doria <hugo at archlinux.org>
+
+pkgname=libcap
+pkgver=2.26
+pkgrel=1
+pkgdesc='POSIX 1003.1e capabilities'
+arch=('x86_64')
+url='http://sites.google.com/site/fullycapable/'
+license=('GPL2')
+depends=('glibc' 'attr')
+makedepends=('linux-api-headers')
+validpgpkeys=('38A644698C69787344E954CE29EE848AE2CCF3F4') # Andrew G. Morgan <morgan at kernel.org>
+source=(https://kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-$pkgver.tar.{xz,sign})
+md5sums=('968ac4d42a1a71754313527be2ab5df3'
+         'SKIP')
+
+prepare() {
+  cd $pkgname-$pkgver
+  sed -i "/SBINDIR/s#sbin#bin#" Make.Rules
+  
+  # use our buildflags
+  sed -i "s/CFLAGS :=/CFLAGS += \$(CPPFLAGS) /" Make.Rules
+  sed -i "s/LDFLAGS :=/LDFLAGS +=/" Make.Rules
+}
+
+build() {
+  make -C $pkgname-$pkgver KERNEL_HEADERS=/usr/include
+}
+
+package() {
+  cd $pkgname-$pkgver
+  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
+}



More information about the arch-commits mailing list