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.

75 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2005-2010 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.0
  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_MD5SUM:=e9509301a1fc024cd10127ac1f31792a
  15. PKG_MAINTAINER:=Nikos Mavrogiannopoulos <nmav@gnutls.org>
  16. PKG_INSTALL:=1
  17. PKG_LIBTOOL_PATHS:=. lib
  18. PKG_CHECK_FORMAT_SECURITY:=0
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libseccomp/Default
  21. SUBMENU:=
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=seccomp
  25. URL:=https://github.com/seccomp/libseccomp/wiki
  26. endef
  27. define Package/libseccomp/Default/description
  28. The libseccomp library provides an easy to use, platform independent, interface
  29. to the Linux Kernel's syscall filtering mechanism. The libseccomp API is
  30. designed to abstract away the underlying BPF based syscall filter language and
  31. present a more conventional function-call based filtering interface that should
  32. be familiar to, and easily adopted by, application developers.
  33. endef
  34. define Package/libseccomp
  35. $(call Package/libseccomp/Default)
  36. TITLE+= (library)
  37. DEPENDS+=
  38. endef
  39. define Package/libseccomp/description
  40. This package contains the seccomp library.
  41. endef
  42. define Build/Configure
  43. $(call Build/Configure/Default)
  44. endef
  45. define Build/InstallDev
  46. $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/include/seccomp.h \
  49. $(1)/usr/include/
  50. $(CP) \
  51. $(PKG_INSTALL_DIR)/usr/lib/libseccomp.{a,so*} \
  52. $(1)/usr/lib/
  53. $(CP) \
  54. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libseccomp.pc \
  55. $(1)/usr/lib/pkgconfig/
  56. endef
  57. define Package/libseccomp/install
  58. $(INSTALL_DIR) $(1)/usr/lib
  59. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libseccomp.so.* $(1)/usr/lib/
  60. endef
  61. $(eval $(call BuildPackage,libseccomp))