diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-04-09 16:16:44 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-04-09 16:16:44 +0200 |
commit | 6bb35a38c244b20bbd6e85fd16f69ff2c4f0ed72 (patch) | |
tree | 432513fc67dcff844ecf5c48f38bdcf1a9fe3523 /package/libcap/libcap.mk | |
parent | b6ebab842dbb0581526f907bf5b39cad0ac1f756 (diff) | |
parent | 0b79c5022d32b15180a18087a0fba5a2f1af5cc7 (diff) |
Merge branch 'fs-cleanup' of git://git.busybox.net/~tpetazzoni/git/buildroot
Diffstat (limited to 'package/libcap/libcap.mk')
-rw-r--r-- | package/libcap/libcap.mk | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/package/libcap/libcap.mk b/package/libcap/libcap.mk new file mode 100644 index 000000000..3ea5e51aa --- /dev/null +++ b/package/libcap/libcap.mk @@ -0,0 +1,27 @@ +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) install +endef + +define LIBCAP_INSTALL_TARGET_CMDS + install -D $(STAGING_DIR)/usr/lib/libcap.so.* $(TARGET_DIR)/usr/lib +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) install +endef + +$(eval $(call GENTARGETS,package,libcap)) +$(eval $(call GENTARGETS,package,libcap,host)) |