pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/pax-utils devel/pax-utils: import pax-utils-1.3.3.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/822bc51f9ff3
branches:  trunk
changeset: 371657:822bc51f9ff3
user:      fcambus <fcambus%pkgsrc.org@localhost>
date:      Tue Jan 11 15:21:04 2022 +0000

description:
devel/pax-utils: import pax-utils-1.3.3.

pax-utils is a small set of utilities for peforming Q/A (mostly security)
checks on systems (most notably, `scanelf`).  It is focused on the ELF
format, but does include a Mach-O helper too for OS X systems.

While heavily integrated into Gentoo's build system, it can be used on any
distro as it is a generic toolset.

Originally focused only on PaX, it has been expanded to be generally
security focused.  It still has a good number of PaX helpers for people
interested in that.

diffstat:

 devel/pax-utils/DESCR                   |  10 ++++++++++
 devel/pax-utils/Makefile                |  26 ++++++++++++++++++++++++++
 devel/pax-utils/PLIST                   |  14 ++++++++++++++
 devel/pax-utils/distinfo                |   6 ++++++
 devel/pax-utils/patches/patch-porting.h |  15 +++++++++++++++
 5 files changed, 71 insertions(+), 0 deletions(-)

diffs (91 lines):

diff -r be37d3a9e669 -r 822bc51f9ff3 devel/pax-utils/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pax-utils/DESCR     Tue Jan 11 15:21:04 2022 +0000
@@ -0,0 +1,10 @@
+pax-utils is a small set of utilities for peforming Q/A (mostly security)
+checks on systems (most notably, `scanelf`).  It is focused on the ELF
+format, but does include a Mach-O helper too for OS X systems.
+
+While heavily integrated into Gentoo's build system, it can be used on any
+distro as it is a generic toolset.
+
+Originally focused only on PaX, it has been expanded to be generally
+security focused.  It still has a good number of PaX helpers for people
+interested in that.
diff -r be37d3a9e669 -r 822bc51f9ff3 devel/pax-utils/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pax-utils/Makefile  Tue Jan 11 15:21:04 2022 +0000
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2022/01/11 15:21:04 fcambus Exp $
+
+DISTNAME=      pax-utils-1.3.3
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=gentoo/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    fcambus%NetBSD.org@localhost
+HOMEPAGE=      https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities
+COMMENT=       ELF related utils for ELF 32/64 binaries
+LICENSE=       gnu-gpl-v2
+
+USE_TOOLS+=            bash:run gmake
+REPLACE_BASH+=         symtree.sh
+REPLACE_PYTHON+=       lddtree.py
+
+BUILD_DEPENDS+=        xmlto-[0-9]*:../../textproc/xmlto
+DEPENDS+=      ${PYPKGPREFIX}-pyelftools-[0-9]*:../../devel/py-pyelftools
+
+MAKE_FLAGS=    PREFIX=${DESTDIR}${PREFIX} MANDIR=${DESTDIR}${PREFIX}/${PKGMANDIR}
+
+post-build:
+       ${RUN}cd ${WRKSRC}/man && ${GMAKE}
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r be37d3a9e669 -r 822bc51f9ff3 devel/pax-utils/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pax-utils/PLIST     Tue Jan 11 15:21:04 2022 +0000
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1 2022/01/11 15:21:04 fcambus Exp $
+bin/dumpelf
+bin/lddtree
+bin/pspax
+bin/scanelf
+bin/scanmacho
+bin/symtree
+man/man1/dumpelf.1
+man/man1/pspax.1
+man/man1/scanelf.1
+man/man1/scanmacho.1
+share/doc/pax-utils/BUGS
+share/doc/pax-utils/README.md
+share/doc/pax-utils/TODO
diff -r be37d3a9e669 -r 822bc51f9ff3 devel/pax-utils/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pax-utils/distinfo  Tue Jan 11 15:21:04 2022 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/01/11 15:21:04 fcambus Exp $
+
+BLAKE2s (pax-utils-1.3.3.tar.gz) = ae54acd4ee2bfcd13bca61fae006338106e120aeb8bcac1eb4a0ceddf395c105
+SHA512 (pax-utils-1.3.3.tar.gz) = 219d9492b0ba17cbaea36b445947e1dbf60ca6ddcf52e289e0baac54a34fd55a6736d9856d47dbf2fe465062b3d98254356e84aed150f6b96987581016be334e
+Size (pax-utils-1.3.3.tar.gz) = 152086 bytes
+SHA1 (patch-porting.h) = 4967398b589a09f5e0a55dc09d690eebae1a926b
diff -r be37d3a9e669 -r 822bc51f9ff3 devel/pax-utils/patches/patch-porting.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pax-utils/patches/patch-porting.h   Tue Jan 11 15:21:04 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-porting.h,v 1.1 2022/01/11 15:21:04 fcambus Exp $
+
+Don't include alloca.h on NetBSD.
+
+--- porting.h.orig     2021-07-22 21:23:46.000000000 +0000
++++ porting.h
+@@ -41,7 +41,7 @@
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include "elf.h"
+-#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
++#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
+ # include <alloca.h>
+ #endif
+ #if defined(__linux__)



Home | Main Index | Thread Index | Old Index