summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2020-09-29 01:20:19 (GMT)
committerBritney Fransen <brfransen@gmail.com>2020-09-29 01:20:19 (GMT)
commit1845aacb58c4ae7f089000a080a5d46e69b60fc0 (patch)
tree4390c7a4e4a40da925d6f46fe5cf8449ed6c6acf /abs/core
parentacd3db87c8be616bdaa1c0168fb4ef38888463e5 (diff)
downloadlinhes_pkgbuild-1845aacb58c4ae7f089000a080a5d46e69b60fc0.zip
linhes_pkgbuild-1845aacb58c4ae7f089000a080a5d46e69b60fc0.tar.gz
linhes_pkgbuild-1845aacb58c4ae7f089000a080a5d46e69b60fc0.tar.bz2
libseccomp: update to 2.4.2
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/libseccomp/PKGBUILD51
1 files changed, 42 insertions, 9 deletions
diff --git a/abs/core/libseccomp/PKGBUILD b/abs/core/libseccomp/PKGBUILD
index 63a4d4e..9d95285 100644
--- a/abs/core/libseccomp/PKGBUILD
+++ b/abs/core/libseccomp/PKGBUILD
@@ -1,24 +1,57 @@
-# Maintainer: Daniel Micay <danielmicay@gmail.com>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
+# Contributor: Daniel Micay <danielmicay@gmail.com>
# Contributor: Patryk Kowalczyk < patryk at kowalczyk dot ws>
pkgname=libseccomp
-pkgver=2.2.3
+pkgver=2.4.2
pkgrel=1
pkgdesc='Enhanced seccomp library'
-arch=('i686' 'x86_64')
+arch=('x86_64')
license=('LGPL2.1')
-url="http://sourceforge.net/projects/libseccomp/"
+url="https://github.com/seccomp/libseccomp"
depends=('glibc')
-source=("https://github.com/seccomp/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
-md5sums=('7db418d35d7a6168400bf6b05502f8bf')
+checkdepends=('valgrind')
+makedepends=('git')
+provides=('libseccomp.so')
+#source=(https://github.com/seccomp/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz{,.asc})
+source=("git+https://github.com/seccomp/${pkgname}?signed#tag=v${pkgver}")
+sha256sums=('SKIP')
+# XXX: do NOT trust this key as its not yet in the strong set, see linked issue
+# XXX: https://github.com/seccomp/libseccomp/issues/187
+# XXX: 47A68FCE37C7D7024FD65E11356CE62C2B524099 Tom Hromatka <tom.hromatka@oracle.com>
+# XXX: do NOT trust ^^ this key as its not yet in the strong set ^^ see linked issue
+validpgpkeys=('7100AADFAE6E6E940D2E0AD655E45A5AE8CA7C8A') # Paul Moore <paul@paul-moore.com>
+
+pkgver() {
+ cd ${pkgname}
+ git describe --tags --match 'v*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd ${pkgname}
+ # assert annotated tag doesn't change
+ test "$(git rev-parse HEAD)" = "1b6cfd1fc0b7499a28c24299a93a80bd18619563"
+ # backport: api: define __SNR_ppoll again
+ git cherry-pick --no-commit e3647f5b6b52996bf30d0c2c1d1248e4182e1c1c
+}
build() {
- cd $pkgname-$pkgver
+ cd ${pkgname}
+ autoreconf -fiv
./configure --prefix=/usr
make
}
+check() {
+ cd ${pkgname}
+ make check
+}
+
package() {
- cd $pkgname-$pkgver
- make DESTDIR="$pkgdir" install
+ cd ${pkgname}
+ make DESTDIR="${pkgdir}" install
+ install -Dm 644 CHANGELOG README.md SECURITY.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}
+
+# vim: ts=2 sw=2 et: