git: 5cc34cf26655 - main - devel/capstone: Fix runtime permissions

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 24 Sep 2023 10:40:36 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5cc34cf266556ddeed567f809bc953d12f79c7f3

commit 5cc34cf266556ddeed567f809bc953d12f79c7f3
Author:     John Hein <jcfyecrayz@liamekaens.com>
AuthorDate: 2023-09-24 10:37:50 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-09-24 10:40:23 +0000

    devel/capstone: Fix runtime permissions
    
    bin/cstool is installed with 0644 perissions instead of 0755 which gives
    permission denied error. This patch fixes this.
    
    PR:             273570
    Approved by:    maintainer-timeout
---
 devel/capstone4/Makefile             |  1 +
 devel/capstone4/files/patch-Makefile | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/devel/capstone4/Makefile b/devel/capstone4/Makefile
index 08b5f2321050..89145cf731c8 100644
--- a/devel/capstone4/Makefile
+++ b/devel/capstone4/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	capstone
 PORTVERSION=	4.0.2
+PORTREVISION=	1
 CATEGORIES=	devel
 PKGNAMESUFFIX=	4
 
diff --git a/devel/capstone4/files/patch-Makefile b/devel/capstone4/files/patch-Makefile
new file mode 100644
index 000000000000..90a6a7cebf29
--- /dev/null
+++ b/devel/capstone4/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig	2020-05-08 10:03:30 UTC
++++ Makefile
+@@ -419,7 +419,7 @@ endif
+ 	$(INSTALL_DATA) $(PKGCFGF) $(PKGCFGDIR)
+ ifeq (,$(findstring yes,$(CAPSTONE_BUILD_CORE_ONLY)))
+ 	mkdir -p $(BINDIR)
+-	$(INSTALL_LIB) cstool/cstool $(BINDIR)
++	$(INSTALL_BIN) cstool/cstool $(BINDIR)
+ endif
+ 
+ uninstall: