diff options
-rw-r--r-- | main/postgresql/APKBUILD | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main/postgresql/APKBUILD b/main/postgresql/APKBUILD index 1e3f029822..e4a512fb0d 100644 --- a/main/postgresql/APKBUILD +++ b/main/postgresql/APKBUILD @@ -1,13 +1,15 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=postgresql pkgver=9.5.2 -pkgrel=1 +pkgrel=2 pkgdesc="A sophisticated object-relational DBMS" url="http://www.postgresql.org/" arch="all" license="BSD" depends="postgresql-client" install="$pkgname.pre-upgrade" +pkgusers="postgres" +pkggroups="postgres" depends_dev="openssl-dev" makedepends="$depends_dev libedit-dev zlib-dev libxml2-dev util-linux-dev" subpackages="$pkgname-dev $pkgname-doc libpq $pkgname-client @@ -57,6 +59,8 @@ build() { package() { cd "$_builddir" make DESTDIR="$pkgdir" install install-docs || return 1 + install -d -m755 -o postgres -g postgres \ + "$pkgdir"/var/lib/postgresql || return 1 install -D -m755 "$srcdir"/postgresql.initd \ "$pkgdir"/etc/init.d/postgresql || return 1 |