diff options
author | wangmy <wangmy@fujitsu.com> | 2021-04-15 14:08:19 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-18 11:37:26 +0100 |
commit | 98d10b1c42b684129760fc19231cbb8bca558935 (patch) | |
tree | b2ae073678a99e680a9ec18fbe6cb03594060017 /meta/recipes-support/libcap/libcap_2.48.bb | |
parent | b3092cf96d0a61c4aa4d2c59c0fae25f868f620e (diff) | |
download | poky-98d10b1c42b684129760fc19231cbb8bca558935.tar.gz |
libcap: upgrade 2.48 -> 2.49
License-Update: add description of GPL v2.0
(From OE-Core rev: 2a02e5622d07146687f72615e9bcb8612cce03e3)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libcap/libcap_2.48.bb')
-rw-r--r-- | meta/recipes-support/libcap/libcap_2.48.bb | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/meta/recipes-support/libcap/libcap_2.48.bb b/meta/recipes-support/libcap/libcap_2.48.bb deleted file mode 100644 index a12738d63a..0000000000 --- a/meta/recipes-support/libcap/libcap_2.48.bb +++ /dev/null | |||
@@ -1,78 +0,0 @@ | |||
1 | SUMMARY = "Library for getting/setting POSIX.1e capabilities" | ||
2 | DESCRIPTION = "A library providing the API to access POSIX capabilities. \ | ||
3 | These allow giving various kinds of specific privileges to individual \ | ||
4 | users, without giving them full root permissions." | ||
5 | HOMEPAGE = "http://sites.google.com/site/fullycapable/" | ||
6 | # no specific GPL version required | ||
7 | LICENSE = "BSD | GPLv2" | ||
8 | LIC_FILES_CHKSUM = "file://License;md5=3f84fd6f29d453a56514cb7e4ead25f1" | ||
9 | |||
10 | DEPENDS = "hostperl-runtime-native gperf-native" | ||
11 | |||
12 | SRC_URI = "${KERNELORG_MIRROR}/linux/libs/security/linux-privs/${BPN}2/${BPN}-${PV}.tar.xz \ | ||
13 | file://0001-ensure-the-XATTR_NAME_CAPS-is-defined-when-it-is-use.patch \ | ||
14 | file://0002-tests-do-not-run-target-executables.patch \ | ||
15 | file://0001-tests-do-not-statically-link-a-test.patch \ | ||
16 | " | ||
17 | SRC_URI[sha256sum] = "4de9590ee09a87c282d558737ffb5b6175ccbfd26d580add10df44d0f047f6c2" | ||
18 | |||
19 | UPSTREAM_CHECK_URI = "https://www.kernel.org/pub/linux/libs/security/linux-privs/${BPN}2/" | ||
20 | |||
21 | inherit lib_package | ||
22 | |||
23 | # do NOT pass target cflags to host compilations | ||
24 | # | ||
25 | do_configure() { | ||
26 | # libcap uses := for compilers, fortunately, it gives us a hint | ||
27 | # on what should be replaced with ?= | ||
28 | sed -e 's,:=,?=,g' -i Make.Rules | ||
29 | sed -e 's,^BUILD_CFLAGS ?= ,BUILD_CFLAGS := $(BUILD_CFLAGS) ,' -i Make.Rules | ||
30 | } | ||
31 | |||
32 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" | ||
33 | PACKAGECONFIG_class-native ??= "" | ||
34 | |||
35 | PACKAGECONFIG[pam] = "PAM_CAP=yes,PAM_CAP=no,libpam" | ||
36 | |||
37 | EXTRA_OEMAKE = " \ | ||
38 | INDENT= \ | ||
39 | lib='${baselib}' \ | ||
40 | RAISE_SETFCAP=no \ | ||
41 | DYNAMIC=yes \ | ||
42 | BUILD_GPERF=yes \ | ||
43 | " | ||
44 | |||
45 | EXTRA_OEMAKE_append_class-target = " SYSTEM_HEADERS=${STAGING_INCDIR}" | ||
46 | |||
47 | # these are present in the libcap defaults, so include in our CFLAGS too | ||
48 | CFLAGS += "-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" | ||
49 | |||
50 | do_compile() { | ||
51 | oe_runmake ${PACKAGECONFIG_CONFARGS} | ||
52 | } | ||
53 | |||
54 | do_install() { | ||
55 | oe_runmake install \ | ||
56 | ${PACKAGECONFIG_CONFARGS} \ | ||
57 | DESTDIR="${D}" \ | ||
58 | prefix="${prefix}" \ | ||
59 | SBINDIR="${sbindir}" | ||
60 | } | ||
61 | |||
62 | do_install_append() { | ||
63 | # Move the library to base_libdir | ||
64 | install -d ${D}${base_libdir} | ||
65 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then | ||
66 | mv ${D}${libdir}/libcap* ${D}${base_libdir} | ||
67 | if [ -d ${D}${libdir}/security ]; then | ||
68 | mv ${D}${libdir}/security ${D}${base_libdir} | ||
69 | fi | ||
70 | fi | ||
71 | } | ||
72 | |||
73 | FILES_${PN}-dev += "${base_libdir}/*.so" | ||
74 | |||
75 | # pam files | ||
76 | FILES_${PN} += "${base_libdir}/security/*.so" | ||
77 | |||
78 | BBCLASSEXTEND = "native nativesdk" | ||