lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1932B)


      1 #
      2 # Copyright (C) 2014-2015 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.1
     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:=068af8e1bc36fcd4b326ee83875ab4fd
     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 PKG_CONFIG_DEPENDS:= \
     25 	CONFIG_KERNEL_SECCOMP
     26 
     27 include $(INCLUDE_DIR)/package.mk
     28 
     29 
     30 define Package/libseccomp/Default
     31   SUBMENU:=
     32   SECTION:=libs
     33   CATEGORY:=Libraries
     34   TITLE:=seccomp
     35   URL:=https://github.com/seccomp/libseccomp/wiki
     36 endef
     37 
     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.
     44 endef
     45 
     46 define Package/libseccomp
     47 $(call Package/libseccomp/Default)
     48   TITLE+= (library)
     49   DEPENDS+=
     50 endef
     51 
     52 define Package/libseccomp/description
     53  This package contains the seccomp library.
     54 endef
     55 
     56 define Build/InstallDev
     57 	$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
     58 	$(CP) \
     59 		$(PKG_INSTALL_DIR)/usr/include/seccomp.h \
     60 		$(1)/usr/include/
     61 	$(CP) \
     62 		$(PKG_INSTALL_DIR)/usr/lib/libseccomp.{a,so*} \
     63 		$(1)/usr/lib/
     64 	$(CP) \
     65 		$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libseccomp.pc \
     66 		$(1)/usr/lib/pkgconfig/
     67 endef
     68 
     69 define Package/libseccomp/install
     70 	$(INSTALL_DIR) $(1)/usr/lib
     71 	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libseccomp.so.* $(1)/usr/lib/
     72 endef
     73 
     74 $(eval $(call BuildPackage,libseccomp))