diff options
| author | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
|---|---|---|
| committer | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
| commit | c82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch) | |
| tree | 56d864b5a5c6c145edd96178ae219a8f90e191a6 /libs/keyutils/MAKEPKG | |
| download | ports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz | |
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'libs/keyutils/MAKEPKG')
| -rw-r--r-- | libs/keyutils/MAKEPKG | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/libs/keyutils/MAKEPKG b/libs/keyutils/MAKEPKG new file mode 100644 index 0000000..c656aab --- /dev/null +++ b/libs/keyutils/MAKEPKG @@ -0,0 +1,41 @@ +#!/bin/mkpkg +# description: Tools to control the Linux key management system +# url: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/ +name=keyutils +version=1.6.3 +release=1 +source=(https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/$name-$version.tar.gz) +sha256sums=( + "a61d5706136ae4c05bd48f86186bcfdbd88dd8bd5107e3e195c924cfc1b39bb4" +) +build() { + cd $name-$version + + sed -i "/^CFLAGS/s/-g/$CFLAGS/" Makefile + sed -i 's/-Werror//g' Makefile + + # lld is stricter than GNU ld with version scripts - symbols + # conditionally compiled out (keyctl_restrict, keyctl_dh_compute_kdf_alloc) + # cause fatal errors when referenced in version.lds. This flag + # matches GNU ld behavior (warn instead of error). + export LDFLAGS="$LDFLAGS -Wl,--undefined-version" + + make + make DESTDIR=$PKG \ + BINDIR=/usr/bin \ + SBINDIR=/usr/sbin \ + LIBDIR=/usr/lib \ + USRLIBDIR=/usr/lib \ + ETCDIR=/etc \ + SHAREDIR=/usr/share/keyutils \ + INCLUDEDIR=/usr/include \ + MANDIR=/usr/share/man \ + install + + rm -f $PKG/usr/lib/*.la +} +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} +# vim: filetype=sh |
