diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -45,7 +45,8 @@ if readlink /sbin/init | grep -q systemd then JWM_INIT=systemd fi -eval PERL_PATH="$(perl -V::installsitelib)" +eval PERL_LIB_PATH="$(perl -V::installsitelib)" +eval PERL_BIN_PATH="$(perl -V::installsitebin)" allargs="$*" while getopts 'c:d:e:i:hm:p:P:' opt @@ -55,7 +56,7 @@ do case $opt in (c) JWM_LOGIN_SCHEME="$OPTARG";; (d) DESTDIR="$OPTARG";; (p) PREFIX="$OPTARG";; - (P) PERL_PATH="$OPTARG";; + (P) PERL_LIB_PATH="$OPTARG";; (i) JWM_INIT="$OPTARG";; (h) t="$(printf '\t')" @@ -69,7 +70,7 @@ usage: $0 configure [options...] -c LOGIN_SCHEME plain {plain,cram_md5} The login scheme (don't use plain unless over TLS) -d DESTDIR / Install root -p PREFIX usr/local {usr,usr/local} Install prefix - -P PATH $PERL_PATH$t$t Perl install path + -P PATH $PERL_LIB_PATH$t$t Perl install path -i INIT $JWM_INIT $t{,systemd} Init system to install service files for END exit @@ -138,7 +139,14 @@ export JWM_MODE export JWM_INIT export DESTDIR export PREFIX -export PERL_PATH +export PERL_LIB_PATH +export PERL_BIN_PATH +export DATADIR="share/jwebmail" +if [ "$PREFIX" = usr ] +then export CONFDIR="../etc" +else export CONFDIR="etc" +fi perl -pe 's/@(\w+)@/$ENV{$1}/ga' lib/JWebmail/Config.pm.in >|lib/JWebmail/Config.pm +perl -pe 's/@(\w+)@/$ENV{$1}/ga' install/jwebmail.service.in >|install/jwebmail.service sh confninja.sh >|build.ninja |