mpc: update to 0.35
[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 PKG_CPE_ID:=cpe:/a:gentoo:pax-utils
22
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/meson.mk
25
26 define Package/pax-utils
27 SECTION:=utils
28 CATEGORY:=Utilities
29 TITLE:=ELF utils for security relevant property checking
30 URL:=https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities
31 DEPENDS:=+libcap
32 endef
33
34 define Package/pax-utils/description
35 A suite of ELF tools to aid auditing systems. Contains various
36 ELF related utils for ELF32, ELF64 binaries useful for displaying
37 PaX and security info on a large groups of binary files.
38 endef
39
40 define Package/pax-utils/config
41 source "$(SOURCE)/Config.in"
42 endef
43
44 MESON_ARGS += \
45 -Dlddtree_implementation=sh \
46 -Duse_seccomp=$(if $(CONFIG_PAX_UTILS_SECCOMP),true,false)
47
48 define Package/pax-utils/install
49 $(INSTALL_DIR) $(1)/usr/bin/
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{dumpelf,lddtree,pspax,scanelf,scanmacho,symtree} $(1)/usr/bin/
51 endef
52
53 $(eval $(call BuildPackage,pax-utils))