```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
42 lines
1.4 KiB
Bash
42 lines
1.4 KiB
Bash
# Template file for 'lighttpd'
|
|
pkgname=lighttpd
|
|
version=1.4.59
|
|
revision=2
|
|
build_style=meson
|
|
configure_args="-Dwith_brotli=false -Dwith_bzip=false
|
|
-Dwith_fam=false -Dwith_gdbm=true
|
|
-Dwith_geoip=false -Dwith_krb5=true -Dwith_ldap=true -Dwith_libev=true
|
|
-Dwith_libunwind=false -Dwith_lua=true -Dwith_memcached=true
|
|
-Dwith_mysql=false -Dwith_openssl=true -Dwith_pcre=true -Dwith_pgsql=false
|
|
-Dwith_sasl=false -Dwith_webdav_props=true -Dwith_webdav_locks=true
|
|
-Dwith_xattr=true -Dwith_zlib=true -Dwith_zstd=false
|
|
-Dmoduledir=lib/lighttpd/modules"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="gdbm-devel libev-devel libmemcached-devel
|
|
libxml2-devel lua53-devel mit-krb5-devel pcre-devel sqlite-devel"
|
|
checkdepends="perl"
|
|
short_desc="Secure, fast, compliant and very flexible web-server"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://lighttpd.net"
|
|
distfiles="https://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-${version}.tar.xz"
|
|
checksum=fb953db273daef08edb6e202556cae8a3d07eed6081c96bd9903db957d1084d5
|
|
|
|
conf_files="/etc/lighttpd/lighttpd.conf"
|
|
system_accounts="_${pkgname}"
|
|
_lighttpd_homedir="/srv/www/${pkgname}"
|
|
lib32disabled=yes
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
makedepends+=" musl-legacy-compat"
|
|
fi
|
|
|
|
make_dirs="
|
|
/srv/www/lighttpd 0755 _lighttpd _lighttpd
|
|
/var/log/lighttpd 0755 _lighttpd _lighttpd"
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
vsv lighttpd
|
|
vinstall ${FILESDIR}/lighttpd.conf 644 etc/lighttpd
|
|
}
|