2022-05-06 23:45:36 +02:00

39 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
pkgname=postgresql-common
pkgver=1.0
pkgrel=1
pkgdesc="Common files for PostgreSQL"
url="https://www.postgresql.org/"
arch="noarch"
license="MIT"
install="$pkgname.pre-install $pkgname.pre-deinstall"
triggers="$pkgname.trigger=/usr/libexec/postgresql*:/usr/share/postgresql*"
subpackages="$pkgname-openrc"
source="pg_versions
postgresql.initd
postgresql.confd
"
builddir="$srcdir"
options="!check" # no tests
package() {
mkdir -p "$pkgdir"
install -D -m755 "$srcdir"/pg_versions "$pkgdir"/usr/sbin/pg_versions
install -D -m755 "$srcdir"/postgresql.initd "$pkgdir"/etc/init.d/postgresql
install -D -m644 "$srcdir"/postgresql.confd "$pkgdir"/etc/conf.d/postgresql
}
openrc() {
default_openrc
replaces="postgresql-openrc" # for backward compatibility
}
sha512sums="
f9887e260bbcccb1a96030d3065459f1c0b4b8c50e62008ab1e0964e5b281de330e3d25b311eb88a729c23342193bedb3549913b24facd4f39c1398f819c0d8c pg_versions
be0e1afaaf1d376f1d57d300d4bb314113b18bde4cd565a0532556c6ec753576eb9cbc08bdf7b18e3f1f63054cf8c96656c5216918642c54689c06a9a5e79992 postgresql.initd
611cca04bdf97284bca2c85688e3512dd5fcce2c1d40dcf2082855008cbe988dccbdc589af5021a120b2de10455b3700712f99d1b60da1e10ee953516f030db5 postgresql.confd
"