install + build fixes

This commit is contained in:
Lily Tsuru 2024-03-25 05:47:19 -04:00
parent 35b09db127
commit 69e2234828
4 changed files with 6 additions and 5 deletions

2
build
View file

@ -90,7 +90,7 @@ pushd $TOP/sources/nginx
# needed for lua-nginx-module
export LUAJIT_INC="$PREFIX/include/luajit-2.1"
export LUAJIT_LIB="$PREFIX/nginx/lib"
export LUAJIT_LIB="$PREFIX/lib"
# TODO: see ./install for --sbin-path
./auto/configure \

View file

@ -15,9 +15,9 @@ sudo systemctl stop nginx-cn
# strip binary of unneeded fluff (saving the original)
cp nginx/objs/nginx nginx/objs/nginx.unstripped
strip nginx/objs/nginx
# FIXME: /opt/nginx/bin would probably be less annoying tbh..
sudo cp nginx/objs/nginx /opt/nginx/usr/bin
sudo cp nginx/objs/nginx /opt/nginx/bin
sudo systemctl start nginx-cn
#sudo make install
echo "Binary installed. You should probably copy the sample configuration to /opt/nginx/etc/nginx."
popd

View file

@ -10,8 +10,9 @@ PrivateDevices=yes
PrivateTmp=true
SyslogLevel=err
ExecStart=/opt/nginx/usr/bin/nginx
ExecReload=/opt/nginx/usr/bin/nginx -s reload
ExecStart=/opt/nginx/bin/nginx
ExecReload=/opt/nginx/bin/nginx -s reload
Environment=LD_LIBRARY_PATH=/opt/nginx/lib
Restart=on-failure
KillMode=mixed
KillSignal=SIGQUIT