!41 Update to 1.4.72
From: @lyn1001 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
ce545e4205
@ -7,7 +7,7 @@
|
|||||||
-var.server_root = "/srv/www"
|
-var.server_root = "/srv/www"
|
||||||
-var.state_dir = "/run"
|
-var.state_dir = "/run"
|
||||||
+var.server_root = "/var/www"
|
+var.server_root = "/var/www"
|
||||||
+var.state_dir = "/var/run"
|
+var.state_dir = "/run/lighttpd"
|
||||||
var.home_dir = "/var/lib/lighttpd"
|
var.home_dir = "/var/lib/lighttpd"
|
||||||
var.conf_dir = "/etc/lighttpd"
|
var.conf_dir = "/etc/lighttpd"
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
BIN
lighttpd-1.4.72.tar.xz
Normal file
BIN
lighttpd-1.4.72.tar.xz
Normal file
Binary file not shown.
114
lighttpd.init
114
lighttpd.init
@ -1,114 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# lighttpd Lightning fast webserver with light system requirements
|
|
||||||
#
|
|
||||||
# chkconfig: - 85 15
|
|
||||||
# description: Secure, fast, compliant and very flexible web-server which has \
|
|
||||||
# been optimized for high-performance environments. It has a \
|
|
||||||
# very low memory footprint compared to other web servers and \
|
|
||||||
# takes care of cpu-load.
|
|
||||||
|
|
||||||
### BEGIN INIT INFO
|
|
||||||
# Provides: httpd
|
|
||||||
# Required-Start: $local_fs $network
|
|
||||||
# Required-Stop: $local_fs $network
|
|
||||||
# Should-Start: $named
|
|
||||||
# Should-Stop: $named
|
|
||||||
# Default-Start:
|
|
||||||
# Default-Stop: 0 1 2 3 4 5 6
|
|
||||||
# Short-Description: Lightning fast webserver with light system requirements
|
|
||||||
# Description: Secure, fast, compliant and very flexible web-server which
|
|
||||||
# has been optimized for high-performance environments. It
|
|
||||||
# has a very low memory footprint compared to other web
|
|
||||||
# servers and takes care of cpu-load.
|
|
||||||
### END INIT INFO
|
|
||||||
|
|
||||||
# Source function library.
|
|
||||||
. /etc/rc.d/init.d/functions
|
|
||||||
|
|
||||||
exec="/usr/sbin/lighttpd"
|
|
||||||
prog="lighttpd"
|
|
||||||
config="/etc/lighttpd/lighttpd.conf"
|
|
||||||
|
|
||||||
[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
|
|
||||||
|
|
||||||
lockfile=/var/lock/subsys/$prog
|
|
||||||
|
|
||||||
start() {
|
|
||||||
[ -x $exec ] || exit 5
|
|
||||||
[ -f $config ] || exit 6
|
|
||||||
echo -n $"Starting $prog: "
|
|
||||||
daemon $exec -f $config
|
|
||||||
retval=$?
|
|
||||||
echo
|
|
||||||
[ $retval -eq 0 ] && touch $lockfile
|
|
||||||
return $retval
|
|
||||||
}
|
|
||||||
|
|
||||||
stop() {
|
|
||||||
echo -n $"Stopping $prog: "
|
|
||||||
killproc $prog
|
|
||||||
retval=$?
|
|
||||||
echo
|
|
||||||
[ $retval -eq 0 ] && rm -f $lockfile
|
|
||||||
return $retval
|
|
||||||
}
|
|
||||||
|
|
||||||
restart() {
|
|
||||||
stop
|
|
||||||
start
|
|
||||||
}
|
|
||||||
|
|
||||||
reload() {
|
|
||||||
echo -n $"Reloading $prog: "
|
|
||||||
killproc $prog -USR1
|
|
||||||
retval=$?
|
|
||||||
echo
|
|
||||||
return $retval
|
|
||||||
}
|
|
||||||
|
|
||||||
force_reload() {
|
|
||||||
restart
|
|
||||||
}
|
|
||||||
|
|
||||||
rh_status() {
|
|
||||||
status $prog
|
|
||||||
}
|
|
||||||
|
|
||||||
rh_status_q() {
|
|
||||||
rh_status &>/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
start)
|
|
||||||
rh_status_q && exit 0
|
|
||||||
$1
|
|
||||||
;;
|
|
||||||
stop)
|
|
||||||
rh_status_q || exit 0
|
|
||||||
$1
|
|
||||||
;;
|
|
||||||
restart)
|
|
||||||
$1
|
|
||||||
;;
|
|
||||||
reload)
|
|
||||||
rh_status_q || exit 7
|
|
||||||
$1
|
|
||||||
;;
|
|
||||||
force-reload)
|
|
||||||
force_reload
|
|
||||||
;;
|
|
||||||
status)
|
|
||||||
rh_status
|
|
||||||
;;
|
|
||||||
condrestart|try-restart)
|
|
||||||
rh_status_q || exit 0
|
|
||||||
restart
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
|
|
||||||
exit 2
|
|
||||||
esac
|
|
||||||
exit $?
|
|
||||||
|
|
||||||
@ -3,10 +3,12 @@ Description=Lightning Fast Webserver With Light System Requirements
|
|||||||
After=syslog.target network.target
|
After=syslog.target network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
PIDFile=/var/run/lighttpd.pid
|
PIDFile=/run/lighttpd.pid
|
||||||
EnvironmentFile=-/etc/sysconfig/lighttpd
|
EnvironmentFile=-/etc/sysconfig/lighttpd
|
||||||
|
ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf
|
||||||
ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
|
ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
|
||||||
ExecReload=/bin/kill -USR1 $MAINPID
|
ExecReload=/bin/kill -USR1 $MAINPID
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
460
lighttpd.spec
460
lighttpd.spec
@ -1,57 +1,59 @@
|
|||||||
%define webroot /var/www/lighttpd
|
%define webroot /var/www/lighttpd
|
||||||
%global _hardened_build 1
|
|
||||||
%define confswitch() %{expand:%%{?with_%{1}:--with-%{1}}%%{!?with_%{1}:--without-%{1}}}
|
%define confswitch() %{expand:%%{?with_%{1}:--with-%{1}}%%{!?with_%{1}:--without-%{1}}}
|
||||||
%bcond_without mysql
|
|
||||||
%bcond_without ldap
|
|
||||||
%bcond_without attr
|
%bcond_without attr
|
||||||
%bcond_without openssl
|
%bcond_with pcre
|
||||||
%bcond_without kerberos5
|
%bcond_without pcre2
|
||||||
%bcond_without pcre
|
%bcond_without nettle
|
||||||
%bcond_with fam
|
%bcond_with unwind
|
||||||
%bcond_without lua
|
%bcond_without lua
|
||||||
|
%bcond_without brotli
|
||||||
|
%bcond_with bzip2
|
||||||
|
%bcond_without zlib
|
||||||
|
%bcond_without zstd
|
||||||
|
%bcond_without maxminddb
|
||||||
|
%bcond_without dbi
|
||||||
|
%bcond_without ldap
|
||||||
|
%bcond_without mysql
|
||||||
|
%bcond_without pgsql
|
||||||
%bcond_without krb5
|
%bcond_without krb5
|
||||||
%bcond_without pam
|
%bcond_without pam
|
||||||
%bcond_with webdavprops
|
%bcond_without sasl
|
||||||
%bcond_with webdavlocks
|
%bcond_without gnutls
|
||||||
%bcond_without gdbm
|
%bcond_with mbedtls
|
||||||
%bcond_with memcache
|
%bcond_without nss
|
||||||
|
%bcond_without openssl
|
||||||
|
%bcond_without webdavprops
|
||||||
|
%bcond_without webdavlocks
|
||||||
%bcond_without tmpfiles
|
%bcond_without tmpfiles
|
||||||
%bcond_without systemd
|
|
||||||
Summary: Lightning fast webserver with light system requirements
|
Summary: Lightning fast webserver with light system requirements
|
||||||
Name: lighttpd
|
Name: lighttpd
|
||||||
Version: 1.4.67
|
Version: 1.4.72
|
||||||
Release: 3
|
Release: 1
|
||||||
License: BSD-3-Clause and OML and GPLv3 and GPLv2
|
License: BSD-3-Clause and OML and GPLv3 and GPLv2
|
||||||
URL: https://github.com/lighttpd/lighttpd1.4
|
URL: https://github.com/lighttpd/lighttpd1.4
|
||||||
Source0: http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-%{version}.tar.xz
|
Source0: http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-%{version}.tar.xz
|
||||||
Source1: lighttpd.logrotate
|
Source1: lighttpd.logrotate
|
||||||
Source2: php.d-lighttpd.ini
|
Source2: php.d-lighttpd.ini
|
||||||
Source3: lighttpd.init
|
Source3: lighttpd.service
|
||||||
Source4: lighttpd.service
|
|
||||||
Patch0: lighttpd-1.4.65-defaultconf.patch
|
Patch0: lighttpd-1.4.65-defaultconf.patch
|
||||||
Requires: %{name}-filesystem
|
Requires: %{name}-filesystem system-logos
|
||||||
%if %{with systemd}
|
|
||||||
Requires(post): systemd
|
Requires(post): systemd
|
||||||
Requires(preun): systemd
|
Requires(preun): systemd
|
||||||
Requires(postun): systemd
|
Requires(postun): systemd
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
%else
|
Requires(post): %{name}-mod_deflate
|
||||||
Requires(post): /sbin/chkconfig
|
Requires(post): %{name}-mod_webdav
|
||||||
Requires(preun): /sbin/service, /sbin/chkconfig
|
%{?with_ldap:Requires(post): %{name}-mod_authn_ldap}
|
||||||
Requires(postun): /sbin/service
|
%{?with_ldap:Requires(post): %{name}-mod_vhostdb_ldap}
|
||||||
%endif
|
%{?with_lua:Requires(post): %{name}-mod_magnet}
|
||||||
|
%{?with_openssl:Requires(post): %{name}-mod_openssl}
|
||||||
Provides: webserver
|
Provides: webserver
|
||||||
BuildRequires: openssl-devel, pcre-devel, bzip2-devel, zlib-devel, autoconf, automake, libtool
|
BuildRequires: openssl-devel, pcre-devel, bzip2-devel, zlib-devel, autoconf, automake, libtool
|
||||||
BuildRequires: /usr/bin/awk, libattr-devel
|
BuildRequires: /usr/bin/awk, libattr-devel, m4, pkg-config
|
||||||
%if %{with krb5}
|
%{?with_pcre:BuildRequires: pcre-devel}
|
||||||
BuildRequires: krb5-devel
|
%{?with_pcre2:BuildRequires: pcre2-devel}
|
||||||
%endif
|
%{?with_nettle:BuildRequires: nettle-devel}
|
||||||
%{?with_ldap:BuildRequires: openldap-devel}
|
%{?with_unwind:BuildRequires: libunwind-devel}
|
||||||
%{?with_webdavprops:BuildRequires: libxml2-devel}
|
|
||||||
%{?with_webdavlocks:BuildRequires: sqlite-devel}
|
|
||||||
%{?with_gdbm:BuildRequires: gdbm-devel}
|
|
||||||
%{?with_memcache:BuildRequires: memcached-devel}
|
|
||||||
%{?with_lua:BuildRequires: lua-devel}
|
|
||||||
|
|
||||||
Provides: %{name}-mod_authn_mysql = %{version}-%{release}
|
Provides: %{name}-mod_authn_mysql = %{version}-%{release}
|
||||||
Obsoletes: %{name}-mod_authn_mysql <= 1.4.63-1
|
Obsoletes: %{name}-mod_authn_mysql <= 1.4.63-1
|
||||||
@ -59,6 +61,9 @@ Obsoletes: %{name}-mod_authn_mysql <= 1.4.63-1
|
|||||||
Provides: %{name}-mod_mysql_vhost = %{version}-%{release}
|
Provides: %{name}-mod_mysql_vhost = %{version}-%{release}
|
||||||
Obsoletes: %{name}-mod_mysql_vhost <= 1.4.63-1
|
Obsoletes: %{name}-mod_mysql_vhost <= 1.4.63-1
|
||||||
|
|
||||||
|
Provides: %{name}-mod_geoip = %{version}-%{release}
|
||||||
|
Obsoletes: %{name}-mod_geoip <= 1.4.63-1
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Secure, fast, compliant and very flexible web-server which has been optimized
|
Secure, fast, compliant and very flexible web-server which has been optimized
|
||||||
for high-performance environments. It has a very low memory footprint compared
|
for high-performance environments. It has a very low memory footprint compared
|
||||||
@ -75,32 +80,200 @@ This package contains the spawn-fcgi helper for lighttpd's automatic spawning
|
|||||||
of local FastCGI programs. Included is also a PHP .ini file to change a few
|
of local FastCGI programs. Included is also a PHP .ini file to change a few
|
||||||
defaults needed for correct FastCGI behavior.
|
defaults needed for correct FastCGI behavior.
|
||||||
|
|
||||||
%package mod_mysql_vhost
|
%if %{with dbi}
|
||||||
Summary: Virtual host module for lighttpd that uses a MySQL database
|
%package mod_authn_dbi
|
||||||
|
Summary: Authentication module for lighttpd that uses DBI
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
BuildRequires: mariadb-connector-c-devel
|
%{?with_dbi:BuildRequires: libdbi-devel}
|
||||||
%description mod_mysql_vhost
|
%{?with_dbi:Suggests: libdbi-dbd-mysql}
|
||||||
Virtual host module for lighttpd that uses a MySQL database.
|
%{?with_dbi:Suggests: libdbi-dbd-pgsql}
|
||||||
|
%{?with_dbi:Suggests: libdbi-dbd-sqlite}
|
||||||
|
|
||||||
%package mod_authn_mysql
|
%description mod_authn_dbi
|
||||||
Summary: Authentication module for lighttpd that uses a MySQL database
|
Authentication module for lighttpd that uses DBI
|
||||||
Requires: %{name} = %{version}-%{release}
|
%endif
|
||||||
BuildRequires: mariadb-connector-c-devel
|
|
||||||
%description mod_authn_mysql
|
|
||||||
Authentication module for lighttpd that uses a MySQL database.
|
|
||||||
|
|
||||||
|
%if %{with krb5}
|
||||||
%package mod_authn_gssapi
|
%package mod_authn_gssapi
|
||||||
Summary: Authentication module for lighttpd that uses GSSAPI
|
Summary: Authentication module for lighttpd that uses GSSAPI
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%{?with_krb5:BuildRequires: krb5-devel}
|
||||||
|
|
||||||
%description mod_authn_gssapi
|
%description mod_authn_gssapi
|
||||||
Authentication module for lighttpd that uses GSSAPI
|
Authentication module for lighttpd that uses GSSAPI
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with ldap}
|
||||||
|
%package mod_authn_ldap
|
||||||
|
Summary: Authentication module for lighttpd that uses LDAP
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%{?with_ldap:BuildRequires: openldap-devel}
|
||||||
|
|
||||||
|
%description mod_authn_ldap
|
||||||
|
Authentication module for lighttpd that uses LDAP
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with pam}
|
||||||
%package mod_authn_pam
|
%package mod_authn_pam
|
||||||
Summary: Authentication module for lighttpd that uses PAM
|
Summary: Authentication module for lighttpd that uses PAM
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
BuildRequires: pam-devel
|
%{?with_pam:BuildRequires: pam-devel}
|
||||||
|
|
||||||
%description mod_authn_pam
|
%description mod_authn_pam
|
||||||
Authentication module for lighttpd that uses PAM.
|
Authentication module for lighttpd that uses PAM.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with sasl}
|
||||||
|
%package mod_authn_sasl
|
||||||
|
Summary: Authentication module for lighttpd that uses SASL
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%{?with_sasl:BuildRequires: cyrus-sasl-devel}
|
||||||
|
|
||||||
|
%description mod_authn_sasl
|
||||||
|
Authentication module for lighttpd that uses SASL.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%package mod_deflate
|
||||||
|
Summary: Compression module for lighttpd
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%{?with_zlib:BuildRequires: zlib-devel}
|
||||||
|
%{?with_zstd:BuildRequires: libzstd-devel}
|
||||||
|
%{?with_bzip2:BuildRequires: bzip2-devel}
|
||||||
|
%{?with_brotli:BuildRequires: brotli-devel}
|
||||||
|
|
||||||
|
%description mod_deflate
|
||||||
|
Compression module for lighttpd.
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with gnutls}
|
||||||
|
%package mod_gnutls
|
||||||
|
Summary: TLS module for lighttpd that uses GnuTLS
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%{?with_gnutls:BuildRequires: gnutls-devel}
|
||||||
|
|
||||||
|
%description mod_gnutls
|
||||||
|
TLS module for lighttpd that uses GnuTLS.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with lua}
|
||||||
|
%package mod_magnet
|
||||||
|
Summary: Lua module for lighttpd
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%{?with_lua:BuildRequires: lua-devel}
|
||||||
|
|
||||||
|
%description mod_magnet
|
||||||
|
Lua module for lighttpd.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with maxminddb}
|
||||||
|
%package mod_maxminddb
|
||||||
|
Summary: GeoIP2 module for lighttpd to use for location lookups
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%{?with_maxminddb:BuildRequires: libmaxminddb-devel}
|
||||||
|
%{?with_maxminddb:Recommends: GeoIP-GeoLite-data}
|
||||||
|
%{?with_maxminddb:Recommends: GeoIP-GeoLite-data-extra}
|
||||||
|
%{?with_maxminddb:Suggests: geoipupdate}
|
||||||
|
%{?with_maxminddb:Suggests: geoipupdate-cron}
|
||||||
|
|
||||||
|
%description mod_maxminddb
|
||||||
|
GeoIP2 module for lighttpd to use for location lookups.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with mbedtls}
|
||||||
|
%package mod_mbedtls
|
||||||
|
Summary: TLS module for lighttpd that uses mbedTLS
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%{?with_mbedtls:BuildRequires: mbedtls-devel}
|
||||||
|
|
||||||
|
%description mod_mbedtls
|
||||||
|
TLS module for lighttpd that uses mbedTLS.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with nss}
|
||||||
|
%package mod_nss
|
||||||
|
Summary: TLS module for lighttpd that uses NSS
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%{?with_nss:BuildRequires: nss-devel}
|
||||||
|
|
||||||
|
%description mod_nss
|
||||||
|
TLS module for lighttpd that uses NSS.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with openssl}
|
||||||
|
%package mod_openssl
|
||||||
|
Summary: TLS module for lighttpd that uses OpenSSL
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%{?with_openssl:BuildRequires: openssl-devel}
|
||||||
|
|
||||||
|
%description mod_openssl
|
||||||
|
TLS module for lighttpd that uses OpenSSL.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with dbi}
|
||||||
|
%package mod_vhostdb_dbi
|
||||||
|
Summary: Virtual host module for lighttpd that uses DBI
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%{?with_dbi:BuildRequires: libdbi-devel}
|
||||||
|
%{?with_dbi:Suggests: libdbi-dbd-mysql}
|
||||||
|
%{?with_dbi:Suggests: libdbi-dbd-pgsql}
|
||||||
|
%{?with_dbi:Suggests: libdbi-dbd-sqlite}
|
||||||
|
|
||||||
|
%description mod_vhostdb_dbi
|
||||||
|
Virtual host module for lighttpd that uses DBI.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with ldap}
|
||||||
|
%package mod_vhostdb_ldap
|
||||||
|
Summary: Virtual host module for lighttpd that uses LDAP
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%{?with_ldap:BuildRequires: openldap-devel}
|
||||||
|
|
||||||
|
%description mod_vhostdb_ldap
|
||||||
|
Virtual host module for lighttpd that uses LDAP.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with mysql}
|
||||||
|
%package mod_vhostdb_mysql
|
||||||
|
Summary: Virtual host module for lighttpd that uses MySQL
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%{?with_mysql:BuildRequires: mariadb-connector-c-devel}
|
||||||
|
|
||||||
|
%description mod_vhostdb_mysql
|
||||||
|
Virtual host module for lighttpd that uses MySQL.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with pgsql}
|
||||||
|
%package mod_vhostdb_pgsql
|
||||||
|
Summary: Virtual host module for lighttpd that uses PostgreSQL
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%{?with_pgsql:BuildRequires: libpq-devel}
|
||||||
|
|
||||||
|
%description mod_vhostdb_pgsql
|
||||||
|
Virtual host module for lighttpd that uses PostgreSQL.
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%package mod_webdav
|
||||||
|
Summary: WebDAV module for lighttpd
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%{?with_webdavprops:BuildRequires: libxml2-devel}
|
||||||
|
%{?with_webdavprops:BuildRequires: sqlite-devel}
|
||||||
|
%{?with_webdavlocks:BuildRequires: libuuid-devel}
|
||||||
|
%{?with_webdavlocks:BuildRequires: sqlite-devel}
|
||||||
|
|
||||||
|
%description mod_webdav
|
||||||
|
WebDAV module for lighttpd.
|
||||||
|
|
||||||
%package filesystem
|
%package filesystem
|
||||||
Summary: The basic directory layout for lighttpd
|
Summary: The basic directory layout for lighttpd
|
||||||
@ -119,34 +292,40 @@ for the directories.
|
|||||||
autoreconf -if
|
autoreconf -if
|
||||||
%configure \
|
%configure \
|
||||||
--libdir='%{_libdir}/lighttpd' \
|
--libdir='%{_libdir}/lighttpd' \
|
||||||
%{confswitch mysql} \
|
|
||||||
%{confswitch pam} \
|
|
||||||
%{confswitch ldap} \
|
|
||||||
%{confswitch attr} \
|
|
||||||
%{confswitch openssl} \
|
|
||||||
%{confswitch pcre} \
|
%{confswitch pcre} \
|
||||||
%{confswitch fam} \
|
%{confswitch pcre2} \
|
||||||
|
%{confswitch nettle} \
|
||||||
|
%{confswitch attr} \
|
||||||
|
%{confswitch mysql} \
|
||||||
|
%{confswitch pgsql} \
|
||||||
|
%{confswitch dbi} \
|
||||||
|
%{confswitch krb5} \
|
||||||
|
%{confswitch ldap} \
|
||||||
|
%{confswitch pam} \
|
||||||
|
%{confswitch sasl} \
|
||||||
|
%{confswitch gnutls} \
|
||||||
|
%{confswitch mbedtls} \
|
||||||
|
%{confswitch nss} \
|
||||||
|
%{confswitch openssl} \
|
||||||
%{?with_webdavprops:--with-webdav-props} \
|
%{?with_webdavprops:--with-webdav-props} \
|
||||||
%{?with_webdavlocks:--with-webdav-locks} \
|
%{?with_webdavlocks:--with-webdav-locks} \
|
||||||
%{confswitch gdbm} \
|
%{?with_lua:--with-lua=lua} \
|
||||||
%{confswitch memcached} \
|
%{confswitch zlib} \
|
||||||
%{confswitch lua} \
|
%{confswitch zstd} \
|
||||||
%{confswitch krb5}
|
%{confswitch bzip2} \
|
||||||
make %{?_smp_mflags}
|
%{confswitch brotli} \
|
||||||
|
%{confswitch maxminddb} \
|
||||||
|
%{confswitch unwind}
|
||||||
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=%{buildroot}
|
%make_install
|
||||||
install -D -p -m 0644 %{SOURCE1} \
|
install -D -p -m 0644 %{SOURCE1} \
|
||||||
%{buildroot}%{_sysconfdir}/logrotate.d/lighttpd
|
%{buildroot}%{_sysconfdir}/logrotate.d/lighttpd
|
||||||
install -D -p -m 0644 %{SOURCE2} \
|
install -D -p -m 0644 %{SOURCE2} \
|
||||||
%{buildroot}%{_sysconfdir}/php.d/lighttpd.ini
|
%{buildroot}%{_sysconfdir}/php.d/lighttpd.ini
|
||||||
%if %{with systemd}
|
install -D -p -m 0644 %{SOURCE3} \
|
||||||
install -D -p -m 0644 %{SOURCE4} \
|
|
||||||
%{buildroot}%{_unitdir}/lighttpd.service
|
%{buildroot}%{_unitdir}/lighttpd.service
|
||||||
%else
|
|
||||||
install -D -p -m 0755 %{SOURCE3} \
|
|
||||||
%{buildroot}%{_sysconfdir}/rc.d/init.d/lighttpd
|
|
||||||
%endif
|
|
||||||
mkdir -p %{buildroot}%{webroot}
|
mkdir -p %{buildroot}%{webroot}
|
||||||
rm -rf config
|
rm -rf config
|
||||||
cp -a doc/config config
|
cp -a doc/config config
|
||||||
@ -157,40 +336,25 @@ cp -a config/*.conf config/*.d %{buildroot}%{_sysconfdir}/lighttpd/
|
|||||||
mkdir -p %{buildroot}%{_var}/log/lighttpd
|
mkdir -p %{buildroot}%{_var}/log/lighttpd
|
||||||
mkdir -p %{buildroot}%{_var}/run/lighttpd
|
mkdir -p %{buildroot}%{_var}/run/lighttpd
|
||||||
%if %{with tmpfiles}
|
%if %{with tmpfiles}
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
|
mkdir -p %{buildroot}/usr/lib/tmpfiles.d
|
||||||
echo 'D /var/run/lighttpd 0750 lighttpd lighttpd -' > \
|
echo 'D /run/lighttpd 0750 lighttpd lighttpd -' > \
|
||||||
%{buildroot}%{_sysconfdir}/tmpfiles.d/lighttpd.conf
|
%{buildroot}/usr/lib/tmpfiles.d/lighttpd.conf
|
||||||
%endif
|
%endif
|
||||||
|
mkdir -p %{buildroot}%{_var}/lib/lighttpd/
|
||||||
|
|
||||||
%pre filesystem
|
%pre filesystem
|
||||||
/usr/sbin/useradd -s /sbin/nologin -M -r -d %{webroot} \
|
/usr/sbin/useradd -s /sbin/nologin -M -r -d %{webroot} \
|
||||||
-c 'lighttpd web server' lighttpd &>/dev/null || :
|
-c 'lighttpd web server' lighttpd &>/dev/null || :
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%if %{with systemd}
|
|
||||||
%systemd_post lighttpd.service
|
%systemd_post lighttpd.service
|
||||||
%else
|
|
||||||
/sbin/chkconfig --add lighttpd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%if %{with systemd}
|
|
||||||
%systemd_preun lighttpd.service
|
%systemd_preun lighttpd.service
|
||||||
%else
|
|
||||||
if [ $1 -eq 0 ]; then
|
|
||||||
/sbin/service lighttpd stop &>/dev/null || :
|
|
||||||
/sbin/chkconfig --del lighttpd
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%if %{with systemd}
|
|
||||||
%systemd_postun_with_restart lighttpd.service
|
%systemd_postun_with_restart lighttpd.service
|
||||||
%else
|
|
||||||
if [ $1 -ge 1 ]; then
|
|
||||||
/sbin/service lighttpd condrestart &>/dev/null || :
|
|
||||||
fi
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license COPYING
|
%license COPYING
|
||||||
@ -198,61 +362,165 @@ fi
|
|||||||
%doc config/ doc/scripts/rrdtool-graph.sh
|
%doc config/ doc/scripts/rrdtool-graph.sh
|
||||||
%config(noreplace) %{_sysconfdir}/lighttpd/*.conf
|
%config(noreplace) %{_sysconfdir}/lighttpd/*.conf
|
||||||
%config(noreplace) %{_sysconfdir}/lighttpd/conf.d/*.conf
|
%config(noreplace) %{_sysconfdir}/lighttpd/conf.d/*.conf
|
||||||
|
%exclude %{_sysconfdir}/lighttpd/conf.d/deflate.conf
|
||||||
%exclude %{_sysconfdir}/lighttpd/conf.d/fastcgi.conf
|
%exclude %{_sysconfdir}/lighttpd/conf.d/fastcgi.conf
|
||||||
|
%exclude %{_sysconfdir}/lighttpd/conf.d/magnet.conf
|
||||||
|
%exclude %{_sysconfdir}/lighttpd/conf.d/webdav.conf
|
||||||
%config %{_sysconfdir}/lighttpd/conf.d/mod.template
|
%config %{_sysconfdir}/lighttpd/conf.d/mod.template
|
||||||
%config %{_sysconfdir}/lighttpd/vhosts.d/vhosts.template
|
%config %{_sysconfdir}/lighttpd/vhosts.d/vhosts.template
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/lighttpd
|
%config(noreplace) %{_sysconfdir}/logrotate.d/lighttpd
|
||||||
%if %{with systemd}
|
|
||||||
%{_unitdir}/lighttpd.service
|
%{_unitdir}/lighttpd.service
|
||||||
%else
|
|
||||||
%{_sysconfdir}/rc.d/init.d/lighttpd
|
|
||||||
%endif
|
|
||||||
%if %{with tmpfiles}
|
%if %{with tmpfiles}
|
||||||
%config(noreplace) %{_sysconfdir}/tmpfiles.d/lighttpd.conf
|
%config(noreplace) /usr/lib/tmpfiles.d/lighttpd.conf
|
||||||
%endif
|
%endif
|
||||||
%{_sbindir}/lighttpd
|
%{_sbindir}/lighttpd
|
||||||
%{_sbindir}/lighttpd-angel
|
%{_sbindir}/lighttpd-angel
|
||||||
%{_libdir}/lighttpd/
|
%{_libdir}/lighttpd/
|
||||||
%exclude %{_libdir}/lighttpd/*.la
|
%exclude %{_libdir}/lighttpd/mod_authn_dbi.so
|
||||||
%exclude %{_libdir}/lighttpd/mod_fastcgi.so
|
|
||||||
%exclude %{_libdir}/lighttpd/mod_authn_gssapi.so
|
%exclude %{_libdir}/lighttpd/mod_authn_gssapi.so
|
||||||
|
%exclude %{_libdir}/lighttpd/mod_authn_ldap.so
|
||||||
|
%exclude %{_libdir}/lighttpd/mod_authn_pam.so
|
||||||
|
%exclude %{_libdir}/lighttpd/mod_authn_sasl.so
|
||||||
|
%exclude %{_libdir}/lighttpd/mod_deflate.so
|
||||||
|
%exclude %{_libdir}/lighttpd/mod_gnutls.so
|
||||||
|
%exclude %{_libdir}/lighttpd/mod_magnet.so
|
||||||
|
%exclude %{_libdir}/lighttpd/mod_maxminddb.so
|
||||||
|
%exclude %{_libdir}/lighttpd/mod_openssl.so
|
||||||
|
%exclude %{_libdir}/lighttpd/mod_nss.so
|
||||||
|
%exclude %{_libdir}/lighttpd/mod_vhostdb_dbi.so
|
||||||
|
%exclude %{_libdir}/lighttpd/mod_vhostdb_ldap.so
|
||||||
|
%exclude %{_libdir}/lighttpd/mod_vhostdb_mysql.so
|
||||||
|
%exclude %{_libdir}/lighttpd/mod_vhostdb_pgsql.so
|
||||||
%{_mandir}/man8/lighttpd*8*
|
%{_mandir}/man8/lighttpd*8*
|
||||||
|
|
||||||
%files fastcgi
|
%files fastcgi
|
||||||
%doc doc/outdated/fastcgi*.txt doc/scripts/spawn-php.sh
|
%doc doc/outdated/fastcgi*.txt doc/scripts/spawn-php.sh
|
||||||
%config(noreplace) %{_sysconfdir}/php.d/lighttpd.ini
|
%config(noreplace) %{_sysconfdir}/php.d/lighttpd.ini
|
||||||
%config(noreplace) %{_sysconfdir}/lighttpd/conf.d/fastcgi.conf
|
%config(noreplace) %{_sysconfdir}/lighttpd/conf.d/fastcgi.conf
|
||||||
%dir %{_libdir}/lighttpd/
|
|
||||||
%{_libdir}/lighttpd/mod_fastcgi.so
|
|
||||||
|
|
||||||
%files mod_mysql_vhost
|
%if %{with dbi}
|
||||||
%dir %{_libdir}/lighttpd/
|
%files mod_authn_dbi
|
||||||
|
|
||||||
%files mod_authn_mysql
|
|
||||||
%dir %{_libdir}/lighttpd/
|
%dir %{_libdir}/lighttpd/
|
||||||
|
%{_libdir}/lighttpd/mod_authn_dbi.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with krb5}
|
||||||
%files mod_authn_gssapi
|
%files mod_authn_gssapi
|
||||||
%dir %{_libdir}/lighttpd/
|
%dir %{_libdir}/lighttpd/
|
||||||
%{_libdir}/lighttpd/mod_authn_gssapi.so
|
%{_libdir}/lighttpd/mod_authn_gssapi.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with ldap}
|
||||||
|
%files mod_authn_ldap
|
||||||
|
%dir %{_libdir}/lighttpd/
|
||||||
|
%{_libdir}/lighttpd/mod_authn_ldap.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with pam}
|
||||||
%files mod_authn_pam
|
%files mod_authn_pam
|
||||||
%dir %{_libdir}/lighttpd/
|
%dir %{_libdir}/lighttpd/
|
||||||
%{_libdir}/lighttpd/mod_authn_pam.so
|
%{_libdir}/lighttpd/mod_authn_pam.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with sasl}
|
||||||
|
%files mod_authn_sasl
|
||||||
|
%dir %{_libdir}/lighttpd/
|
||||||
|
%{_libdir}/lighttpd/mod_authn_sasl.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files mod_deflate
|
||||||
|
%doc doc/outdated/compress.txt
|
||||||
|
%config(noreplace) %{_sysconfdir}/lighttpd/conf.d/deflate.conf
|
||||||
|
%dir %{_libdir}/lighttpd/
|
||||||
|
%{_libdir}/lighttpd/mod_deflate.so
|
||||||
|
|
||||||
|
%if %{with gnutls}
|
||||||
|
%files mod_gnutls
|
||||||
|
%dir %{_libdir}/lighttpd/
|
||||||
|
%{_libdir}/lighttpd/mod_gnutls.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with lua}
|
||||||
|
%files mod_magnet
|
||||||
|
%doc doc/outdated/magnet.txt
|
||||||
|
%config(noreplace) %{_sysconfdir}/lighttpd/conf.d/magnet.conf
|
||||||
|
%dir %{_libdir}/lighttpd/
|
||||||
|
%{_libdir}/lighttpd/mod_magnet.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with maxminddb}
|
||||||
|
%files mod_maxminddb
|
||||||
|
%dir %{_libdir}/lighttpd/
|
||||||
|
%{_libdir}/lighttpd/mod_maxminddb.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with mbedtls}
|
||||||
|
%files mod_mbedtls
|
||||||
|
%dir %{_libdir}/lighttpd/
|
||||||
|
%{_libdir}/lighttpd/mod_mbedtls.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with nss}
|
||||||
|
%files mod_nss
|
||||||
|
%dir %{_libdir}/lighttpd/
|
||||||
|
%{_libdir}/lighttpd/mod_nss.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with openssl}
|
||||||
|
%files mod_openssl
|
||||||
|
%dir %{_libdir}/lighttpd/
|
||||||
|
%{_libdir}/lighttpd/mod_openssl.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with dbi}
|
||||||
|
%files mod_vhostdb_dbi
|
||||||
|
%dir %{_libdir}/lighttpd/
|
||||||
|
%{_libdir}/lighttpd/mod_vhostdb_dbi.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with ldap}
|
||||||
|
%files mod_vhostdb_ldap
|
||||||
|
%dir %{_libdir}/lighttpd/
|
||||||
|
%{_libdir}/lighttpd/mod_vhostdb_ldap.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with mysql}
|
||||||
|
%files mod_vhostdb_mysql
|
||||||
|
%dir %{_libdir}/lighttpd/
|
||||||
|
%{_libdir}/lighttpd/mod_vhostdb_mysql.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with pgsql}
|
||||||
|
%files mod_vhostdb_pgsql
|
||||||
|
%dir %{_libdir}/lighttpd/
|
||||||
|
%{_libdir}/lighttpd/mod_vhostdb_pgsql.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files mod_webdav
|
||||||
|
%doc doc/outdated/webdav.txt
|
||||||
|
%config(noreplace) %{_sysconfdir}/lighttpd/conf.d/webdav.conf
|
||||||
|
%dir %{_libdir}/lighttpd/
|
||||||
|
%{_libdir}/lighttpd/mod_webdav.so
|
||||||
|
|
||||||
%files filesystem
|
%files filesystem
|
||||||
%dir %{_sysconfdir}/lighttpd/
|
%dir %{_sysconfdir}/lighttpd/
|
||||||
%dir %{_sysconfdir}/lighttpd/conf.d/
|
%dir %{_sysconfdir}/lighttpd/conf.d/
|
||||||
%dir %{_sysconfdir}/lighttpd/vhosts.d/
|
%dir %{_sysconfdir}/lighttpd/vhosts.d/
|
||||||
%dir %{_var}/run/lighttpd/
|
%dir %{_var}/run/lighttpd/
|
||||||
|
%dir %{_var}/lib/lighttpd/
|
||||||
%if %{with tmpfiles}
|
%if %{with tmpfiles}
|
||||||
%ghost %attr(0750, lighttpd, lighttpd) %{_var}/run/lighttpd/
|
%ghost %attr(0750, lighttpd, lighttpd) %{_var}/run/lighttpd/
|
||||||
%else
|
%else
|
||||||
%attr(0750, lighttpd, lighttpd) %{_var}/run/lighttpd/
|
%attr(0750, lighttpd, lighttpd) %{_var}/run/lighttpd/
|
||||||
%endif
|
%endif
|
||||||
|
%attr(0750, lighttpd, lighttpd) %{_var}/lib/lighttpd/
|
||||||
%attr(0750, lighttpd, lighttpd) %{_var}/log/lighttpd/
|
%attr(0750, lighttpd, lighttpd) %{_var}/log/lighttpd/
|
||||||
%attr(0700, lighttpd, lighttpd) %dir %{webroot}/
|
%attr(0700, lighttpd, lighttpd) %dir %{webroot}/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 27 2023 liyanan <liyanan61@h-parners.com> - 1.4.72-1
|
||||||
|
- Update to 1.4.72
|
||||||
|
|
||||||
* Mon May 29 2023 Jia Chao <jiachao2130@126.com> - 1.4.67-3
|
* Mon May 29 2023 Jia Chao <jiachao2130@126.com> - 1.4.67-3
|
||||||
- Remove unsupport BuildRequires: gamin-devel, this pkg is dropped.
|
- Remove unsupport BuildRequires: gamin-devel, this pkg is dropped.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user