2010-04-30 16:27:07 +02:00
|
|
|
# Template file for 'apache'
|
|
|
|
pkgname=apache
|
2015-07-16 07:16:17 +02:00
|
|
|
version=2.4.16
|
|
|
|
revision=1
|
2010-04-30 16:27:07 +02:00
|
|
|
wrksrc=httpd-${version}
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2015-06-02 11:26:56 +02:00
|
|
|
configure_args="--prefix= --sbindir=/usr/bin --enable-pie --enable-modules=all
|
2013-04-12 08:55:23 +02:00
|
|
|
--enable-mods-shared=all --enable-authn-dbm --enable-authn-anon
|
|
|
|
--enable-authn-dbd --enable-authn-alias --enable-authz-dbm
|
|
|
|
--enable-authz-owner --enable-authnz-ldap --enable-auth-digest -enable-isapi
|
|
|
|
--enable-file-cache --enable-cache --enable-disk-cache --enable-mem-cache
|
|
|
|
--enable-dbd --enable-bucketeer --enable-dumpio --enable-echo --enable-reqtimeout
|
|
|
|
--enable-ext-filter --enable-substitute --enable-deflate --enable-charset-lite
|
|
|
|
--enable-ldap --enable-log-forensic --enable-logio --enable-mime-magic
|
|
|
|
--enable-cern-meta --enable-expires --enable-headers --enable-ident
|
|
|
|
--enable-usertrack --enable-unique-id --enable-proxy --enable-proxy-connect
|
|
|
|
--enable-proxy-ftp --enable-proxy-http --enable-proxy-scgi --enable-proxy-ajp
|
|
|
|
--enable-proxy-balancer --enable-ssl --enable-http --enable-speling
|
|
|
|
--enable-dav --enable-info --enable-cgi --enable-cgid --enable-dav-fs
|
|
|
|
--enable-dav-lock --enable-vhost-alias --enable-imagemap --enable-so
|
2015-01-07 09:16:59 +01:00
|
|
|
--enable-rewrite --with-pcre=/usr --enable-layout=XBPS --sysconfdir=/etc/httpd
|
|
|
|
--enable-mpms-shared=all"
|
2013-04-12 08:55:23 +02:00
|
|
|
hostmakedepends="pkg-config perl"
|
2015-03-27 10:50:40 +01:00
|
|
|
makedepends="zlib-devel libuuid-devel pcre-devel
|
|
|
|
libressl-devel db-devel gdbm-devel expat-devel libldap-devel apr-util-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="
|
|
|
|
/etc/httpd/extra/httpd-autoindex.conf
|
|
|
|
/etc/httpd/extra/httpd-dav.conf
|
|
|
|
/etc/httpd/extra/httpd-manual.conf
|
|
|
|
/etc/httpd/extra/httpd-vhosts.conf
|
|
|
|
/etc/httpd/extra/httpd-info.conf
|
|
|
|
/etc/httpd/extra/httpd-languages.conf
|
|
|
|
/etc/httpd/extra/httpd-userdir.conf
|
|
|
|
/etc/httpd/extra/httpd-ssl.conf
|
|
|
|
/etc/httpd/extra/httpd-mpm.conf
|
|
|
|
/etc/httpd/extra/httpd-default.conf
|
|
|
|
/etc/httpd/extra/httpd-multilang-errordoc.conf
|
|
|
|
/etc/httpd/httpd.conf
|
|
|
|
/etc/httpd/magic
|
|
|
|
/etc/httpd/mime.types"
|
2010-04-30 16:27:07 +02:00
|
|
|
short_desc="The Number One HTTP Server On The Internet"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-07-05 10:18:28 +02:00
|
|
|
homepage="http://httpd.apache.org/"
|
|
|
|
license="Apache-2.0"
|
2013-04-12 08:55:23 +02:00
|
|
|
distfiles="http://www.apache.org/dist/httpd/httpd-${version}.tar.bz2"
|
2015-07-16 07:16:17 +02:00
|
|
|
checksum=ac660b47aaa7887779a6430404dcb40c0b04f90ea69e7bd49a40552e9ff13743
|
2010-04-30 16:27:07 +02:00
|
|
|
|
2014-08-21 11:17:40 +02:00
|
|
|
system_accounts="httpd"
|
|
|
|
httpd_descr="Apache HTTP server"
|
|
|
|
httpd_homedir="/srv/httpd"
|
|
|
|
|
|
|
|
make_dirs="
|
|
|
|
/var/log/httpd 0755 root httpd
|
|
|
|
/srv/httpd 0755 root httpd
|
|
|
|
/srv/httpd/cgi-bin 755 root httpd"
|
|
|
|
|
2012-01-27 10:47:02 +01:00
|
|
|
pre_configure() {
|
2015-01-06 06:13:02 +01:00
|
|
|
# set default user
|
2010-04-30 16:27:07 +02:00
|
|
|
sed -e 's#User daemon#User httpd#' \
|
2015-01-06 06:13:02 +01:00
|
|
|
-e 's#Group daemon#Group httpd#' \
|
|
|
|
-i docs/conf/httpd.conf.in
|
2010-04-30 16:27:07 +02:00
|
|
|
|
2012-01-27 10:47:02 +01:00
|
|
|
cat ${FILESDIR}/xbps.layout >> config.layout
|
2010-04-30 16:27:07 +02:00
|
|
|
}
|
|
|
|
|
2012-01-27 10:47:02 +01:00
|
|
|
post_install() {
|
2015-01-06 07:36:37 +01:00
|
|
|
# Set a working ServerRoot
|
|
|
|
#
|
|
|
|
# Load modules:
|
|
|
|
# * mod_include.so
|
|
|
|
# * mod_slotmem_shm.so
|
|
|
|
# * mod_negotiation.so
|
|
|
|
# * mod_userdir.so
|
2015-01-06 04:54:49 +01:00
|
|
|
#
|
2015-01-06 07:36:37 +01:00
|
|
|
# Avoid loading modules:
|
|
|
|
# * mod_unique_id.so
|
2015-01-06 04:54:49 +01:00
|
|
|
#
|
2015-01-06 07:36:37 +01:00
|
|
|
# Set and enable ServerName to 127.0.0.1.
|
2015-01-06 04:54:49 +01:00
|
|
|
#
|
2015-01-06 07:36:37 +01:00
|
|
|
# include extras:
|
|
|
|
# * httpd-multilang-errordoc.conf
|
|
|
|
# * httpd-autoindex.conf
|
|
|
|
# * httpd-languages.conf
|
|
|
|
# * httpd-userdir.conf
|
|
|
|
# * httpd-default.conf
|
2015-01-06 04:54:49 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
sed \
|
2015-01-06 07:36:37 +01:00
|
|
|
-e 's|ServerRoot ""|ServerRoot "/etc/httpd"|' \
|
|
|
|
-e 's|#\(LoadModule include_module /usr/libexec/httpd/mod_include.so\)|\1|' \
|
|
|
|
-e 's|\(LoadModule unique_id_module /usr/libexec/httpd/mod_unique_id.so\)|#\1|' \
|
|
|
|
-e 's|#\(LoadModule slotmem_shm_module /usr/libexec/httpd/mod_slotmem_shm.so\)|\1|' \
|
|
|
|
-e 's|#\(LoadModule negotiation_module /usr/libexec/httpd/mod_negotiation.so\)|\1|' \
|
|
|
|
-e 's|#\(LoadModule userdir_module /usr/libexec/httpd/mod_userdir.so\)|\1|' \
|
|
|
|
-e 's|#ServerName www.example.com:80|ServerName 127.0.0.1:80|' \
|
|
|
|
-e 's|#\(Include /etc/httpd/extra/httpd-multilang-errordoc.conf\)|\1|' \
|
2010-04-30 16:27:07 +02:00
|
|
|
-e 's|#\(Include /etc/httpd/extra/httpd-autoindex.conf\)|\1|' \
|
2015-01-06 07:36:37 +01:00
|
|
|
-e 's|#\(Include /etc/httpd/extra/httpd-languages.conf\)|\1|' \
|
|
|
|
-e 's|#\(Include /etc/httpd/extra/httpd-userdir.conf\)|\1|' \
|
2010-04-30 16:27:07 +02:00
|
|
|
-e 's|#\(Include /etc/httpd/extra/httpd-default.conf\)|\1|' \
|
2015-01-06 07:36:37 +01:00
|
|
|
-i "${DESTDIR}/etc/httpd/httpd.conf"
|
2010-04-30 16:27:07 +02:00
|
|
|
|
2015-01-06 06:13:02 +01:00
|
|
|
# symlinks for /etc/httpd
|
2010-04-30 16:27:07 +02:00
|
|
|
ln -fs /var/log/httpd ${DESTDIR}/etc/httpd/logs
|
|
|
|
ln -fs /var/run/httpd ${DESTDIR}/etc/httpd/run
|
|
|
|
ln -fs /usr/libexec/httpd ${DESTDIR}/etc/httpd/modules
|
|
|
|
ln -fs /usr/share/apache-httpd/build ${DESTDIR}/etc/httpd/build
|
|
|
|
|
|
|
|
# Remove unused stuff.
|
2015-03-20 16:00:18 +01:00
|
|
|
mv ${DESTDIR}/srv/httpd/cgi-bin ${DESTDIR}/usr/share/apache-httpd
|
|
|
|
rm -rf ${DESTDIR}/srv/httpd
|
2010-04-30 16:27:07 +02:00
|
|
|
|
2012-01-27 10:47:02 +01:00
|
|
|
# systemd and logrotate files.
|
2011-07-05 10:34:31 +02:00
|
|
|
vinstall ${FILESDIR}/apache.logrotate 644 etc/logrotate.d apache
|
2014-08-21 11:17:40 +02:00
|
|
|
|
2014-10-13 18:15:08 +02:00
|
|
|
vsv apache
|
|
|
|
|
2010-04-30 16:27:07 +02:00
|
|
|
rm -rf ${DESTDIR}/etc/httpd/original
|
|
|
|
}
|
2013-04-12 08:55:23 +02:00
|
|
|
|
|
|
|
apache-devel_package() {
|
|
|
|
depends="apr-devel apr-util-devel perl"
|
2013-07-24 20:04:38 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 08:55:23 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share/apache-httpd/build
|
|
|
|
vmove usr/bin/apxs
|
|
|
|
vmove "usr/share/man/man1/apxs*"
|
|
|
|
}
|
|
|
|
}
|