ksmbd-tools: update to 3.5.1
[feed/packages.git] / utils / pax-utils / Makefile
1 #
2 # Copyright (C) 2019 Daniel Engberg <daniel.engberg.lists@pyret.net>
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:=pax-utils
11 PKG_VERSION:=1.3.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=https://dev.gentoo.org/~sam/distfiles/app-misc/pax-utils/
16 PKG_HASH:=108362d29668d25cf7b0cadc63b15a4c1cfc0dbc71adc151b33c5fe7dece939a
17
18 PKG_MAINTAINER:=Oskari Rauta <oskari.rauta@gmail.com>
19 PKG_LICENSE:=GPL-2.0-only
20 PKG_LICENSE_FILES:=LICENSE
21
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/meson.mk
24
25 define Package/pax-utils
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=ELF utils for security relevant property checking
29 URL:=https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities
30 DEPENDS:=+libcap
31 endef
32
33 define Package/pax-utils/description
34 A suite of ELF tools to aid auditing systems. Contains various
35 ELF related utils for ELF32, ELF64 binaries useful for displaying
36 PaX and security info on a large groups of binary files.
37 endef
38
39 define Package/pax-utils/config
40 source "$(SOURCE)/Config.in"
41 endef
42
43 MESON_ARGS += \
44 -Dlddtree_implementation=sh \
45 -Duse_seccomp=$(if $(CONFIG_PAX_UTILS_SECCOMP),true,false)
46
47 define Package/pax-utils/install
48 $(INSTALL_DIR) $(1)/usr/bin/
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{dumpelf,lddtree,pspax,scanelf,scanmacho,symtree} $(1)/usr/bin/
50 endef
51
52 $(eval $(call BuildPackage,pax-utils))