keyutils: New package
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Oct 2018 18:49:14 +0000 (19:49 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Oct 2018 18:51:19 +0000 (19:51 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/common/keyutils [new file with mode: 0644]
config/rootfiles/core/125/filelists/keyutils [new symlink]
lfs/keyutils [new file with mode: 0644]
make.sh

diff --git a/config/rootfiles/common/keyutils b/config/rootfiles/common/keyutils
new file mode 100644 (file)
index 0000000..10058de
--- /dev/null
@@ -0,0 +1,50 @@
+bin/keyctl
+etc/request-key.conf
+etc/request-key.d
+#lib/libkeyutils.so
+lib/libkeyutils.so.1
+lib/libkeyutils.so.1.7
+sbin/key.dns_resolver
+sbin/request-key
+#usr/include/keyutils.h
+#usr/share/keyutils
+#usr/share/keyutils/request-key-debug.sh
+#usr/share/man/man1/keyctl.1
+#usr/share/man/man3/find_key_by_type_and_name.3
+#usr/share/man/man3/keyctl.3
+#usr/share/man/man3/keyctl_assume_authority.3
+#usr/share/man/man3/keyctl_chown.3
+#usr/share/man/man3/keyctl_clear.3
+#usr/share/man/man3/keyctl_describe.3
+#usr/share/man/man3/keyctl_describe_alloc.3
+#usr/share/man/man3/keyctl_dh_compute.3
+#usr/share/man/man3/keyctl_dh_compute_alloc.3
+#usr/share/man/man3/keyctl_dh_compute_kdf.3
+#usr/share/man/man3/keyctl_get_keyring_ID.3
+#usr/share/man/man3/keyctl_get_persistent.3
+#usr/share/man/man3/keyctl_get_security.3
+#usr/share/man/man3/keyctl_get_security_alloc.3
+#usr/share/man/man3/keyctl_instantiate.3
+#usr/share/man/man3/keyctl_instantiate_iov.3
+#usr/share/man/man3/keyctl_invalidate.3
+#usr/share/man/man3/keyctl_join_session_keyring.3
+#usr/share/man/man3/keyctl_link.3
+#usr/share/man/man3/keyctl_negate.3
+#usr/share/man/man3/keyctl_read.3
+#usr/share/man/man3/keyctl_read_alloc.3
+#usr/share/man/man3/keyctl_reject.3
+#usr/share/man/man3/keyctl_restrict_keyring.3
+#usr/share/man/man3/keyctl_revoke.3
+#usr/share/man/man3/keyctl_search.3
+#usr/share/man/man3/keyctl_session_to_parent.3
+#usr/share/man/man3/keyctl_set_reqkey_keyring.3
+#usr/share/man/man3/keyctl_set_timeout.3
+#usr/share/man/man3/keyctl_setperm.3
+#usr/share/man/man3/keyctl_unlink.3
+#usr/share/man/man3/keyctl_update.3
+#usr/share/man/man3/recursive_key_scan.3
+#usr/share/man/man3/recursive_session_key_scan.3
+#usr/share/man/man5/request-key.conf.5
+#usr/share/man/man7/keyutils.7
+#usr/share/man/man8/key.dns_resolver.8
+#usr/share/man/man8/request-key.8
diff --git a/config/rootfiles/core/125/filelists/keyutils b/config/rootfiles/core/125/filelists/keyutils
new file mode 120000 (symlink)
index 0000000..4311917
--- /dev/null
@@ -0,0 +1 @@
+../../../common/keyutils
\ No newline at end of file
diff --git a/lfs/keyutils b/lfs/keyutils
new file mode 100644 (file)
index 0000000..67b6f44
--- /dev/null
@@ -0,0 +1,79 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2018  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 1.5.11
+
+THISAPP    = keyutils-$(VER)
+DL_FILE    = $(THISAPP).tar.bz2
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 = bcc0984181572461850a37c39f8b167a
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+dist: 
+       @$(PAK)
+
+###############################################################################
+# Downloading, checking, md5sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+       @$(MD5)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && make $(MAKETUNING)
+       cd $(DIR_APP) && make NO_ARLIB=1 install
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index cca40d0..5276c8f 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1379,6 +1379,7 @@ buildipfire() {
   lfsmake2 rsync
   lfsmake2 libtirpc
   lfsmake2 rpcbind
+  lfsmake2 keyutils
   lfsmake2 nfs
   lfsmake2 gnu-netcat
   lfsmake2 ncat