From 651b7407cc469818eaf972903bced29963b399d3 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Wed, 25 Nov 2020 03:54:10 +0200 Subject: [PATCH] eja: fix paths /bin and /lib should be a subdirectories of _EJA_PATH ($PREFIX). Replaces https://github.com/termux/termux-packages/pull/6069. --- packages/eja/build.sh | 1 + packages/eja/fix-paths.patch | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 packages/eja/fix-paths.patch diff --git a/packages/eja/build.sh b/packages/eja/build.sh index e31438c63..db258d119 100644 --- a/packages/eja/build.sh +++ b/packages/eja/build.sh @@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://github.com/eja/eja TERMUX_PKG_DESCRIPTION="eja micro web server" TERMUX_PKG_LICENSE="GPL-3.0" TERMUX_PKG_VERSION=13.11.20 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://github.com/eja/eja/archive/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=d19a8071d524373bcfceb5dec834546e2c66108593f0bf54ef984d8a0819e050 TERMUX_PKG_EXTRA_MAKE_ARGS="DESTDIR=$TERMUX_PREFIX prefix=/" diff --git a/packages/eja/fix-paths.patch b/packages/eja/fix-paths.patch new file mode 100644 index 000000000..6f49e53a6 --- /dev/null +++ b/packages/eja/fix-paths.patch @@ -0,0 +1,15 @@ +diff -uNr eja-13.11.20/eja.lua eja-13.11.20.mod/eja.lua +--- eja-13.11.20/eja.lua 2020-11-20 12:34:27.000000000 +0200 ++++ eja-13.11.20.mod/eja.lua 2020-11-25 03:53:10.134610701 +0200 +@@ -33,9 +33,9 @@ + end + + eja.path=_eja_path or '/' +- eja.pathBin=eja.pathBin or eja.path..'/usr/bin/' ++ eja.pathBin=eja.pathBin or eja.path..'/bin/' + eja.pathEtc=eja.pathEtc or eja.path..'/etc/eja/' +- eja.pathLib=eja.pathLib or eja.path..'/usr/lib/eja/' ++ eja.pathLib=eja.pathLib or eja.path..'/lib/eja/' + eja.pathVar=eja.pathVar or eja.path..'/var/eja/' + eja.pathTmp=eja.pathTmp or eja.path..'/tmp/' + eja.pathLock=eja.pathLock or eja.path..'/var/lock/'