git: 33b24a1dc361 - main - sysutils/android-ota-payload-extractor: New port

From: Kurt Jaeger <pi_at_FreeBSD.org>
Date: Wed, 24 Apr 2024 17:16:05 UTC
The branch main has been updated by pi:

URL: https://cgit.FreeBSD.org/ports/commit/?id=33b24a1dc361162e652db8772badb3897ec00789

commit 33b24a1dc361162e652db8772badb3897ec00789
Author:     Yusuf Yaman <nxjosephofficial@protonmail.com>
AuthorDate: 2024-04-24 17:13:31 +0000
Commit:     Kurt Jaeger <pi@FreeBSD.org>
CommitDate: 2024-04-24 17:15:53 +0000

    sysutils/android-ota-payload-extractor: New port
    
    Android OTA payload extractor written in Go
    
    A fast & natively cross-platform Android OTA payload extractor written
    in Go. Extracting images from Android OTA packages is very useful
    for various purposes. For example, patching the boot image to
    install Magisk without TWRP.
    
    PR:             278483
    WWW:            https://github.com/tobyxdd/android-ota-payload-extractor
    Author:         Yusuf Yaman <nxjosephofficial@protonmail.com>
---
 sysutils/Makefile                                |  1 +
 sysutils/android-ota-payload-extractor/Makefile  | 24 ++++++++++++++++++++++++
 sysutils/android-ota-payload-extractor/distinfo  |  7 +++++++
 sysutils/android-ota-payload-extractor/pkg-descr |  3 +++
 4 files changed, 35 insertions(+)

diff --git a/sysutils/Makefile b/sysutils/Makefile
index 091f0d401915..13bcb4ca65ca 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -39,6 +39,7 @@
     SUBDIR += and
     SUBDIR += android-file-transfer
     SUBDIR += android-file-transfer-qt5
+    SUBDIR += android-ota-payload-extractor
     SUBDIR += angrysearch
     SUBDIR += ansible
     SUBDIR += ansible-iocage
diff --git a/sysutils/android-ota-payload-extractor/Makefile b/sysutils/android-ota-payload-extractor/Makefile
new file mode 100644
index 000000000000..b3c07d664720
--- /dev/null
+++ b/sysutils/android-ota-payload-extractor/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	android-ota-payload-extractor
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.1
+CATEGORIES=	sysutils
+
+MAINTAINER=	nxjoseph@protonmail.com
+COMMENT=	Android OTA payload extractor written in Go
+WWW=		https://github.com/tobyxdd/android-ota-payload-extractor
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:modules
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	tobyxdd
+GH_TUPLE=	golang:protobuf:v1.3.4:golang_protobuf/vendor/github.com/golang/protobuf \
+		xi2:xz:48954b6210f8:xi2_xz/vendor/github.com/xi2/xz
+
+GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
+
+PLIST_FILES=	bin/android-ota-payload-extractor
+
+.include <bsd.port.mk>
diff --git a/sysutils/android-ota-payload-extractor/distinfo b/sysutils/android-ota-payload-extractor/distinfo
new file mode 100644
index 000000000000..35ab8952047e
--- /dev/null
+++ b/sysutils/android-ota-payload-extractor/distinfo
@@ -0,0 +1,7 @@
+TIMESTAMP = 1713623449
+SHA256 (tobyxdd-android-ota-payload-extractor-v1.1_GH0.tar.gz) = ba02292de5ef8e1c7a881e7a04b38d137b87c056cffdb47e3d2e724ba4e13d62
+SIZE (tobyxdd-android-ota-payload-extractor-v1.1_GH0.tar.gz) = 463843
+SHA256 (golang-protobuf-v1.3.4_GH0.tar.gz) = 5e4279eb197ff7271cb06ae97a16f721d0fd6962ff2d2560831309c0900e72c4
+SIZE (golang-protobuf-v1.3.4_GH0.tar.gz) = 315552
+SHA256 (xi2-xz-48954b6210f8_GH0.tar.gz) = 1ef05b11f53098ab157f5848bdf2f585a38af0db15822ea0691e7f51587a4ce3
+SIZE (xi2-xz-48954b6210f8_GH0.tar.gz) = 1135342
diff --git a/sysutils/android-ota-payload-extractor/pkg-descr b/sysutils/android-ota-payload-extractor/pkg-descr
new file mode 100644
index 000000000000..9b573fa1c62c
--- /dev/null
+++ b/sysutils/android-ota-payload-extractor/pkg-descr
@@ -0,0 +1,3 @@
+A fast & natively cross-platform Android OTA payload extractor written in Go.
+Extracting images from Android OTA packages is very useful for various purposes.
+For example, patching the boot image to install Magisk without TWRP.