Update Buildroot to 2019.02.3 (#415)
* Update Buildroot to 2019-02.3 * Fix enter script * Update ova_defconfig * Fix network manager * Remove runc patches * Use same docker version * Fix build * Fix vmtools * Fix depens * Fix handling with tempfiles * Fix permission handling * Fix cp * Cleanup * Fix mounts
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# From https://ftp.postgresql.org/pub/source/v11.1/postgresql-11.1.tar.bz2.md5
|
||||
md5 5e45f6d5b859cc76b5d62f1e328e9711 postgresql-11.1.tar.bz2
|
||||
# From https://ftp.postgresql.org/pub/source/v11.1/postgresql-11.1.tar.bz2.sha256
|
||||
sha256 90815e812874831e9a4bf6e1136bf73bc2c5a0464ef142e2dfea40cda206db08 postgresql-11.1.tar.bz2
|
||||
# From https://ftp.postgresql.org/pub/source/v11.3/postgresql-11.3.tar.bz2.md5
|
||||
md5 c2a729b754b8de86a969c86ec25db076 postgresql-11.3.tar.bz2
|
||||
# From https://ftp.postgresql.org/pub/source/v11.3/postgresql-11.3.tar.bz2.sha256
|
||||
sha256 2a85e082fc225944821dfd23990e32dfcd2284c19060864b0ad4ca537d30522d postgresql-11.3.tar.bz2
|
||||
|
||||
# License file, Locally calculated
|
||||
sha256 24cfc70cf16b3a23242c49ffce39510683bdd48cbedb8a46fe03976ee5f5c21e COPYRIGHT
|
||||
sha256 c4c86d683970b22b9fab53320ee1b3a30ef4e8223122b4fb6be53ea62ecee8b3 COPYRIGHT
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
POSTGRESQL_VERSION = 11.1
|
||||
POSTGRESQL_VERSION = 11.3
|
||||
POSTGRESQL_SOURCE = postgresql-$(POSTGRESQL_VERSION).tar.bz2
|
||||
POSTGRESQL_SITE = http://ftp.postgresql.org/pub/source/v$(POSTGRESQL_VERSION)
|
||||
POSTGRESQL_LICENSE = PostgreSQL
|
||||
@@ -14,8 +14,10 @@ POSTGRESQL_CONFIG_SCRIPTS = pg_config
|
||||
POSTGRESQL_CONF_ENV = \
|
||||
ac_cv_type_struct_sockaddr_in6=yes \
|
||||
pgac_cv_snprintf_long_long_int_modifier="ll" \
|
||||
pgac_cv_snprintf_size_t_support=yes
|
||||
pgac_cv_snprintf_size_t_support=yes \
|
||||
LIBS=$(TARGET_NLS_LIBS)
|
||||
POSTGRESQL_CONF_OPTS = --disable-rpath
|
||||
POSTGRESQL_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
|
||||
|
||||
# https://www.postgresql.org/docs/11/static/install-procedure.html:
|
||||
# "If you want to invoke the build from another makefile rather than
|
||||
@@ -83,6 +85,22 @@ else
|
||||
POSTGRESQL_CONF_OPTS += --without-libxml
|
||||
endif
|
||||
|
||||
# required for postgresql.service Type=notify
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
||||
POSTGRESQL_DEPENDENCIES += systemd
|
||||
POSTGRESQL_CONF_OPTS += --with-systemd
|
||||
else
|
||||
POSTGRESQL_CONF_OPTS += --without-systemd
|
||||
endif
|
||||
|
||||
POSTGRESQL_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
|
||||
POSTGRESQL_CFLAGS += -O0
|
||||
endif
|
||||
|
||||
POSTGRESQL_CONF_ENV += CFLAGS="$(POSTGRESQL_CFLAGS)"
|
||||
|
||||
define POSTGRESQL_USERS
|
||||
postgres -1 postgres -1 * /var/lib/pgsql /bin/sh - PostgreSQL Server
|
||||
endef
|
||||
|
||||
@@ -3,7 +3,7 @@ Description=PostgreSQL database server
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Type=notify
|
||||
|
||||
# start timeout disabled because initdb may run a little
|
||||
# longer (eg. 5 minutes on RaspberryPi)
|
||||
@@ -12,13 +12,17 @@ TimeoutStartSec=0
|
||||
User=postgres
|
||||
Group=postgres
|
||||
|
||||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
SyslogIdentifier=postgres
|
||||
PIDFile=/var/lib/pgsql/postmaster.pid
|
||||
|
||||
ExecStartPre=/bin/sh -c "if [ ! -f /var/lib/pgsql/PG_VERSION ]; then /usr/bin/pg_ctl initdb -D /var/lib/pgsql; fi"
|
||||
ExecStart=/usr/bin/pg_ctl start -D /var/lib/pgsql -w -l /var/lib/pgsql/logfile
|
||||
ExecReload=/usr/bin/pg_ctl reload -D /var/lib/pgsql
|
||||
ExecStop=/usr/bin/pg_ctl stop -D /var/lib/pgsql -m fast
|
||||
ExecStart=/usr/bin/postgres -D /var/lib/pgsql
|
||||
ExecReload=/usr/bin/kill -HUP $MAINPID
|
||||
KillMode=mixed
|
||||
KillSignal=SIGINT
|
||||
TimeoutSec=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user