apache: added systemd build option; fix -mpm-{event,worker} builds with libressl.

This commit is contained in:
Juan RP
2014-08-21 11:17:40 +02:00
parent 6ad5ef310e
commit fb458ace0e
5 changed files with 35 additions and 11 deletions

View File

@@ -0,0 +1 @@
../apache/patches

View File

@@ -20,7 +20,9 @@ short_desc="Apache HTTP Server - high speed threaded mode"
# dlopen(3) run-time dependencies.
depends="apache>=$version"
systemd_services="apache-mpm-worker.service on"
if [ "$build_option_systemd" ]; then
systemd_services="apache-mpm-worker.service on"
fi
pre_configure() {
cat ${XBPS_SRCPKGDIR}/apache/files/xbps.layout >> config.layout
@@ -31,5 +33,7 @@ post_install() {
cp -f ${DESTDIR}/usr/sbin/httpd ${wrksrc}
rm -rf ${DESTDIR}/*
vinstall httpd 755 usr/sbin httpd.worker
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
fi
}