From de97a04c2950f132fefda23b5ded980f123279d6 Mon Sep 17 00:00:00 2001 From: khorben Date: Sat, 29 May 2021 23:23:42 +0000 Subject: [PATCH] libpe: package version 0.81 libpe is the PE library used by pev - the PE file toolkit purely written in C and available to many platforms. The features include: * Support for both 32 and 64-bits PE files. * ssdeep support (built-in libfuzzy). * Disassemble support (built-in libudis86). * Imphash support. * Crypographic digests calculation (using OpeenSSL). --- security/libpe/DESCR | 8 ++++++++ security/libpe/Makefile | 28 ++++++++++++++++++++++++++++ security/libpe/PLIST | 22 ++++++++++++++++++++++ security/libpe/buildlink3.mk | 16 ++++++++++++++++ security/libpe/distinfo | 6 ++++++ 5 files changed, 80 insertions(+) create mode 100644 security/libpe/DESCR create mode 100644 security/libpe/Makefile create mode 100644 security/libpe/PLIST create mode 100644 security/libpe/buildlink3.mk create mode 100644 security/libpe/distinfo diff --git a/security/libpe/DESCR b/security/libpe/DESCR new file mode 100644 index 000000000000..63bbb45ff975 --- /dev/null +++ b/security/libpe/DESCR @@ -0,0 +1,8 @@ +libpe is the PE library used by pev - the PE file toolkit purely written in C +and available to many platforms. The features include: + + * Support for both 32 and 64-bits PE files. + * ssdeep support (built-in libfuzzy). + * Disassemble support (built-in libudis86). + * Imphash support. + * Crypographic digests calculation (using OpeenSSL). diff --git a/security/libpe/Makefile b/security/libpe/Makefile new file mode 100644 index 000000000000..10eb11531e0f --- /dev/null +++ b/security/libpe/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1 2021/05/29 23:23:42 khorben Exp $ + +DISTNAME= ${GITHUB_PROJECT}-0.81 +CATEGORIES= security +MASTER_SITES= ${MASTER_SITE_GITHUB:=merces/} +GITHUB_PROJECT= libpe +GITHUB_TAG= ce39b127328e3863e08163962f7ecc768eb2555e + +MAINTAINER= khorben@defora.org +HOMEPAGE= https://pev.sourceforge.io/ +COMMENT= The PE library used by pev - the PE file toolkit +LICENSE= gnu-lgpl-v3 + +USE_TOOLS+= gmake + +MAKE_FLAGS+= DESTDIR=${DESTDIR} +MAKE_FLAGS+= prefix=${PREFIX} + +INSTALLATION_DIRS= include/libpe + +post-install: + for include in ${WRKSRC}/include/libpe/*.h; do \ + ${INSTALL_DATA} $${include} ${DESTDIR}${PREFIX}/include/libpe; \ + done + +.include "../../devel/pcre/buildlink3.mk" +.include "../../security/openssl/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/security/libpe/PLIST b/security/libpe/PLIST new file mode 100644 index 000000000000..25ae73d586fb --- /dev/null +++ b/security/libpe/PLIST @@ -0,0 +1,22 @@ +@comment $NetBSD: PLIST,v 1.1 2021/05/29 23:23:42 khorben Exp $ +include/libpe/dir_import.h +include/libpe/dir_resources.h +include/libpe/dir_security.h +include/libpe/directories.h +include/libpe/error.h +include/libpe/exports.h +include/libpe/hashes.h +include/libpe/hdr_coff.h +include/libpe/hdr_dos.h +include/libpe/hdr_optional.h +include/libpe/imports.h +include/libpe/macros.h +include/libpe/ordlookup.h +include/libpe/pe.h +include/libpe/resources.h +include/libpe/sections.h +include/libpe/utils.h +include/libpe/utlist.h +lib/libpe.so +lib/libpe.so.1 +lib/libpe.so.1.0 diff --git a/security/libpe/buildlink3.mk b/security/libpe/buildlink3.mk new file mode 100644 index 000000000000..133f6b1c8592 --- /dev/null +++ b/security/libpe/buildlink3.mk @@ -0,0 +1,16 @@ +# $NetBSD: buildlink3.mk,v 1.1 2021/05/29 23:23:42 khorben Exp $ + +BUILDLINK_TREE+= libpe + +.if !defined(LIBPE_BUILDLINK3_MK) +LIBPE_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.libpe+= libpe>=0.81 +BUILDLINK_ABI_DEPENDS.libpe+= libpe>=0.81 +BUILDLINK_PKGSRCDIR.libpe?= ../../security/libpe + +.include "../../devel/pcre/buildlink3.mk" +.include "../../security/openssl/buildlink3.mk" +.endif # LIBPE_BUILDLINK3_MK + +BUILDLINK_TREE+= -libpe diff --git a/security/libpe/distinfo b/security/libpe/distinfo new file mode 100644 index 000000000000..0f4689735a7b --- /dev/null +++ b/security/libpe/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2021/05/29 23:23:42 khorben Exp $ + +SHA1 (libpe-0.81-ce39b127328e3863e08163962f7ecc768eb2555e.tar.gz) = 6133ae26c435774639c378f5c6d25018a9513878 +RMD160 (libpe-0.81-ce39b127328e3863e08163962f7ecc768eb2555e.tar.gz) = 242869de4af6d7a222fbce1b38938e98382fec48 +SHA512 (libpe-0.81-ce39b127328e3863e08163962f7ecc768eb2555e.tar.gz) = 3d05f896c710e2daffe34503409d9a2201d86fa14dad722aa14c23bb84cc88e45ff38a8e2746766f194e8b9b54bb9b07ae64b5bf7d8fd928db27fa895ea101c2 +Size (libpe-0.81-ce39b127328e3863e08163962f7ecc768eb2555e.tar.gz) = 123068 bytes