From nobody Fri Sep 1 17:16:29 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rcl7L0JLgz4rp9X; Fri, 1 Sep 2023 17:16:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rcl7K5zBHz3c8x; Fri, 1 Sep 2023 17:16:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693588589; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B9OCfU8a7Ejx/6n6tx7WsYerlAHSvR1Tic+bBuORG1A=; b=b8DjwSVhltVP566nNFwmWAtkPluyFxl1wpyBM1Wwx+Lsc3sfCo5p4F/LsYL5ToNfot7s1T fj86i56gIpZAnKxxrIvNY/arN2aYrZUuVxi2SaUYfeVJs3rSCLRvgcebWbNFwpeW7M3Wk4 30n609tCROaLhvdiAcrc1x6hVxKnMRzy8ANAz5eusDmXwCRVvC0h0SPgw0Z8un/2vedu5x XioACGDqG6/m330KJQwfWAEff1BLrgYOFoBoK6Us6tkL9C3ZYSWxhRkOkoIjR6V15VOY3M A8RKwOr7YDSrvn9tpoq/qbrD/F2lIZjh+9rZr5CLAOBsJFj1OHOHKchMNOOapg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693588589; a=rsa-sha256; cv=none; b=yQpBCR1Xdw1d8z2MEDtULXnegzzCOMtP+JGcrpz2ZakR8BHUTP7gJErSrafvlHUSNpHD6F cTvtEwAJSB2BKad+zezETTkXzFN8gTwZPjtQxyaJ3zMbOhg10WNZh9OQnl3XtqkJ8uDJcj cN5S/tW3tt47GN0LQbE5Z5hWLKvrGotHWYObxFsO9YyW779FEwV2WHPaTziugdEKa5jx8H yh3hoepDr6Nn2bA9yG5de/BfF32C5ognC/wXa/cQ/+5Vk1iqXgpjR/+l4SBr7lKbB5WKI5 alz6Xx+QY/MR8GLUdpsv8DWl/AT7rla423AliBOmAjRBaRGr0ZcWyKTIX/otew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693588589; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B9OCfU8a7Ejx/6n6tx7WsYerlAHSvR1Tic+bBuORG1A=; b=GtNbEacxEGXUCyy94ANHax/5/JBtpodZ3pG4OMUAToQNdaeU7gn8L11kLBhshPef0UenJM U4StPJgRKv7JSPgGEeyWmjGyMnwVI2l+DjaNKKywPWeXDNMS/VyZFlUrlbswLGzX+zSvFM SnkXPn0HAJTPb8kQgSfKcO9Q4FEuDVZpM29kB4n8SV7cl9RhsikjaDMPN1OkD/ncQoVbCZ O/4f0CR9WMHG3tbTZkQKz1iOaDkjFLgGixX3CtR7Pz3MtDHPTZKWNb0UyBptWJimPz3dWx vWtfZbKZR1yV/tkkh1lQMyYh5XPojn7+tiDEvgAgbWpcBhQrpQwVvZAOX3SnIw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Rcl7K54z0z18GR; Fri, 1 Sep 2023 17:16:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 381HGTia005185; Fri, 1 Sep 2023 17:16:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 381HGTqo005182; Fri, 1 Sep 2023 17:16:29 GMT (envelope-from git) Date: Fri, 1 Sep 2023 17:16:29 GMT Message-Id: <202309011716.381HGTqo005182@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: 2cde3efd9099 - main - devel/py-lief: New Port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2cde3efd909901be11505bac4617e88ad1d7a34b Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=2cde3efd909901be11505bac4617e88ad1d7a34b commit 2cde3efd909901be11505bac4617e88ad1d7a34b Author: Neal Nelson AuthorDate: 2023-09-01 16:27:03 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-09-01 17:16:15 +0000 devel/py-lief: New Port The purpose of this project is to provide a cross platform library which can parse, modify and abstract ELF, PE and MachO formats. Main features: - Parsing: LIEF can parse ELF, PE, MachO, OAT, DEX, VDEX, ART and provides a user-friendly API to access to format internals. - Modify: LIEF enables to modify some parts of these formats - Abstract: Three formats have common features like sections, symbols, entry point... LIEF factors them. - API: LIEF can be used in C, C++ and Python WWW: https://github.com/lief-project/lief PR: 257041 --- devel/Makefile | 1 + devel/py-lief/Makefile | 26 ++++++++++++++++++++++++++ devel/py-lief/distinfo | 3 +++ devel/py-lief/pkg-descr | 11 +++++++++++ devel/py-lief/pkg-plist | 4 ++++ 5 files changed, 45 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index b97c13c8680e..902fb8062c75 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4926,6 +4926,7 @@ SUBDIR += py-libversion SUBDIR += py-libvirt SUBDIR += py-libzfs + SUBDIR += py-lief SUBDIR += py-line-profiler SUBDIR += py-linear-tsv SUBDIR += py-linecache2 diff --git a/devel/py-lief/Makefile b/devel/py-lief/Makefile new file mode 100644 index 000000000000..db3d6618072e --- /dev/null +++ b/devel/py-lief/Makefile @@ -0,0 +1,26 @@ +PORTNAME= lief +DISTVERSION= 0.11.5 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= ports@nicandneal.net +COMMENT= Library to instrument executable formats +WWW= https://github.com/lief-project/lief + +LICENSE= APACHE20 + +# Note: cmake is needed to build, but distutils is used directly. +# If USES= cmake is set, the build will not work. +BUILD_DEPENDS= cmake:devel/cmake + +USES= python zip +USE_PYTHON= concurrent distutils + +PY_VER= ${PYTHON_VER:S/.//} +PLIST_SUB= PY_VER=${PY_VER} + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/lief.cpython-${PY_VER}.so + +.include diff --git a/devel/py-lief/distinfo b/devel/py-lief/distinfo new file mode 100644 index 000000000000..77399f747f6f --- /dev/null +++ b/devel/py-lief/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1626076347 +SHA256 (lief-0.11.5.zip) = 932ba495388fb52b4ba056a0b00abe0bda3567ad3ebc6d726be1e87b8be08b3f +SIZE (lief-0.11.5.zip) = 15699277 diff --git a/devel/py-lief/pkg-descr b/devel/py-lief/pkg-descr new file mode 100644 index 000000000000..256a1a34b084 --- /dev/null +++ b/devel/py-lief/pkg-descr @@ -0,0 +1,11 @@ +The purpose of this project is to provide a cross platform library which can +parse, modify and abstract ELF, PE and MachO formats. + +Main features: + +- Parsing: LIEF can parse ELF, PE, MachO, OAT, DEX, VDEX, ART and provides a + user-friendly API to access to format internals. +- Modify: LIEF enables to modify some parts of these formats +- Abstract: Three formats have common features like sections, symbols, entry + point... LIEF factors them. +- API: LIEF can be used in C, C++ and Python diff --git a/devel/py-lief/pkg-plist b/devel/py-lief/pkg-plist new file mode 100644 index 000000000000..ed8f1e24a237 --- /dev/null +++ b/devel/py-lief/pkg-plist @@ -0,0 +1,4 @@ +bin/elf_reader.py +bin/macho_reader.py +bin/pe_reader.py +%%PYTHON_SITELIBDIR%%/lief.cpython-%%PY_VER%%.so