Skip to content

Commit

Permalink
feat: add libcap as udev dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Sharshakov <dmitry.sharshakov@siderolabs.com>
  • Loading branch information
dsseng committed Sep 29, 2024
1 parent 4807585 commit 94e4768
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
"https://pagure.io/libaio.git",
"rpm-software-management/popt",
"SELinuxProject/selinux",
"git://git.liburcu.org/userspace-rcu.git"
"git://git.liburcu.org/userspace-rcu.git",
"git://git.kernel.org/pub/scm/libs/libcap/libcap.git"
],
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.?(?<patch>\\d+)?$"
},
Expand Down
1 change: 1 addition & 0 deletions .kres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spec:
- ipxe
- kmod
- libaio
- libcap
- libinih
- libjson-c
- liblzma
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-09-29T11:57:37Z by kres 8be5fa7.
# Generated on 2024-09-29T13:39:30Z by kres 8be5fa7.

# common variables

Expand Down Expand Up @@ -59,6 +59,7 @@ TARGETS += iptables
TARGETS += ipxe
TARGETS += kmod
TARGETS += libaio
TARGETS += libcap
TARGETS += libinih
TARGETS += libjson-c
TARGETS += liblzma
Expand Down
5 changes: 5 additions & 0 deletions Pkgfile
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ vars:
libsepol_sha256: cd741e25244e7ef6cd934d633614131a266c3eaeab33d8bfa45e8a93b45cc901
libsepol_sha512: 85d12d0ba5a7a3225f08d041a18fd59641608db5e0a78a1e9649754e45be54a807cd422d4889b88da6e806b4af546336c7a0913448f08ac33dc6ffb983890ef8

# renovate: datasource=git-tags extractVersion=^libcap-(?<version>.*)$ depName=git://git.kernel.org/pub/scm/libs/libcap/libcap.git
libcap_version: 2.70
libcap_sha256: 23a6ef8aadaf1e3e875f633bb2d116cfef8952dba7bc7c569b13458e1952b30f
libcap_sha512: 4e0bf0efeccb654c409afe9727b2b53c1d4da8190d7a0a9848fc52550ff3e13502add3eacde04a68a5b7bec09e91df487f64c5746ba987f873236a9e53b3d4e8

# renovate: datasource=git-tags extractVersion=^v(?<version>.*)$ depName=git://git.liburcu.org/userspace-rcu.git
liburcu_version: 0.14.1
liburcu_sha256: 231acb13dc6ec023e836a0f0666f6aab47dc621ecb1d2cd9d9c22f922678abc0
Expand Down
22 changes: 22 additions & 0 deletions libcap2/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: libcap
dependencies:
- stage: base
steps:
- sources:
- url: https://kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-{{ .libcap_version }}.tar.xz
destination: libcap.tar.xz
sha256: "{{ .libcap_sha256 }}"
sha512: "{{ .libcap_sha512 }}"
prepare:
- |
tar -xf libcap.tar.xz --strip-components=1
build:
- |
make prefix=${TOOLCHAIN} lib=lib -j $(nproc)
install:
- |
make DESTDIR=/rootfs prefix=${TOOLCHAIN} lib=lib install
rm -rf /rootfs/${TOOLCHAIN}/share
finalize:
- from: /rootfs
to: /

0 comments on commit 94e4768

Please sign in to comment.