forked from ports/contrib
34 lines
937 B
Plaintext
34 lines
937 B
Plaintext
# Description: Secure, fast, compliant and very flexible web server
|
|
# URL: https://www.lighttpd.net/
|
|
# Maintainer: Steffen Nurpmeso, steffen at sdaoden dot eu
|
|
# Depends on: libpcre lua bzip2 linux-pam openssl zlib zstd
|
|
|
|
name=lighttpd
|
|
version=1.4.63
|
|
release=1
|
|
source=(
|
|
https://download.${name}.net/${name}/releases-1.4.x/${name}-${version}.tar.xz
|
|
${name}.rc ${name}.conf
|
|
)
|
|
|
|
build() {
|
|
cd ${name}-${version}
|
|
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib/${name} \
|
|
--with-openssl --with-pam \
|
|
--with-bzip2 --with-zlib --with-zstd \
|
|
--with-pcre --with-lua
|
|
make
|
|
make DESTDIR="${PKG}" install
|
|
|
|
install -d -m 0755 "${PKG}"/var/lib/${name} "${PKG}"/var/log/${name} \
|
|
"${PKG}"/var/www/${name}/htdocs
|
|
install -D -m 0755 "${SRC}"/${name}.rc "${PKG}"/etc/rc.d/${name}
|
|
install -D -m 0644 "${SRC}"/${name}.conf "${PKG}"/etc/
|
|
|
|
rm -f "${PKG}"/usr/lib/${name}/*.la
|
|
}
|
|
|
|
# s-sh-mode
|