coolsnowwolf-packages/libs/libseccomp/Makefile

97 lines
2.6 KiB
Makefile
Raw Normal View History

2018-10-18 16:56:47 +08:00
#
# Copyright (C) 2014-2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libseccomp
PKG_VERSION:=2.5.4
PKG_RELEASE:=$(AUTORELEASE)
2018-10-18 16:56:47 +08:00
PKG_USE_MIPS16:=0
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/seccomp/libseccomp/releases/download/v$(PKG_VERSION)/
PKG_HASH:=d82902400405cf0068574ef3dc1fe5f5926207543ba1ae6f8e7a1576351dcbdb
2021-06-15 17:47:11 +08:00
2018-10-18 16:56:47 +08:00
PKG_MAINTAINER:=Nikos Mavrogiannopoulos <nmav@gnutls.org>
2021-06-15 17:47:11 +08:00
PKG_LICENSE:=LGPL-2.1-or-later
PKG_LICENSE_FILES:=LICENSE
2019-10-14 21:05:21 +08:00
PKG_CPE_ID:=cpe:/a:libseccomp_project:libseccomp
2018-10-18 16:56:47 +08:00
PKG_FIXUP:=autoreconf
2018-10-18 16:56:47 +08:00
PKG_INSTALL:=1
2021-06-15 17:47:11 +08:00
PKG_BUILD_PARALLEL:=1
PKG_BUILD_DEPENDS:=gperf/host
2018-10-18 16:56:47 +08:00
PKG_LIBTOOL_PATHS:=. lib
PKG_CONFIG_DEPENDS:= \
CONFIG_KERNEL_SECCOMP
include $(INCLUDE_DIR)/package.mk
2019-10-14 21:05:21 +08:00
# This is done instead of DEPENDS:=@!arc to avoid a recursive dependency when
# the library is conditionally selected by util/lxc.
define Package/libseccomp/config
depends on !arc
endef
2018-10-18 16:56:47 +08:00
define Package/libseccomp/Default
SUBMENU:=
SECTION:=libs
CATEGORY:=Libraries
TITLE:=seccomp
URL:=https://github.com/seccomp/libseccomp/wiki
endef
define Package/libseccomp/Default/description
The libseccomp library provides an easy to use, platform independent, interface
to the Linux Kernel's syscall filtering mechanism. The libseccomp API is
designed to abstract away the underlying BPF based syscall filter language and
present a more conventional function-call based filtering interface that should
be familiar to, and easily adopted by, application developers.
endef
define Package/libseccomp
$(call Package/libseccomp/Default)
TITLE+= (library)
2019-10-14 21:05:21 +08:00
endef
define Package/scmp_sys_resolver
$(call Package/libseccomp/Default)
TITLE+= scmp_sys_resolver
DEPENDS+= libseccomp
2018-10-18 16:56:47 +08:00
endef
define Package/libseccomp/description
This package contains the seccomp library.
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
$(CP) \
2020-07-08 14:18:52 +08:00
$(PKG_INSTALL_DIR)/usr/include/seccomp*.h \
2018-10-18 16:56:47 +08:00
$(1)/usr/include/
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libseccomp.{a,so*} \
$(1)/usr/lib/
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libseccomp.pc \
$(1)/usr/lib/pkgconfig/
endef
define Package/libseccomp/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libseccomp.so.* $(1)/usr/lib/
endef
2019-10-14 21:05:21 +08:00
define Package/scmp_sys_resolver/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/scmp_sys_resolver $(1)/usr/bin/
endef
2018-10-18 16:56:47 +08:00
$(eval $(call BuildPackage,libseccomp))
2020-07-08 14:18:52 +08:00
$(eval $(call BuildPackage,scmp_sys_resolver))