2011-04-26 16:56:48 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libcap
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2011-12-14 16:15:17 +01:00
|
|
|
LIBCAP_VERSION = 2.22
|
|
|
|
# Until kernel.org is completely back up use debian mirror
|
|
|
|
#LIBCAP_SITE = http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2
|
|
|
|
LIBCAP_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/libc/libcap2
|
|
|
|
LIBCAP_SOURCE = libcap2_$(LIBCAP_VERSION).orig.tar.gz
|
2011-04-26 16:56:48 +02:00
|
|
|
LIBCAP_DEPENDENCIES = host-libcap
|
2012-01-18 11:22:36 +01:00
|
|
|
HOST_LIBCAP_DEPENDENCIES =
|
2011-04-26 16:56:48 +02:00
|
|
|
LIBCAP_INSTALL_STAGING = YES
|
2010-03-02 22:47:13 +01:00
|
|
|
|
|
|
|
define LIBCAP_BUILD_CMDS
|
2011-04-26 16:56:48 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
|
|
|
LIBATTR=no BUILD_CC="$(HOSTCC)" BUILD_CFLAGS="$(HOST_CFLAGS)"
|
2010-03-02 22:47:13 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBCAP_INSTALL_STAGING_CMDS
|
2011-04-26 16:56:48 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) LIBATTR=no DESTDIR=$(STAGING_DIR) \
|
|
|
|
prefix=/usr lib=lib install
|
2010-03-02 22:47:13 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define LIBCAP_INSTALL_TARGET_CMDS
|
2011-04-26 16:56:48 +02:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) LIBATTR=no DESTDIR=$(TARGET_DIR) \
|
|
|
|
prefix=/usr lib=lib install
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/sbin/,capsh getpcaps)
|
2010-03-02 22:47:13 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_LIBCAP_BUILD_CMDS
|
2011-04-26 16:56:48 +02:00
|
|
|
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) LIBATTR=no
|
2010-03-02 22:47:13 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_LIBCAP_INSTALL_CMDS
|
2011-04-26 16:56:48 +02:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) LIBATTR=no DESTDIR=$(HOST_DIR) \
|
|
|
|
prefix=/usr lib=lib install
|
2010-03-02 22:47:13 +01:00
|
|
|
endef
|
|
|
|
|
2011-09-29 21:57:42 +02:00
|
|
|
$(eval $(call GENTARGETS))
|
|
|
|
$(eval $(call GENTARGETS,host))
|