website-build: serve.sh: remove the need for random temporary directory.

Since we are migrating to haunt and that haunt builds the website in
site/ we also use that.

In addition that also simplifies the lighttpd configuration.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2024-05-19 15:11:24 +02:00
parent 70c92fe77e
commit c61ed26092
Signed by: GNUtoo
GPG Key ID: 5F5DFCC14177E263
3 changed files with 7 additions and 7 deletions

View File

@ -11,3 +11,4 @@
/Makefile.in /Makefile.in
/missing /missing
/website.tar.gz /website.tar.gz
/site/**

View File

@ -1,6 +1,6 @@
server.bind = "localhost" server.bind = "localhost"
server.port = LIGHTTPD_PORT server.port = LIGHTTPD_PORT
server.document-root = "TMPDIR" server.document-root = var.CWD + "/site/"
dir-listing.activate = "enable" dir-listing.activate = "enable"
index-file.names = ( "index.html" ) index-file.names = ( "index.html" )
mimetype.assign = ( mimetype.assign = (

View File

@ -37,13 +37,12 @@ if [ $# -eq 2 ] ; then
lighttpd_port="$2" lighttpd_port="$2"
fi fi
tmpdir="$(mktemp -d)" destdir="site/software/gnuboot/"
mkdir -p "${tmpdir}/software/gnuboot/" mkdir -p "${destdir}"
tar xf "${tarball}" -C "${tmpdir}/software/gnuboot/" tar xf "${tarball}" -C "${destdir}"
sed -e "s#TMPDIR#${tmpdir}#g" \ sed -e "s#LIGHTTPD_PORT#${lighttpd_port}#g" \
-e "s#LIGHTTPD_PORT#${lighttpd_port}#g" \
"${basedir}/lighttpd.conf.tmpl" > \ "${basedir}/lighttpd.conf.tmpl" > \
"${basedir}/lighttpd.conf" "${basedir}/lighttpd.conf"