Add buildroot 2018-02
This commit is contained in:
20
buildroot/package/keyutils/0001-fix-install-rule.patch
Normal file
20
buildroot/package/keyutils/0001-fix-install-rule.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
Makefile: fix install rule
|
||||
|
||||
Do not link the .so with an absolute path, otherwise it may point to
|
||||
the host library.
|
||||
|
||||
Based on the former patch by Yann E. MORIN.
|
||||
|
||||
Signed-off-by: Vicente Olivert Riera <vincent.riera@imgtec.com>
|
||||
|
||||
--- keyutils-1.5.9/Makefile.orig 2014-09-22 16:13:41.593562765 +0100
|
||||
+++ keyutils-1.5.9/Makefile 2014-09-22 16:14:05.377963952 +0100
|
||||
@@ -168,7 +168,7 @@ ifeq ($(NO_SOLIB),0)
|
||||
$(INSTALL) -D $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME)
|
||||
$(LNS) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
|
||||
mkdir -p $(DESTDIR)$(USRLIBDIR)
|
||||
- $(LNS) $(LIBDIR)/$(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB)
|
||||
+ $(LNS) $(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB)
|
||||
endif
|
||||
$(INSTALL) -D keyctl $(DESTDIR)$(BINDIR)/keyctl
|
||||
$(INSTALL) -D request-key $(DESTDIR)$(SBINDIR)/request-key
|
||||
15
buildroot/package/keyutils/0002-cifs.patch
Normal file
15
buildroot/package/keyutils/0002-cifs.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
Patch vampirised from Debian's packaging of keyutils-1.4
|
||||
|
||||
Author: Marcus Meissner <meissner@suse.de>
|
||||
Description: Added 2 cifs helpers to request-key.conf (for CIFS DFS support)
|
||||
|
||||
diff -Naurp keyutils.orig/request-key.conf keyutils/request-key.conf
|
||||
--- keyutils.orig/request-key.conf 2008-09-07 23:53:10.000000000 +0000
|
||||
+++ keyutils/request-key.conf 2009-02-05 00:53:00.000000000 +0000
|
||||
@@ -34,4 +34,6 @@
|
||||
create user debug:* negate /bin/keyctl negate %k 30 %S
|
||||
create user debug:loop:* * |/bin/cat
|
||||
create user debug:* * /usr/share/keyutils/request-key-debug.sh %k %d %c %S
|
||||
+create cifs.spnego * * /usr/sbin/cifs.upcall -c %k
|
||||
+create dns_resolver * * /usr/sbin/cifs.upcall %k
|
||||
negate * * * /bin/keyctl negate %k 30 %S
|
||||
@@ -0,0 +1,32 @@
|
||||
From b2c6d3744dca029560d0d5e780f16561f8eeed53 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Sun, 12 Jul 2015 16:22:14 +0200
|
||||
Subject: [PATCH] Add missing <limits.h> include
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
key.dns_resolver.c uses ‘UINT_MAX’ and ‘ULONG_MAX’, but forgets to
|
||||
include <limits.h>, which causes build failure with certain C
|
||||
libraries (notably the musl C library).
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
key.dns_resolver.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/key.dns_resolver.c b/key.dns_resolver.c
|
||||
index c2a9fe5..d41e219 100644
|
||||
--- a/key.dns_resolver.c
|
||||
+++ b/key.dns_resolver.c
|
||||
@@ -56,6 +56,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
+#include <limits.h>
|
||||
|
||||
static const char *DNS_PARSE_VERSION = "1.0";
|
||||
static const char prog[] = "key.dns_resolver";
|
||||
--
|
||||
2.4.5
|
||||
|
||||
15
buildroot/package/keyutils/Config.in
Normal file
15
buildroot/package/keyutils/Config.in
Normal file
@@ -0,0 +1,15 @@
|
||||
config BR2_PACKAGE_KEYUTILS
|
||||
bool "keyutils"
|
||||
depends on !BR2_microblaze
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on !BR2_STATIC_LIBS # dlopen
|
||||
help
|
||||
These tools are used to control the key management system
|
||||
built into the Linux kernel.
|
||||
|
||||
http://people.redhat.com/~dhowells/keyutils/
|
||||
|
||||
comment "keyutils needs a toolchain w/ dynamic library"
|
||||
depends on !BR2_microblaze
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS
|
||||
2
buildroot/package/keyutils/keyutils.hash
Normal file
2
buildroot/package/keyutils/keyutils.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally computed
|
||||
sha256 115c3deae7f181778fd0e0ffaa2dad1bf1fe2f5677cf2e0e348cdb7a1c93afb6 keyutils-1.5.10.tar.bz2
|
||||
38
buildroot/package/keyutils/keyutils.mk
Normal file
38
buildroot/package/keyutils/keyutils.mk
Normal file
@@ -0,0 +1,38 @@
|
||||
################################################################################
|
||||
#
|
||||
# keyutils
|
||||
#
|
||||
################################################################################
|
||||
|
||||
KEYUTILS_VERSION = 1.5.10
|
||||
KEYUTILS_SOURCE = keyutils-$(KEYUTILS_VERSION).tar.bz2
|
||||
KEYUTILS_SITE = http://people.redhat.com/~dhowells/keyutils
|
||||
KEYUTILS_LICENSE = GPL-2.0+, LGPL-2.1+
|
||||
KEYUTILS_LICENSE_FILES = LICENCE.GPL LICENCE.LGPL
|
||||
KEYUTILS_INSTALL_STAGING = YES
|
||||
|
||||
KEYUTILS_MAKE_PARAMS = \
|
||||
INSTALL=$(INSTALL) \
|
||||
LIBDIR=/usr/lib \
|
||||
USRLIBDIR=/usr/lib \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
CPPFLAGS="$(TARGET_CPPFLAGS) -I." \
|
||||
LNS="$(HOSTLN) -sf"
|
||||
|
||||
ifeq ($(BR2_SHARED_LIBS),y)
|
||||
KEYUTILS_MAKE_PARAMS += NO_ARLIB=1
|
||||
endif
|
||||
|
||||
define KEYUTILS_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) $(KEYUTILS_MAKE_PARAMS) -C $(@D)
|
||||
endef
|
||||
|
||||
define KEYUTILS_INSTALL_STAGING_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) $(KEYUTILS_MAKE_PARAMS) -C $(@D) DESTDIR=$(STAGING_DIR) install
|
||||
endef
|
||||
|
||||
define KEYUTILS_INSTALL_TARGET_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) $(KEYUTILS_MAKE_PARAMS) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user