2015-02-14 12:31:03 +00:00
|
|
|
#
|
2015-05-17 18:10:31 +00:00
|
|
|
# Copyright (C) 2014-2015 OpenWrt.org
|
2015-02-14 12:31:03 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libseccomp
|
2022-11-05 04:29:25 +00:00
|
|
|
PKG_VERSION:=2.5.4
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=2
|
2023-03-23 07:39:01 +00:00
|
|
|
PKG_BUILD_FLAGS:=no-mips16
|
2015-02-14 12:31:03 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://github.com/seccomp/libseccomp/releases/download/v$(PKG_VERSION)/
|
2022-11-05 04:29:25 +00:00
|
|
|
PKG_HASH:=d82902400405cf0068574ef3dc1fe5f5926207543ba1ae6f8e7a1576351dcbdb
|
2020-11-24 00:48:05 +00:00
|
|
|
|
2015-02-14 12:31:03 +00:00
|
|
|
PKG_MAINTAINER:=Nikos Mavrogiannopoulos <nmav@gnutls.org>
|
2020-11-24 00:48:05 +00:00
|
|
|
PKG_LICENSE:=LGPL-2.1-or-later
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
2019-09-19 14:07:09 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:libseccomp_project:libseccomp
|
2015-02-14 12:31:03 +00:00
|
|
|
|
2021-09-19 09:12:02 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2015-02-14 12:31:03 +00:00
|
|
|
PKG_INSTALL:=1
|
2020-11-24 00:48:05 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_BUILD_DEPENDS:=gperf/host
|
2015-02-14 12:31:03 +00:00
|
|
|
PKG_LIBTOOL_PATHS:=. lib
|
|
|
|
|
2015-03-12 17:29:52 +00:00
|
|
|
PKG_CONFIG_DEPENDS:= \
|
|
|
|
CONFIG_KERNEL_SECCOMP
|
|
|
|
|
2015-02-14 12:31:03 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2019-05-15 12:42:47 +00: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
|
2015-02-14 12:31:03 +00: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)
|
|
|
|
endef
|
|
|
|
|
2019-03-15 13:51:19 +00:00
|
|
|
define Package/scmp_sys_resolver
|
|
|
|
$(call Package/libseccomp/Default)
|
|
|
|
TITLE+= scmp_sys_resolver
|
|
|
|
DEPENDS+= libseccomp
|
|
|
|
endef
|
|
|
|
|
2015-02-14 12:31:03 +00:00
|
|
|
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-01-16 22:33:31 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/include/seccomp*.h \
|
2015-02-14 12:31:03 +00: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-03-15 13:51:19 +00: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
|
|
|
|
|
2015-02-14 12:31:03 +00:00
|
|
|
$(eval $(call BuildPackage,libseccomp))
|
2019-03-15 13:51:19 +00:00
|
|
|
$(eval $(call BuildPackage,scmp_sys_resolver))
|