diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-26 08:30:00 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-26 08:30:00 +0000 |
commit | 8254de6f61ad3622bb56aacda4329a63b4a45539 (patch) | |
tree | 6f1187a490ec137b18e3ca5448a25b97adf40ba0 | |
parent | 1865db731cb0dac7cd7afcb2cb9fb675ddff9634 (diff) | |
download | aports-8254de6f61ad3622bb56aacda4329a63b4a45539.tar.bz2 aports-8254de6f61ad3622bb56aacda4329a63b4a45539.tar.xz |
main/postgresql: create homedir for postgres user
fixes #5024
-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 |