apache: added runit service.
This commit is contained in:
parent
8f7625c196
commit
41fc71d59c
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
mkdir -p /run/httpd || exit 1
|
||||||
|
chmod 0710 /run/httpd || exit 1
|
||||||
|
chown root:httpd /run/httpd || exit 1
|
||||||
|
exec httpd -DNO_DETACH
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'apache'
|
# Template file for 'apache'
|
||||||
pkgname=apache
|
pkgname=apache
|
||||||
version=2.4.10
|
version=2.4.10
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc=httpd-${version}
|
wrksrc=httpd-${version}
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--prefix= --enable-pie --enable-modules=all
|
configure_args="--prefix= --enable-pie --enable-modules=all
|
||||||
|
@ -44,6 +44,7 @@ license="Apache-2.0"
|
||||||
distfiles="http://www.apache.org/dist/httpd/httpd-${version}.tar.bz2"
|
distfiles="http://www.apache.org/dist/httpd/httpd-${version}.tar.bz2"
|
||||||
checksum=176c4dac1a745f07b7b91e7f4fd48f9c48049fa6f088efe758d61d9738669c6a
|
checksum=176c4dac1a745f07b7b91e7f4fd48f9c48049fa6f088efe758d61d9738669c6a
|
||||||
|
|
||||||
|
replaces="runit-void<20141013_2"
|
||||||
system_accounts="httpd"
|
system_accounts="httpd"
|
||||||
httpd_descr="Apache HTTP server"
|
httpd_descr="Apache HTTP server"
|
||||||
httpd_homedir="/srv/httpd"
|
httpd_homedir="/srv/httpd"
|
||||||
|
@ -59,6 +60,9 @@ if [ "$build_option_systemd" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
|
# 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]
|
||||||
|
|
||||||
# set default user
|
# set default user
|
||||||
sed -e 's#User daemon#User httpd#' \
|
sed -e 's#User daemon#User httpd#' \
|
||||||
-e 's#Group daemon#Group httpd#' \
|
-e 's#Group daemon#Group httpd#' \
|
||||||
|
@ -100,6 +104,8 @@ post_install() {
|
||||||
vinstall ${FILESDIR}/apache.tmpfiles 644 usr/lib/tmpfiles.d apache.conf
|
vinstall ${FILESDIR}/apache.tmpfiles 644 usr/lib/tmpfiles.d apache.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
vsv apache
|
||||||
|
|
||||||
rm -rf ${DESTDIR}/etc/httpd/original
|
rm -rf ${DESTDIR}/etc/httpd/original
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue