Bump buildroot to 2019.02
This commit is contained in:
15
bsp/buildroot/package/apache/S50apache
Normal file
15
bsp/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,4 +1,4 @@
|
||||
# From http://archive.apache.org/dist/httpd/httpd-2.4.35.tar.bz2.sha256
|
||||
sha256 2607c6fdd4d12ac3f583127629291e9432b247b782396a563bec5678aae69b56 httpd-2.4.35.tar.bz2
|
||||
# From http://archive.apache.org/dist/httpd/httpd-2.4.38.tar.bz2.sha256
|
||||
sha256 7dc65857a994c98370dc4334b260101a7a04be60e6e74a5c57a6dee1bc8f394a httpd-2.4.38.tar.bz2
|
||||
# Locally computed
|
||||
sha256 c49c0819a726b70142621715dae3159c47b0349c2bc9db079070f28dadac0229 LICENSE
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
APACHE_VERSION = 2.4.35
|
||||
APACHE_VERSION = 2.4.38
|
||||
APACHE_SOURCE = httpd-$(APACHE_VERSION).tar.bz2
|
||||
APACHE_SITE = http://archive.apache.org/dist/httpd
|
||||
APACHE_LICENSE = Apache-2.0
|
||||
@@ -40,7 +40,6 @@ APACHE_CONF_OPTS = \
|
||||
--without-suexec-bin \
|
||||
--enable-mods-shared=all \
|
||||
--with-mpm=$(APACHE_MPM) \
|
||||
--disable-lua \
|
||||
--disable-luajit
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
||||
@@ -57,6 +56,22 @@ APACHE_CONF_OPTS += \
|
||||
--disable-proxy-html
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LUA),y)
|
||||
APACHE_CONF_OPTS += --enable-lua
|
||||
APACHE_DEPENDENCIES += lua
|
||||
else
|
||||
APACHE_CONF_OPTS += --disable-lua
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NGHTTP2),y)
|
||||
APACHE_CONF_OPTS += \
|
||||
--enable-http2 \
|
||||
--with-nghttp2=$(STAGING_DIR)/usr
|
||||
APACHE_DEPENDENCIES += nghttp2
|
||||
else
|
||||
APACHE_CONF_OPTS += --disable-http2
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
APACHE_DEPENDENCIES += openssl
|
||||
APACHE_CONF_OPTS += \
|
||||
@@ -86,4 +101,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
bsp/buildroot/package/apache/apache.service
Normal file
13
bsp/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