[1/3] keyutils: New package

Message ID 20230221144552.857087-1-stefan.schantl@ipfire.org
State Accepted
Commit 400ccb0b4fa595126e781d597e91947b11493bb8
Headers
Series [1/3] keyutils: New package |

Commit Message

Stefan Schantl Feb. 21, 2023, 2:45 p.m. UTC
  Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 keyutils/keyutils.nm | 76 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)
 create mode 100644 keyutils/keyutils.nm
  

Patch

diff --git a/keyutils/keyutils.nm b/keyutils/keyutils.nm
new file mode 100644
index 000000000..2fec320d1
--- /dev/null
+++ b/keyutils/keyutils.nm
@@ -0,0 +1,76 @@ 
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = keyutils
+version    = 1.6.1
+release    = 1
+
+groups     = System/Tools
+url        = http://people.redhat.com/~dhowells/keyutils/
+license    = GPLv2+ and LGPLv2+
+summary    = Linux Key Management Utilities
+
+description
+	Utilities to control the kernel key management facility and to provide
+	a mechanism by which the kernel call back to user space to get a key
+	instantiated.
+end
+
+source_dl  = http://people.redhat.com/~dhowells/keyutils/
+sources    = %{thisapp}.tar.bz2
+
+build
+	requires
+		kernel-headers
+	end
+
+	make_build_targets += \
+		NO_ARLIB=1 \
+		ETCDIR=%{sysconfdir} \
+		LIBDIR=%{libdir} \
+		USRLIBDIR=%{libdir} \
+		BINDIR=%{bindir} \
+		SBINDIR=%{sbindir} \
+		MANDIR=%{mandir} \
+		INCLUDEDIR=%{includedir} \
+		SHAREDIR=%{datadir}/%{name} \
+		NO_GLIBC_KEYERR=1 \
+		CFLAGS="-Wall %{CFLAGS}" \
+		LDFLAGS="%{LDFLAGS}"
+
+	make_install_targets += \
+		NO_ARLIB=1 \
+		ETCDIR=%{sysconfdir} \
+		LIBDIR=%{libdir} \
+		USRLIBDIR=%{libdir} \
+		BINDIR=%{bindir} \
+		SBINDIR=%{sbindir} \
+		MANDIR=%{mandir} \
+		INCLUDEDIR=%{includedir} \
+		SHAREDIR=%{datadir}/%{name}
+
+	install_cmds
+		# Fix broken symlink.
+		ln -svf libkeyutils.so.1 %{BUILDROOT}%{libdir}/libkeyutils.so
+	end
+end
+
+packages
+	package %{name}
+
+	package libkeyutils
+		template LIBS
+	end
+
+	package libkeyutils-devel
+		template DEVEL
+
+		requires += libkeyutils = %{thisver}
+	end
+
+	package %{name}-debuginfo
+		template DEBUGINFO
+	end
+end