2 # Copyright (C) 2005-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=https
://github.com
/seccomp
/libseccomp
/releases
/download
/v
$(PKG_VERSION
)/
17 PKG_MD5SUM
:=e9509301a1fc024cd10127ac1f31792a
18 PKG_MAINTAINER
:=Nikos Mavrogiannopoulos
<nmav@gnutls.org
>
21 PKG_LIBTOOL_PATHS
:=. lib
22 PKG_CHECK_FORMAT_SECURITY
:=0
24 PKG_CONFIG_DEPENDS
:= \
27 include $(INCLUDE_DIR
)/package.mk
30 define Package
/libseccomp
/Default
35 URL
:=https
://github.com
/seccomp
/libseccomp
/wiki
38 define Package
/libseccomp
/Default
/description
39 The libseccomp library provides an easy to use
, platform independent
, interface
40 to the Linux Kernel
's syscall filtering mechanism. The libseccomp API is
41 designed to abstract away the underlying BPF based syscall filter language and
42 present a more conventional function-call based filtering interface that should
43 be familiar to, and easily adopted by, application developers.
46 define Package/libseccomp
47 $(call Package/libseccomp/Default)
52 define Package/libseccomp/description
53 This package contains the seccomp library.
56 define Build/InstallDev
57 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
59 $(PKG_INSTALL_DIR)/usr/include/seccomp.h \
62 $(PKG_INSTALL_DIR)/usr/lib/libseccomp.{a,so*} \
65 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libseccomp.pc \
66 $(1)/usr/lib/pkgconfig/
69 define Package/libseccomp/install
70 $(INSTALL_DIR) $(1)/usr/lib
71 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libseccomp.so.* $(1)/usr/lib/
74 $(eval $(call BuildPackage,libseccomp))