2010-04-30 14:27:07 +00:00
|
|
|
# Template file for 'apache'
|
|
|
|
pkgname=apache
|
2014-07-22 19:11:29 +00:00
|
|
|
version=2.4.10
|
2014-10-13 16:15:08 +00:00
|
|
|
revision=3
|
2010-04-30 14:27:07 +00:00
|
|
|
wrksrc=httpd-${version}
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2010-04-30 14:27:07 +00:00
|
|
|
configure_args="--prefix= --enable-pie --enable-modules=all
|
2013-04-12 06:55:23 +00: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
|
|
|
|
--enable-rewrite --with-pcre=/usr --enable-layout=XBPS --sysconfdir=/etc/httpd"
|
|
|
|
hostmakedepends="pkg-config perl"
|
|
|
|
makedepends="zlib-devel libuuid-devel pcre-devel>=8.30
|
2014-07-15 16:51:30 +00:00
|
|
|
libressl-devel db-devel gdbm-devel expat-devel libldap-devel apr-util-devel"
|
2014-01-01 15:10:11 +00: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 14:27:07 +00:00
|
|
|
short_desc="The Number One HTTP Server On The Internet"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-07-05 08:18:28 +00:00
|
|
|
homepage="http://httpd.apache.org/"
|
2014-11-01 17:35:36 +00:00
|
|
|
update_site="http://httpd.apache.org/download.cgi"
|
|
|
|
update_pattern='httpd-\K[\d.]+'
|
2011-07-05 08:18:28 +00:00
|
|
|
license="Apache-2.0"
|
2013-04-12 06:55:23 +00:00
|
|
|
distfiles="http://www.apache.org/dist/httpd/httpd-${version}.tar.bz2"
|
2014-07-22 19:11:29 +00:00
|
|
|
checksum=176c4dac1a745f07b7b91e7f4fd48f9c48049fa6f088efe758d61d9738669c6a
|
2010-04-30 14:27:07 +00:00
|
|
|
|
2014-10-13 16:15:08 +00:00
|
|
|
replaces="runit-void<20141013_2"
|
2014-08-21 09:17:40 +00: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"
|
|
|
|
|
|
|
|
build_options="systemd"
|
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
systemd_services="apache.service on"
|
|
|
|
fi
|
|
|
|
|
2012-01-27 09:47:02 +00:00
|
|
|
pre_configure() {
|
2014-10-13 16:15:08 +00:00
|
|
|
# SSL_CTX_use_certificate_chain() conflicts with libressl-2.1.
|
|
|
|
sed -e 's,SSL_CTX_use_certificate_chain,_SSL_CTX_use_certificate_chain,g' -i modules/ssl/*.[ch]
|
|
|
|
|
2010-04-30 14:27:07 +00:00
|
|
|
# set default user
|
|
|
|
sed -e 's#User daemon#User httpd#' \
|
|
|
|
-e 's#Group daemon#Group httpd#' \
|
2012-01-27 09:47:02 +00:00
|
|
|
-i docs/conf/httpd.conf.in
|
2010-04-30 14:27:07 +00:00
|
|
|
|
2012-01-27 09:47:02 +00:00
|
|
|
cat ${FILESDIR}/xbps.layout >> config.layout
|
2010-04-30 14:27:07 +00:00
|
|
|
}
|
|
|
|
|
2012-01-27 09:47:02 +00:00
|
|
|
post_install() {
|
2010-04-30 14:27:07 +00:00
|
|
|
# Enable userdir, languages, autoindex, errors.
|
|
|
|
# Set a working ServerRoot, disable mod_unique_id.
|
|
|
|
# Set and enable ServerName to 127.0.0.1.
|
|
|
|
sed -e 's|#\(Include /etc/httpd/extra/httpd-multilang-errordoc.conf\)|\1|' \
|
|
|
|
-e 's|#\(Include /etc/httpd/extra/httpd-autoindex.conf\)|\1|' \
|
|
|
|
-e 's|#\(Include /etc/httpd/extra/httpd-languages.conf\)|\1|' \
|
|
|
|
-e 's|#\(Include /etc/httpd/extra/httpd-userdir.conf\)|\1|' \
|
|
|
|
-e 's|#\(Include /etc/httpd/extra/httpd-default.conf\)|\1|' \
|
|
|
|
-e 's|ServerRoot \"\"|ServerRoot \"/etc/httpd\"|' \
|
|
|
|
-e 's|#\(ServerName\).*|\1 127.0.0.1:80|' \
|
|
|
|
-e 's|\(LoadModule unique_id_module.*\)|#\1|' \
|
2011-07-05 08:34:31 +00:00
|
|
|
-i ${DESTDIR}/etc/httpd/httpd.conf
|
2010-04-30 14:27:07 +00:00
|
|
|
|
|
|
|
# symlinks for /etc/httpd
|
|
|
|
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.
|
|
|
|
rm -f ${DESTDIR}/srv/httpd/cgi-bin/test-cgi
|
|
|
|
rm -f ${DESTDIR}/srv/httpd/cgi-bin/printenv
|
|
|
|
rm -f ${DESTDIR}/srv/httpd/index.html
|
|
|
|
|
2012-01-27 09:47:02 +00:00
|
|
|
# systemd and logrotate files.
|
2011-07-05 08:34:31 +00:00
|
|
|
vinstall ${FILESDIR}/apache.logrotate 644 etc/logrotate.d apache
|
2014-08-21 09:17:40 +00:00
|
|
|
|
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vinstall ${FILESDIR}/apache.service 644 usr/lib/systemd/system
|
|
|
|
vinstall ${FILESDIR}/apache.tmpfiles 644 usr/lib/tmpfiles.d apache.conf
|
|
|
|
fi
|
2010-04-30 14:27:07 +00:00
|
|
|
|
2014-10-13 16:15:08 +00:00
|
|
|
vsv apache
|
|
|
|
|
2010-04-30 14:27:07 +00:00
|
|
|
rm -rf ${DESTDIR}/etc/httpd/original
|
|
|
|
}
|
2013-04-12 06:55:23 +00:00
|
|
|
|
|
|
|
apache-devel_package() {
|
|
|
|
depends="apr-devel apr-util-devel perl"
|
2013-07-24 18:04:38 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 06:55:23 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share/apache-httpd/build
|
|
|
|
vmove usr/bin/apxs
|
|
|
|
vmove "usr/share/man/man1/apxs*"
|
|
|
|
}
|
|
|
|
}
|