From 2a0d404de49243954942d8091f8c19132bc143f3 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Sun, 5 Jan 2020 21:49:48 +0100 Subject: [PATCH] postgresql: add termux-services script for postgres --- packages/postgresql/build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/postgresql/build.sh b/packages/postgresql/build.sh index b620f917f..420c8a359 100644 --- a/packages/postgresql/build.sh +++ b/packages/postgresql/build.sh @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Object-relational SQL database" TERMUX_PKG_LICENSE="BSD" TERMUX_PKG_MAINTAINER='Vishal Biswas @vishalbiswas' TERMUX_PKG_VERSION=12.1 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://ftp.postgresql.org/pub/source/v$TERMUX_PKG_VERSION/postgresql-$TERMUX_PKG_VERSION.tar.bz2 TERMUX_PKG_SHA256=a09bf3abbaf6763980d0f8acbb943b7629a8b20073de18d867aecdb7988483ed TERMUX_PKG_DEPENDS="openssl, libcrypt, readline, libandroid-shmem, libuuid, libxml2, libicu, zlib" @@ -28,6 +29,7 @@ TERMUX_PKG_RM_AFTER_INSTALL="lib/libecpg* bin/ecpg share/man/man1/ecpg.1" TERMUX_PKG_HOSTBUILD=true TERMUX_PKG_BREAKS="postgresql-contrib (<= 10.3-1), postgresql-dev" TERMUX_PKG_REPLACES="postgresql-contrib (<= 10.3-1), postgresql-dev" +TERMUX_PKG_SERVICE_SCRIPT=("postgres" 'mkdir -p ~/.postgres\nexec postgres -D ~/.postgres/ 2>&1') termux_step_host_build() { # Build a native zic binary which we have patched to