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

Felix Yan felixonmars at archlinux.org
Wed Dec 25 23:35:01 UTC 2019


    Date: Wednesday, December 25, 2019 @ 23:35:00
  Author: felixonmars
Revision: 372275

archrelease: copy trunk to testing-x86_64

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

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

Copied: libcap/repos/testing-x86_64/PKGBUILD (from rev 372274, libcap/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2019-12-25 23:35:00 UTC (rev 372275)
@@ -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.29
+pkgrel=1
+pkgdesc='POSIX 1003.1e capabilities'
+arch=(x86_64)
+url='https://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=('dd865b8a0a13cb8e9768e832e00f9f11'
+         '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