1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 12:45:20 +03:00
aports/main/postgresql-common/APKBUILD
Hoël Bézier ae00472b1c main/postgresql-common: fix pg_versions when setting default to latest
Use latest version number instead of the litteral “latest” when checking
whether postgresql is installed.
2023-02-09 12:27:59 +01:00

44 lines
1.4 KiB
Text
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.1
pkgrel=3
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
# secfixes:
# 0:
# - CVE-2019-3466
package() {
mkdir -p "$pkgdir"
install -D -m755 "$srcdir"/pg_versions "$pkgdir"/usr/sbin/pg_versions
}
openrc() {
pkgdesc="OpenRC init scripts for PostgreSQL"
depends=""
replaces="postgresql-openrc" # for backward compatibility
# Do not set install_if here.
install -D -m755 "$srcdir"/postgresql.initd "$subpkgdir"/etc/init.d/postgresql
install -D -m644 "$srcdir"/postgresql.confd "$subpkgdir"/etc/conf.d/postgresql
}
sha512sums="
3da6244dc23d89fd337ff76cdf619d9a13ef0545cb169b8592ad871e3e79719667e685d42acbd0aacee4c2aa556753530642cb24cc1322a2068f639d0b874b2b pg_versions
d7e977d2e0a358928ce6680c9ff3a3f814d305c381bf0415b6b35771f6e7f3f31b4a05db0e7cbfcab2f80c03fe5680bbc102a1b432eaadacc3b33309972b1299 postgresql.initd
282659ab16fe3af4a31396159e8374e86174bb5c31b282f2b10cdd8f673ff36a5d25d54ac0d3710364c35b3f4e047c8549deea7276ceb44780163883766bd287 postgresql.confd
"