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.

77 lines
2.0 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. $(SED) 's,-I$$$${includedir},,g' $(PKG_BUILD_DIR)/configure
  44. $(SED) 's,-L$$$${libdir},,g' $(PKG_BUILD_DIR)/configure
  45. $(call Build/Configure/Default)
  46. endef
  47. define Build/InstallDev
  48. $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
  49. $(CP) \
  50. $(PKG_INSTALL_DIR)/usr/include/seccomp.h \
  51. $(1)/usr/include/
  52. $(CP) \
  53. $(PKG_INSTALL_DIR)/usr/lib/libseccomp.{a,so*} \
  54. $(1)/usr/lib/
  55. $(CP) \
  56. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libseccomp.pc \
  57. $(1)/usr/lib/pkgconfig/
  58. endef
  59. define Package/libseccomp/install
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libseccomp.so.* $(1)/usr/lib/
  62. endef
  63. $(eval $(call BuildPackage,libseccomp))