contrib/lighttpd/Pkgfile

34 lines
956 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
name=lighttpd
version=1.4.59
release=1
source=(
https://download.${name}.net/${name}/releases-1.4.x/${name}-${version}.tar.xz
${name}.rc ${name}.conf
cgi.conf dirlisting.conf fastcgi.conf userdir.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 "${SRC}"/${name}.rc "${PKG}"/etc/rc.d/${name}
install -d -m 0755 "${PKG}"/etc/${name}
install -D -m 0644 "${SRC}"/*.conf "${PKG}"/etc/${name}/
install -d -m 0755 "${PKG}"/var/log/${name}
install -d -m 0755 "${PKG}"/var/www/${name}/htdocs
}
# s-sh-mode