0c4cf012fa
/usr/lib/libcap.so.* was installed via "install -D" but libcap.so.2 is a symlink so it was dereferenced. Also update the buildsystem patch so that the shared lib is +X. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
29 lines
946 B
Makefile
29 lines
946 B
Makefile
LIBCAP_VERSION=2.19
|
|
LIBCAP_SOURCE=libcap-$(LIBCAP_VERSION).tar.bz2
|
|
LIBCAP_SITE=http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/
|
|
LIBCAP_INSTALL_STAGING=YES
|
|
|
|
define LIBCAP_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) LIBATTR=no
|
|
endef
|
|
|
|
define LIBCAP_INSTALL_STAGING_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) LIBATTR=no DESTDIR=$(STAGING_DIR) prefix=/usr lib=lib install
|
|
endef
|
|
|
|
define LIBCAP_INSTALL_TARGET_CMDS
|
|
$(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)
|
|
endef
|
|
|
|
define HOST_LIBCAP_BUILD_CMDS
|
|
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) LIBATTR=no
|
|
endef
|
|
|
|
define HOST_LIBCAP_INSTALL_CMDS
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) LIBATTR=no DESTDIR=$(HOST_DIR) prefix=/usr lib=lib install
|
|
endef
|
|
|
|
$(eval $(call GENTARGETS,package,libcap))
|
|
$(eval $(call GENTARGETS,package,libcap,host))
|