libseccomp: remove legacy cruft
[feed/packages.git] / libs / libseccomp / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libseccomp
11 PKG_VERSION:=2.2.0
12 PKG_RELEASE:=1
13 PKG_USE_MIPS16:=0
14
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>
19
20 PKG_INSTALL:=1
21 PKG_LIBTOOL_PATHS:=. lib
22 PKG_CHECK_FORMAT_SECURITY:=0
23
24 include $(INCLUDE_DIR)/package.mk
25
26
27 define Package/libseccomp/Default
28 SUBMENU:=
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=seccomp
32 URL:=https://github.com/seccomp/libseccomp/wiki
33 endef
34
35 define Package/libseccomp/Default/description
36 The libseccomp library provides an easy to use, platform independent, interface
37 to the Linux Kernel's syscall filtering mechanism. The libseccomp API is
38 designed to abstract away the underlying BPF based syscall filter language and
39 present a more conventional function-call based filtering interface that should
40 be familiar to, and easily adopted by, application developers.
41 endef
42
43 define Package/libseccomp
44 $(call Package/libseccomp/Default)
45 TITLE+= (library)
46 DEPENDS+=
47 endef
48
49 define Package/libseccomp/description
50 This package contains the seccomp library.
51 endef
52
53 define Build/Configure
54 $(call Build/Configure/Default)
55 endef
56
57 define Build/InstallDev
58 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
59 $(CP) \
60 $(PKG_INSTALL_DIR)/usr/include/seccomp.h \
61 $(1)/usr/include/
62 $(CP) \
63 $(PKG_INSTALL_DIR)/usr/lib/libseccomp.{a,so*} \
64 $(1)/usr/lib/
65 $(CP) \
66 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libseccomp.pc \
67 $(1)/usr/lib/pkgconfig/
68 endef
69
70 define Package/libseccomp/install
71 $(INSTALL_DIR) $(1)/usr/lib
72 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libseccomp.so.* $(1)/usr/lib/
73 endef
74
75 $(eval $(call BuildPackage,libseccomp))