|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
|
PKG_NAME:=lighttpd |
|
|
PKG_NAME:=lighttpd |
|
|
PKG_VERSION:=1.4.49 |
|
|
PKG_VERSION:=1.4.49 |
|
|
PKG_RELEASE:=4 |
|
|
|
|
|
|
|
|
PKG_RELEASE:=5 |
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz |
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz |
|
|
PKG_SOURCE_URL:=https://download.lighttpd.net/lighttpd/releases-1.4.x |
|
|
PKG_SOURCE_URL:=https://download.lighttpd.net/lighttpd/releases-1.4.x |
|
@ -180,6 +180,10 @@ define BuildPlugin |
|
|
$(INSTALL_DIR) $$(1)/etc/lighttpd/conf.d |
|
|
$(INSTALL_DIR) $$(1)/etc/lighttpd/conf.d |
|
|
if [ -f $(PKG_BUILD_DIR)/doc/config/conf.d/$(1).conf ]; then \
|
|
|
if [ -f $(PKG_BUILD_DIR)/doc/config/conf.d/$(1).conf ]; then \
|
|
|
$(CP) $(PKG_BUILD_DIR)/doc/config/conf.d/$(1).conf $$(1)/etc/lighttpd/conf.d/$(4)-$(1).conf ; \
|
|
|
$(CP) $(PKG_BUILD_DIR)/doc/config/conf.d/$(1).conf $$(1)/etc/lighttpd/conf.d/$(4)-$(1).conf ; \
|
|
|
|
|
|
if ! grep -qF 'mod_$(1)' $$(1)/etc/lighttpd/conf.d/$(4)-$(1).conf; then \
|
|
|
|
|
|
sed -i "`sed '/^##/ !q' $$(1)/etc/lighttpd/conf.d/$(4)-$(1).conf | wc -l` i\
|
|
|
|
|
|
server.modules += ( \"mod_$(1)\" )" $$(1)/etc/lighttpd/conf.d/$(4)-$(1).conf ; \
|
|
|
|
|
|
fi \
|
|
|
else \
|
|
|
else \
|
|
|
echo 'server.modules += ( "mod_$(1)" )' > $$(1)/etc/lighttpd/conf.d/$(4)-$(1).conf ; \
|
|
|
echo 'server.modules += ( "mod_$(1)" )' > $$(1)/etc/lighttpd/conf.d/$(4)-$(1).conf ; \
|
|
|
fi |
|
|
fi |
|
@ -195,11 +199,11 @@ $(eval $(call BuildPackage,lighttpd)) |
|
|
$(eval $(call BuildPlugin,redirect,URL redirection,+PACKAGE_lighttpd-mod-redirect:libpcre,10)) |
|
|
$(eval $(call BuildPlugin,redirect,URL redirection,+PACKAGE_lighttpd-mod-redirect:libpcre,10)) |
|
|
|
|
|
|
|
|
# Next, permit authentication.
|
|
|
# Next, permit authentication.
|
|
|
$(eval $(call BuildPlugin,auth,Authentication,+lighttpd-mod-authn_file,20)) |
|
|
|
|
|
$(eval $(call BuildPlugin,authn_file,File-based authentication,+lighttpd-mod-auth,20)) |
|
|
|
|
|
$(eval $(call BuildPlugin,authn_gssapi,Kerberos-based authentication,+lighttpd-mod-auth +PACKAGE_lighttpd-mod-authn_gssapi:krb5-libs,20)) |
|
|
|
|
|
$(eval $(call BuildPlugin,authn_ldap,LDAP-based authentication,+lighttpd-mod-auth +PACKAGE_lighttpd-mod-authn_ldap:libopenldap,20)) |
|
|
|
|
|
$(eval $(call BuildPlugin,authn_mysql,Mysql-based authentication,+lighttpd-mod-auth +PACKAGE_lighttpd-mod-authn_mysql:libmysqlclient,20)) |
|
|
|
|
|
|
|
|
$(eval $(call BuildPlugin,auth,Authentication,,20)) |
|
|
|
|
|
$(eval $(call BuildPlugin,authn_file,File-based authentication,lighttpd-mod-auth,20)) |
|
|
|
|
|
$(eval $(call BuildPlugin,authn_gssapi,Kerberos-based authentication,lighttpd-mod-auth +PACKAGE_lighttpd-mod-authn_gssapi:krb5-libs,20)) |
|
|
|
|
|
$(eval $(call BuildPlugin,authn_ldap,LDAP-based authentication,lighttpd-mod-auth +PACKAGE_lighttpd-mod-authn_ldap:libopenldap,20)) |
|
|
|
|
|
$(eval $(call BuildPlugin,authn_mysql,Mysql-based authentication,lighttpd-mod-auth +PACKAGE_lighttpd-mod-authn_mysql:libmysqlclient,20)) |
|
|
|
|
|
|
|
|
# Finally, everything else.
|
|
|
# Finally, everything else.
|
|
|
$(eval $(call BuildPlugin,access,Access restrictions,,30)) |
|
|
$(eval $(call BuildPlugin,access,Access restrictions,,30)) |
|
|