Buildroot 2018-11 (#258)
* Update to buildroot 2018.11 * containerd update * runc update * runc docker engine * runc docker proxy * update rpi firmware * update network manager * update dhcpd * update wait on network * update rpi wifi * revert glibc
This commit is contained in:
15
buildroot/package/apache/S50apache
Normal file
15
buildroot/package/apache/S50apache
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
start|restart|graceful|graceful-stop|stop)
|
||||
apachectl -k $1
|
||||
;;
|
||||
reload)
|
||||
apachectl -k restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|restart|reload|graceful|graceful-stop|stop}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
@@ -1,3 +1,4 @@
|
||||
# From http://archive.apache.org/dist/httpd/httpd-2.4.33.tar.bz2.sha256
|
||||
sha256 de02511859b00d17845b9abdd1f975d5ccb5d0b280c567da5bf2ad4b70846f05 httpd-2.4.33.tar.bz2
|
||||
# From http://archive.apache.org/dist/httpd/httpd-2.4.35.tar.bz2.sha256
|
||||
sha256 3498dc5c6772fac2eb7307dc7963122ffe243b5e806e0be4fb51974ff759d726 httpd-2.4.37.tar.bz2
|
||||
# Locally computed
|
||||
sha256 c49c0819a726b70142621715dae3159c47b0349c2bc9db079070f28dadac0229 LICENSE
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
APACHE_VERSION = 2.4.33
|
||||
APACHE_VERSION = 2.4.37
|
||||
APACHE_SOURCE = httpd-$(APACHE_VERSION).tar.bz2
|
||||
APACHE_SITE = http://archive.apache.org/dist/httpd
|
||||
APACHE_LICENSE = Apache-2.0
|
||||
@@ -92,4 +92,17 @@ define APACHE_CLEANUP_TARGET
|
||||
endef
|
||||
APACHE_POST_INSTALL_TARGET_HOOKS += APACHE_CLEANUP_TARGET
|
||||
|
||||
define APACHE_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/apache/S50apache \
|
||||
$(TARGET_DIR)/etc/init.d/S50apache
|
||||
endef
|
||||
|
||||
define APACHE_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 package/apache/apache.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/apache.service
|
||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||
ln -sf ../../../../usr/lib/systemd/system/apache.service \
|
||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/apache.service
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
13
buildroot/package/apache/apache.service
Normal file
13
buildroot/package/apache/apache.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Apache HTTP Server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/bin/apachectl start
|
||||
ExecReload=/usr/bin/apachectl graceful
|
||||
ExecStop=/usr/bin/apachectl stop
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user