eja: fix paths

/bin and /lib should be a subdirectories of _EJA_PATH ($PREFIX).

Replaces https://github.com/termux/termux-packages/pull/6069.
This commit is contained in:
Leonid Pliushch 2020-11-25 03:54:10 +02:00
parent 8cc4b06b8c
commit 651b7407cc
No known key found for this signature in database
GPG Key ID: 45F2964132545795
2 changed files with 16 additions and 0 deletions

View File

@ -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=/"

View File

@ -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/'