summaryrefslogtreecommitdiff
path: root/Ports/stress-ng
diff options
context:
space:
mode:
Diffstat (limited to 'Ports/stress-ng')
-rwxr-xr-xPorts/stress-ng/package.sh1
-rw-r--r--Ports/stress-ng/patches/install-prefix.patch18
2 files changed, 19 insertions, 0 deletions
diff --git a/Ports/stress-ng/package.sh b/Ports/stress-ng/package.sh
index 0a9257410d..22b260cabc 100755
--- a/Ports/stress-ng/package.sh
+++ b/Ports/stress-ng/package.sh
@@ -7,4 +7,5 @@ depends=zlib
pre_configure() {
export CFLAGS="-I${SERENITY_BUILD_DIR}/Root/usr/local/include"
export LDFLAGS="-L${SERENITY_BUILD_DIR}/Root/usr/local/lib -lzlib"
+
}
diff --git a/Ports/stress-ng/patches/install-prefix.patch b/Ports/stress-ng/patches/install-prefix.patch
new file mode 100644
index 0000000000..dc1be665e0
--- /dev/null
+++ b/Ports/stress-ng/patches/install-prefix.patch
@@ -0,0 +1,18 @@
+diff -Naur stress-ng-0.11.23/Makefile stress-ng-0.11.23.serenity/Makefile
+--- stress-ng-0.11.23/Makefile 2021-04-16 00:30:33.161310251 +0200
++++ stress-ng-0.11.23.serenity/Makefile 2021-04-16 00:33:59.731692012 +0200
+@@ -53,10 +53,10 @@
+ CFLAGS += -DBUILD_STATIC
+ endif
+
+-BINDIR=/usr/bin
+-MANDIR=/usr/share/man/man1
+-JOBDIR=/usr/share/stress-ng/example-jobs
+-BASHDIR=/usr/share/bash-completion/completions
++BINDIR=/usr/local/bin
++MANDIR=/usr/local/share/man/man1
++JOBDIR=/usr/local/share/stress-ng/example-jobs
++BASHDIR=/usr/local/share/bash-completion/completions
+
+ #
+ # Stressors