@ -24,24 +24,30 @@ PKG_LICENSE_FILES:=LICENSE
PKG_CPE_ID := cpe:/a:apache:http_server
PKG_CPE_ID := cpe:/a:apache:http_server
PKG_BUILD_PARALLEL := 1
PKG_BUILD_DEPENDS := openssl
PKG_INSTAL L := 1
PKG_BUILD_PARALLE L := 1
PKG_CONFIG_DEPENDS := \
PKG_CONFIG_DEPENDS := \
CONFIG_APACHE_HTTP2
CONFIG_PACKAGE_apache-mod-deflate \
CONFIG_PACKAGE_apache-mod-http2 \
CONFIG_PACKAGE_apache-mod-ldap \
CONFIG_PACKAGE_apache-mod-lua \
CONFIG_PACKAGE_apache-mod-md \
CONFIG_PACKAGE_apache-mod-proxy \
CONFIG_PACKAGE_apache-mod-proxy-html \
CONFIG_PACKAGE_apache-mod-session-crypto \
CONFIG_PACKAGE_apache-mod-suexec \
CONFIG_PACKAGE_apache-mod-webdav \
CONFIG_PACKAGE_apache-suexec
PKG_FIXUP := autoreconf
PKG_FIXUP := autoreconf
ADDITIONAL_MODULES :=
i f e q ( $( CONFIG_APACHE_HTTP 2) , y )
ADDITIONAL_MODULES += --enable-http2
e n d i f
i f n e q ( $( CONFIG_APACHE_HTTP 2) , y )
ADDITIONAL_MODULES += --enable-http2= no
e n d i f
PKG_INSTALL := 1
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
# without nls.mk mod_xml2enc might not find the iconv headers
i n c l u d e $( INCLUDE_DIR ) / n l s . m k
d e f i n e P a c k a g e / a p a c h e / D e f a u l t
d e f i n e P a c k a g e / a p a c h e / D e f a u l t
SECTION:= net
SECTION:= net
@ -63,7 +69,8 @@ endef
d e f i n e P a c k a g e / a p a c h e
d e f i n e P a c k a g e / a p a c h e
$( call Package /apache /Default )
$( call Package /apache /Default )
DEPENDS:= +libapr +libaprutil +libpcre +libopenssl +unixodbc +zlib +APACHE_HTTP2:libnghttp2
USERID:= apache = 377:apache= 377
DEPENDS:= +libapr +libaprutil +libpcre
e n d e f
e n d e f
d e f i n e P a c k a g e / a p a c h e / d e s c r i p t i o n
d e f i n e P a c k a g e / a p a c h e / d e s c r i p t i o n
@ -95,10 +102,37 @@ define Package/apache/conffiles
/ e t c / a p a c h e 2 / e x t r a / h t t p d - s s l . c o n f
/ e t c / a p a c h e 2 / e x t r a / h t t p d - s s l . c o n f
/ e t c / a p a c h e 2 / e x t r a / h t t p d - u s e r d i r . c o n f
/ e t c / a p a c h e 2 / e x t r a / h t t p d - u s e r d i r . c o n f
/ e t c / a p a c h e 2 / e x t r a / h t t p d - v h o s t s . c o n f
/ e t c / a p a c h e 2 / e x t r a / h t t p d - v h o s t s . c o n f
/ e t c / a p a c h e 2 / e x t r a / p r o x y - h t m l . c o n f
/ e t c / a p a c h e 2 / m a g i c
/ e t c / a p a c h e 2 / m a g i c
/ e t c / a p a c h e 2 / m i m e . t y p e s
/ e t c / a p a c h e 2 / m i m e . t y p e s
e n d e f
e n d e f
d e f i n e P a c k a g e / a p a c h e - a b
$( call Package /apache /Default )
TITLE:= Apache benchmark utility
DEPENDS:= apache +libopenssl
e n d e f
d e f i n e P a c k a g e / a p a c h e - a b / d e s c r i p t i o n
$( call Package /apache /Default /description )
A p a c h e s e r v e r b e n c h m a r k i n g u t i l i t y .
e n d e f
d e f i n e P a c k a g e / a p a c h e - e r r o r
$( call Package /apache /Default )
TITLE:= Error documents
DEPENDS:= apache
e n d e f
d e f i n e P a c k a g e / a p a c h e - e r r o r / d e s c r i p t i o n
$( call Package /apache /Default /description )
A p a c h e m u l t i l a n g u a g e c u s t o m e r r o r d o c u m e n t s .
e n d e f
d e f i n e P a c k a g e / a p a c h e - i c o n s
d e f i n e P a c k a g e / a p a c h e - i c o n s
$( call Package /apache /Default )
$( call Package /apache /Default )
TITLE:= Icons from Apache
TITLE:= Icons from Apache
@ -111,11 +145,49 @@ $(call Package/apache/Default/description)
This package contains the icons from Apache.
This package contains the icons from Apache.
e n d e f
e n d e f
d e f i n e P a c k a g e / a p a c h e - s u e x e c
$( call Package /apache /Default )
TITLE:= Apache suEXEC
DEPENDS:= apache
e n d e f
d e f i n e P a c k a g e / a p a c h e - s u e x e c / d e s c r i p t i o n
$( call Package /apache /Default /description )
T h i s p a c k a g e c o n t a i n s t h e s u E X E C u t i l i t y f r o m A p a c h e .
e n d e f
d e f i n e P a c k a g e / a p a c h e - u t i l s
$( call Package /apache /Default )
TITLE:= Apache utilities
DEPENDS:= apache
e n d e f
d e f i n e P a c k a g e / a p a c h e - u t i l s / d e s c r i p t i o n
$( call Package /apache /Default /description )
A p a c h e u t i l i t y p r o g r a m s f o r w e b s e r v e r s .
e n d e f
d e f i n e P a c k a g e / a p a c h e / i n s t a l l / m o d
$( INSTALL_DIR) $( 1) /usr/lib/apache2
$( INSTALL_BIN) \
$( PKG_INSTALL_DIR) /usr/lib/apache2/mod_$( 2) .so \
$( 1) /usr/lib/apache2
e n d e f
CONFIGURE_ARGS += \
CONFIGURE_ARGS += \
--$( if $( CONFIG_PACKAGE_apache-mod-deflate) ,en,dis) able-deflate \
--$( if $( CONFIG_PACKAGE_apache-mod-http2) ,en,dis) able-http2 \
--$( if $( CONFIG_PACKAGE_apache-mod-lua) ,en,dis) able-lua \
--$( if $( CONFIG_PACKAGE_apache-mod-md) ,en,dis) able-md \
--$( if $( CONFIG_PACKAGE_apache-mod-proxy) ,en,dis) able-proxy \
--$( if $( CONFIG_PACKAGE_apache-mod-session-crypto) ,en,dis) able-session-crypto \
--$( if $( CONFIG_PACKAGE_apache-mod-ssl) ,en,dis) able-ssl \
--datadir= /usr/share/apache2 \
--datadir= /usr/share/apache2 \
--disable-authnz-ldap \
--disable-imagemap \
--disable-imagemap \
--disable-ldap \
--disable-luajit \
--disable-luajit \
--enable-authn-alias \
--enable-authn-alias \
--enable-authn-anon \
--enable-authn-anon \
@ -139,6 +211,62 @@ CONFIGURE_ARGS+= \
--with-pcre= " $( STAGING_DIR) /usr/bin/pcre-config " \
--with-pcre= " $( STAGING_DIR) /usr/bin/pcre-config " \
--with-ssl
--with-ssl
i f n e q ( $( CONFIG_PACKAGE_apache -mod -ldap ) , )
CONFIGURE_ARGS += \
--enable-authnz-ldap \
--enable-ldap
e l s e
CONFIGURE_ARGS += \
--disable-authnz-ldap \
--disable-ldap
e n d i f
i f n e q ( $( CONFIG_PACKAGE_apache -mod -proxy ) , )
CONFIGURE_ARGS += \
--enable-proxy \
--enable-proxy-connect \
--enable-proxy-ftp \
--enable-proxy-http
e l s e
CONFIGURE_ARGS += \
--disable-proxy
e n d i f
i f n e q ( $( CONFIG_PACKAGE_apache -mod -proxy -html ) , )
CONFIGURE_ARGS += \
--enable-proxy-html \
--enable-xml2enc \
--with-libxml2= " $( STAGING_DIR) /usr "
e l s e
CONFIGURE_ARGS += \
--disable-proxy-html \
--disable-xml2enc
e n d i f
i f n e q ( $( CONFIG_PACKAGE_apache -mod -suexec ) $( CONFIG_PACKAGE_apache -suexec ) , )
CONFIGURE_ARGS += \
--enable-suexec \
--with-suexec-bin= /usr/sbin/suexec \
--with-suexec-caller= apache \
--with-suexec-docroot= /var/www \
--with-suexec-logfile= /var/log/apache2/suexec.log \
--with-suexec-uidmin= 99 \
--with-suexec-gidmin= 99
e l s e
CONFIGURE_ARGS += \
--disable-suexec
e n d i f
i f n e q ( $( CONFIG_PACKAGE_apache -mod -webdav ) , )
CONFIGURE_ARGS += \
--enable-dav \
--enable-dav-fs \
--enable-dav-lock
e l s e
CONFIGURE_ARGS += \
--disable-dav
e n d i f
CONFIGURE_VARS += \
CONFIGURE_VARS += \
ap_cv_void_ptr_lt_long = no
ap_cv_void_ptr_lt_long = no
@ -175,16 +303,31 @@ define Package/apache/preinst
e n d e f
e n d e f
d e f i n e P a c k a g e / a p a c h e / i n s t a l l
d e f i n e P a c k a g e / a p a c h e / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
# we don't need apxs on the router, it's just for building apache modules.
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/{ ab,dbmmanage,htdbm,htdigest,htpasswd,httxt2dbm,logresolve} $( 1) /usr/sbin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin/{ apachectl,checkgid,envvars,envvars-std,htcacheclean,httpd,rotatelogs} $( 1) /usr/sbin/
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/httpd.exp $( 1) /usr/lib/
$( INSTALL_DIR) $( 1) /usr/share
$( CP) $( PKG_INSTALL_DIR) /usr/share/{ error,htdocs,cgi-bin,build} $( 1) /usr/share/
$( INSTALL_DIR) $( 1) /etc/apache
$( CP) $( PKG_INSTALL_DIR) /etc/apache/{ httpd.conf,magic,mime.types,extra} $( 1) /etc/apache/
$( INSTALL_DIR) $( 1) /etc/apache2/extra
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /etc/apache2/extra/* \
$( 1) /etc/apache2/extra
$( INSTALL_DATA) \
$( PKG_INSTALL_DIR) /etc/apache2/{ httpd.conf,magic,mime.types} \
$( 1) /etc/apache2
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_BIN) ./files/apache.init $( 1) /etc/init.d/apache
$( INSTALL_DIR) $( 1) /usr/lib/apache2
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/lib/apache2/*.so \
$( 1) /usr/lib/apache2
rm -f $( 1) /usr/lib/apache2/mod_{ *ldap,dav*,deflate,http2,lbmethod_*,lua,md,proxy*,proxy_html,session_crypto,ssl,suexec,xml2enc} .so
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/lib/apache2/httpd.exp \
$( 1) /usr/lib/apache2
$( INSTALL_DIR) $( 1) /usr/share/apache2/{ cgi-bin,htdocs}
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/share/apache2/cgi-bin/* \
$( 1) /usr/share/apache2/cgi-bin
$( INSTALL_DATA) $( PKG_INSTALL_DIR) /usr/share/apache2/htdocs/* \
$( 1) /usr/share/apache2/htdocs
$( INSTALL_DIR) $( 1) /usr/{ ,s} bin
$( INSTALL_BIN) \
$( PKG_INSTALL_DIR) /usr/bin/{ dbmmanage,htdbm,htdigest,htpasswd,httxt2dbm,logresolve} \
$( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin/{ apachectl,httpd} \
$( 1) /usr/sbin
e n d e f
e n d e f
d e f i n e P a c k a g e / a p a c h e / p o s t r m
d e f i n e P a c k a g e / a p a c h e / p o s t r m
@ -194,10 +337,64 @@ define Package/apache/postrm
with busybox' s httpd."
with busybox' s httpd."
e n d e f
e n d e f
d e f i n e P a c k a g e / a p a c h e - a b / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/ab $( 1) /usr/bin
e n d e f
d e f i n e P a c k a g e / a p a c h e - e r r o r / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/share/apache2/error
$( CP) $( PKG_INSTALL_DIR) /usr/share/apache2/error/* \
$( 1) /usr/share/apache2/error
e n d e f
d e f i n e P a c k a g e / a p a c h e - i c o n s / i n s t a l l
d e f i n e P a c k a g e / a p a c h e - i c o n s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/share
$( CP) $( PKG_INSTALL_DIR) /usr/share/icons $( 1) /usr/share/
$( INSTALL_DIR) $( 1) /usr/share/apache2
$( CP) $( PKG_INSTALL_DIR) /usr/share/apache2/icons \
$( 1) /usr/share/apache2
e n d e f
d e f i n e P a c k a g e / a p a c h e - s u e x e c / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( CP) $( PKG_INSTALL_DIR) /usr/sbin/suexec $( 1) /usr/sbin
e n d e f
d e f i n e P a c k a g e / a p a c h e - u t i l s / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_BIN) \
$( PKG_INSTALL_DIR) /usr/sbin/{ checkgid,envvars*,htcacheclean,rotatelogs} \
$( 1) /usr/sbin
e n d e f
d e f i n e P a c k a g e / a p a c h e / M o d u l e
d e f i n e P a c k a g e / a p a c h e - m o d - $( 1)
$( call Package /apache /Default )
TITLE:= $( 2) module
DEPENDS:= apache $( patsubst +%,+PACKAGE_apache-mod-$( 1) :%,$( 4) )
e n d e f
d e f i n e P a c k a g e / a p a c h e - m o d - $( 1) / d e s c r i p t i o n
$( subst \n ,$ ( newline ) ,$ ( 3) )
e n d e f
d e f i n e P a c k a g e / a p a c h e - m o d - $( 1) / i n s t a l l
$( foreach m ,$ ( 5) ,$ ( call Package /apache /install /mod ,$ $ ( 1) ,$ ( m ) ) ;)
e n d e f
$$ ( e v a l $$ ( c a l l B u i l d P a c k a g e , a p a c h e - m o d - $( 1) ) )
e n d e f
e n d e f
$( eval $ ( call BuildPackage ,apache ) )
$( eval $ ( call BuildPackage ,apache ) )
$( eval $ ( call BuildPackage ,apache -ab ) )
$( eval $ ( call BuildPackage ,apache -error ) )
$( eval $ ( call BuildPackage ,apache -icons ) )
$( eval $ ( call BuildPackage ,apache -icons ) )
$( eval $ ( call BuildPackage ,apache -suexec ) )
$( eval $ ( call BuildPackage ,apache -utils ) )
$( eval $ ( call Package /apache /Module ,deflate ,Deflate ,Deflate support for the Apache HTTP server .,+zlib ,deflate ) )
$( eval $ ( call Package /apache /Module ,http 2,HTTP 2,HTTP /2 transport layer for the Apache HTTP Server .,+libnghttp 2 +libopenssl ,http 2) )
$( eval $ ( call Package /apache /Module ,ldap ,LDAP ,LDAP authentication /authorization module for the Apache HTTP Server .,+libaprutil -ldap ,authnz_ldap ldap ) )
$( eval $ ( call Package /apache /Module ,lua ,Lua ,Lua support for the Apache HTTP server .,+liblua ,lua ) )
$( eval $ ( call Package /apache /Module ,md ,Managed Domain handling ,Managed Domain handling .,+libcurl +jansson +libopenssl ,md ) )
$( eval $ ( call Package /apache /Module ,proxy ,Proxy ,Proxy modules for the Apache HTTP Server .,,proxy proxy_ajp proxy_balancer proxy_connect proxy_express proxy_fcgi proxy_fdpass proxy_ftp proxy_hcheck proxy_http proxy_scgi proxy_uwsgi proxy_wstunnel lbmethod_byrequests lbmethod_heartbeat lbmethod_bytraffic lbmethod_bybusyness ) )
$( eval $ ( call Package /apache /Module ,proxy -html ,Proxy HTML ,HTML and XML content filters for the Apache HTTP Server .,+apache -mod -proxy +libxml 2,proxy_html xml 2enc ) )
$( eval $ ( call Package /apache /Module ,session -crypto ,Session crypto ,Session encryption support for the Apache HTTP Server .,+libaprutil -crypto -openssl ,session_crypto ) )
$( eval $ ( call Package /apache /Module ,ssl ,SSL /TLS ,SSL /TLS module for the Apache HTTP Server .,+libopenssl ,ssl ) )
$( eval $ ( call Package /apache /Module ,suexec ,suEXEC ,suEXEC module for the Apache HTTP Server .,+apache -suexec ,suexec ) )
$( eval $ ( call Package /apache /Module ,webdav ,WebDAV ,WebDAV support for the Apache HTTP Server .,,dav dav_fs dav_lock ) )