2010-07-07 07:12:13 +00:00
|
|
|
DESCRIPTION = "support for getting/setting POSIX.1e capabilities"
|
|
|
|
HOMEPAGE = "http://sites.google.com/site/fullycapable/"
|
|
|
|
|
|
|
|
# no specific GPL version required
|
2011-07-25 17:35:42 +00:00
|
|
|
LICENSE = "BSD | GPLv2"
|
|
|
|
LIC_FILES_CHKSUM = "file://License;md5=3f84fd6f29d453a56514cb7e4ead25f1"
|
2010-07-07 07:12:13 +00:00
|
|
|
|
2011-08-30 16:27:13 +00:00
|
|
|
DEPENDS = "attr perl-native-runtime"
|
|
|
|
DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
|
recipes-support: replace virtclass-native(sdk) with class-native(sdk)
The overrides virtclass-native and virtclass-nativesdk are deprecated,
which should be replaced by class-native and class-nativesdk.
NOTE:
There were 2 errors in libcap.inc, the BUILD_LDFLAGS_virtclass_native
should be BUILD_LDFLAGS_virtclass-native (the "_" should be "-"),
otherwise it doesn't work, and the value was: "-Wl,rpath=...", this is
incorrect, it shoudl be: "-Wl,-rpath=..." (lacked a - ), but we don't
need this line, since it is already in the default BUILD_LDFLAGS. Remove
it and we don't need to bump the PR since we just removed a unused line.
[YOCTO #3297]
(From OE-Core rev: cafb550fe9034754933f1708446dde155dcc3d51)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-27 08:48:17 +00:00
|
|
|
# attr and pam are disabled by EXTRA_OEMAKE_class-native
|
|
|
|
DEPENDS_class-native = "perl-native-runtime"
|
2010-07-07 07:12:13 +00:00
|
|
|
|
2013-10-23 09:05:41 +00:00
|
|
|
SRC_URI = "${DEBIAN_MIRROR}/main/libc/libcap2/${BPN}2_${PV}.orig.tar.gz \
|
|
|
|
file://fix-CAP_LAST_CAP.patch"
|
2010-07-07 07:12:13 +00:00
|
|
|
|
2012-02-06 13:34:22 +00:00
|
|
|
PR = "r1"
|
|
|
|
|
2010-07-07 07:12:13 +00:00
|
|
|
inherit lib_package
|
|
|
|
|
2013-06-14 08:09:33 +00:00
|
|
|
# do NOT pass target cflags to host compilations
|
|
|
|
#
|
2010-07-07 07:12:13 +00:00
|
|
|
do_configure() {
|
|
|
|
# libcap uses := for compilers, fortunately, it gives us a hint
|
|
|
|
# on what should be replaced with ?=
|
|
|
|
sed -e 's,:=,?=,g' -i Make.Rules
|
2013-06-14 08:09:33 +00:00
|
|
|
sed -e 's,^BUILD_CFLAGS ?= $(CFLAGS),BUILD_CFLAGS := $(BUILD_CFLAGS),' -i Make.Rules
|
2010-07-07 07:12:13 +00:00
|
|
|
}
|
|
|
|
|
2011-11-02 18:41:11 +00:00
|
|
|
EXTRA_OEMAKE = " \
|
|
|
|
LIBATTR=yes \
|
|
|
|
PAM_CAP=${@base_contains('DISTRO_FEATURES', 'pam', 'yes', 'no', d)} \
|
|
|
|
INDENT= SYSTEM_HEADERS=${STAGING_INCDIR} RAISE_SETFCAP=no \
|
|
|
|
lib=${@os.path.basename('${libdir}')} \
|
|
|
|
"
|
recipes-support: replace virtclass-native(sdk) with class-native(sdk)
The overrides virtclass-native and virtclass-nativesdk are deprecated,
which should be replaced by class-native and class-nativesdk.
NOTE:
There were 2 errors in libcap.inc, the BUILD_LDFLAGS_virtclass_native
should be BUILD_LDFLAGS_virtclass-native (the "_" should be "-"),
otherwise it doesn't work, and the value was: "-Wl,rpath=...", this is
incorrect, it shoudl be: "-Wl,-rpath=..." (lacked a - ), but we don't
need this line, since it is already in the default BUILD_LDFLAGS. Remove
it and we don't need to bump the PR since we just removed a unused line.
[YOCTO #3297]
(From OE-Core rev: cafb550fe9034754933f1708446dde155dcc3d51)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-27 08:48:17 +00:00
|
|
|
EXTRA_OEMAKE_class-native = " \
|
2011-11-02 18:41:11 +00:00
|
|
|
LIBATTR=no \
|
|
|
|
PAM_CAP=no \
|
|
|
|
INDENT= \
|
|
|
|
lib=${@os.path.basename('${libdir}')} \
|
|
|
|
"
|
2010-07-07 07:12:13 +00:00
|
|
|
|
|
|
|
do_compile() {
|
|
|
|
oe_runmake
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2012-09-24 21:43:05 +00:00
|
|
|
oe_runmake install DESTDIR="${D}" prefix="${prefix}" SBINDIR="${D}${sbindir}"
|
2010-07-07 07:12:13 +00:00
|
|
|
}
|
|
|
|
|
2012-01-05 06:30:30 +00:00
|
|
|
do_install_append() {
|
|
|
|
# Move the library to base_libdir
|
|
|
|
install -d ${D}${base_libdir}
|
2012-02-06 13:34:22 +00:00
|
|
|
if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
|
|
|
|
mv ${D}${libdir}/* ${D}${base_libdir}
|
|
|
|
rmdir ${D}${libdir}
|
|
|
|
fi
|
2012-01-05 06:30:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
FILES_${PN}-dev += "${base_libdir}/*.so"
|
|
|
|
|
2010-07-07 07:12:13 +00:00
|
|
|
# pam files
|
2012-01-05 06:30:30 +00:00
|
|
|
FILES_${PN} += "${base_libdir}/security/*.so"
|
|
|
|
FILES_${PN}-dbg += "${base_libdir}/security/.debug/*.so"
|
2011-05-27 08:59:09 +00:00
|
|
|
|
|
|
|
BBCLASSEXTEND = "native"
|