You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2014-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libseccomp
  9. PKG_VERSION:=2.2.1
  10. PKG_RELEASE:=1
  11. PKG_USE_MIPS16:=0
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://github.com/seccomp/libseccomp/releases/download/v$(PKG_VERSION)/
  14. PKG_HASH:=0ba1789f54786c644af54cdffc9fd0dd0a8bb2b2ee153933f658855d2851a740
  15. PKG_MAINTAINER:=Nikos Mavrogiannopoulos <nmav@gnutls.org>
  16. PKG_INSTALL:=1
  17. PKG_LIBTOOL_PATHS:=. lib
  18. PKG_CHECK_FORMAT_SECURITY:=0
  19. PKG_CONFIG_DEPENDS:= \
  20. CONFIG_KERNEL_SECCOMP
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/libseccomp/Default
  23. SUBMENU:=
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. TITLE:=seccomp
  27. URL:=https://github.com/seccomp/libseccomp/wiki
  28. endef
  29. define Package/libseccomp/Default/description
  30. The libseccomp library provides an easy to use, platform independent, interface
  31. to the Linux Kernel's syscall filtering mechanism. The libseccomp API is
  32. designed to abstract away the underlying BPF based syscall filter language and
  33. present a more conventional function-call based filtering interface that should
  34. be familiar to, and easily adopted by, application developers.
  35. endef
  36. define Package/libseccomp
  37. $(call Package/libseccomp/Default)
  38. TITLE+= (library)
  39. DEPENDS+=
  40. endef
  41. define Package/libseccomp/description
  42. This package contains the seccomp library.
  43. endef
  44. define Build/InstallDev
  45. $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/include/seccomp.h \
  48. $(1)/usr/include/
  49. $(CP) \
  50. $(PKG_INSTALL_DIR)/usr/lib/libseccomp.{a,so*} \
  51. $(1)/usr/lib/
  52. $(CP) \
  53. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libseccomp.pc \
  54. $(1)/usr/lib/pkgconfig/
  55. endef
  56. define Package/libseccomp/install
  57. $(INSTALL_DIR) $(1)/usr/lib
  58. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libseccomp.so.* $(1)/usr/lib/
  59. endef
  60. $(eval $(call BuildPackage,libseccomp))