2019-01-27 22:09:20 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.lighttpd.net
|
2018-02-14 22:42:03 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="Fast webserver with minimal memory footprint"
|
2019-01-21 15:00:12 +01:00
|
|
|
TERMUX_PKG_LICENSE="BSD 3-Clause"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-12-15 15:01:46 +01:00
|
|
|
TERMUX_PKG_VERSION=1.4.63
|
2019-01-27 22:09:20 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${TERMUX_PKG_VERSION}.tar.xz
|
2021-12-15 15:01:46 +01:00
|
|
|
TERMUX_PKG_SHA256=2aef7f0102ebf54a1241a1c3ea8976892f8684bfb21697c9fffb8de0e2d6eab9
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-bzip2 --with-openssl --with-pcre --with-zlib"
|
2019-04-14 14:51:46 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libbz2, openssl, pcre, libcrypt, libandroid-glob, zlib"
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="bin/lighttpd-angel"
|
2021-10-13 13:19:08 +02:00
|
|
|
TERMUX_PKG_SERVICE_SCRIPT=("lighttpd" "if [ -f \"$TERMUX_ANDROID_HOME/.lighttpd/lighttpd.conf\" ]; then CONFIG=\"$TERMUX_ANDROID_HOME/.lighttpd/lighttpd.conf\"; else CONFIG=\"$TERMUX_PREFIX/etc/lighttpd/lighttpd.conf\"; fi\nexec lighttpd -D -f \$CONFIG 2>&1")
|
2016-09-04 00:45:08 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_pre_configure() {
|
2019-12-30 01:05:41 +01:00
|
|
|
LDFLAGS="$LDFLAGS -landroid-glob"
|
2016-09-04 00:45:08 +02:00
|
|
|
}
|
2019-12-30 01:05:41 +01:00
|
|
|
|
2020-01-05 22:36:49 +01:00
|
|
|
termux_step_post_make_install() {
|
|
|
|
# Install example config file
|
|
|
|
mkdir -p $TERMUX_PREFIX/etc/lighttpd
|
|
|
|
install -Dm600 $TERMUX_PKG_SRCDIR/doc/config/lighttpd.conf $TERMUX_PREFIX/etc/lighttpd/
|
|
|
|
}
|