git: b242d6d26f2b - main - devel/capstone: Fix runtime permissions

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 05 Sep 2023 04:56:30 UTC
The branch main has been updated by bofh:

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

commit b242d6d26f2b3820c9fad44e5f98133c0d3c7b42
Author:     John Hein <jcfyecrayz@liamekaens.com>
AuthorDate: 2023-09-05 04:45:14 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-09-05 04:56:13 +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
---
 devel/capstone/Makefile             |  1 +
 devel/capstone/files/patch-Makefile | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/devel/capstone/Makefile b/devel/capstone/Makefile
index 269ca0241aeb..ef8d174373ce 100644
--- a/devel/capstone/Makefile
+++ b/devel/capstone/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	capstone
 DISTVERSION=	5.0.1
+PORTREVISION=	1
 CATEGORIES=	devel
 
 MAINTAINER=	bofh@FreeBSD.org
diff --git a/devel/capstone/files/patch-Makefile b/devel/capstone/files/patch-Makefile
new file mode 100644
index 000000000000..157051ed79f7
--- /dev/null
+++ b/devel/capstone/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig	2023-08-22 16:03:55 UTC
++++ Makefile
+@@ -503,7 +503,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: