From 1245af6a42487cab31757c0102ff886a2408195b Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Wed, 22 Nov 2023 18:25:43 +0200 Subject: [PATCH] new file: projects/people.redhat.com/sgrubb/libcap-ng/package.yml new file: projects/people.redhat.com/sgrubb/libcap-ng/test.c --- .../sgrubb/libcap-ng/package.yml | 31 +++++++++++++++++++ .../people.redhat.com/sgrubb/libcap-ng/test.c | 8 +++++ 2 files changed, 39 insertions(+) create mode 100644 projects/people.redhat.com/sgrubb/libcap-ng/package.yml create mode 100644 projects/people.redhat.com/sgrubb/libcap-ng/test.c diff --git a/projects/people.redhat.com/sgrubb/libcap-ng/package.yml b/projects/people.redhat.com/sgrubb/libcap-ng/package.yml new file mode 100644 index 00000000..f0a2cc46 --- /dev/null +++ b/projects/people.redhat.com/sgrubb/libcap-ng/package.yml @@ -0,0 +1,31 @@ +distributable: + url: https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-{{version}}.tar.gz + strip-components: 1 +display-name: libcap-ng +versions: + url: https://people.redhat.com/sgrubb/libcap-ng/ + match: /libcap-ng-\d+\.\d+\.\d+\.tar\.gz/ + strip: + - /^libcap-ng-/ + - /\.tar\.gz/ +platforms: + - linux +build: + script: + - ./configure $CONFIGURE_ARGS + - make --jobs {{ hw.concurrency }} + - make --jobs {{ hw.concurrency }} install + env: + CONFIGURE_ARGS: + - --disable-dependency-tracking + - --prefix="{{prefix}}" + - --libdir="{{prefix}}/lib" + - --disable-silent-rules +provides: + - bin/captest + - bin/filecap + - bin/netcap + - bin/pscap +test: + - cc test.c -lcap-ng -o test + - ./test | grep ok \ No newline at end of file diff --git a/projects/people.redhat.com/sgrubb/libcap-ng/test.c b/projects/people.redhat.com/sgrubb/libcap-ng/test.c new file mode 100644 index 00000000..f8e59c1b --- /dev/null +++ b/projects/people.redhat.com/sgrubb/libcap-ng/test.c @@ -0,0 +1,8 @@ +#include +#include + +int main(int argc, char *argv[]) +{ + if(capng_have_permitted_capabilities() > -1) + printf("ok"); +} \ No newline at end of file