74 lines
1.8 KiB
Bash
74 lines
1.8 KiB
Bash
# Template file for 'postgresql'
|
|
pkgname=postgresql
|
|
version=16
|
|
revision=1
|
|
depends="postgresql${version}"
|
|
short_desc="PostgreSQL server meta package"
|
|
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
|
|
license="PostgreSQL"
|
|
homepage="https://www.postgresql.org"
|
|
|
|
build_options="languages"
|
|
desc_option_languages="Include procedural languages as dependency"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="languages"
|
|
fi
|
|
|
|
subpackages="postgresql-doc postgresql-client postgresql-contrib postgresql-full"
|
|
|
|
# XXX disabled for now in cross builds.
|
|
if [ "$build_option_languages" ]; then
|
|
subpackages+=" postgresql-plperl postgresql-plpython postgresql-pltcl"
|
|
fi
|
|
|
|
do_install() {
|
|
vdoc "${FILESDIR}/README.voidlinux"
|
|
}
|
|
|
|
postgresql-doc_package() {
|
|
build_style=meta
|
|
depends="postgresql${version}-doc"
|
|
short_desc="PostgreSQL documentation meta package"
|
|
}
|
|
|
|
postgresql-plperl_package() {
|
|
build_style=meta
|
|
depends="postgresql${version}-plperl"
|
|
short_desc="PL/Perl language meta package"
|
|
}
|
|
|
|
postgresql-plpython_package() {
|
|
build_style=meta
|
|
depends="postgresql${version}-plpython"
|
|
short_desc="PL/Python language meta package"
|
|
}
|
|
|
|
postgresql-pltcl_package() {
|
|
build_style=meta
|
|
depends="postgresql${version}-pltcl"
|
|
short_desc="PL/Tcl language meta package"
|
|
}
|
|
|
|
postgresql-client_package() {
|
|
build_style=meta
|
|
depends="postgresql${version}-client"
|
|
short_desc="Client frontends programs for PostgreSQL"
|
|
}
|
|
|
|
postgresql-contrib_package() {
|
|
build_style=meta
|
|
depends="postgresql${version}-contrib"
|
|
short_desc="PostgreSQL contributed programs and extensions"
|
|
}
|
|
|
|
postgresql-full_package() {
|
|
build_style=meta
|
|
depends="postgresql postgresql-client postgresql-doc postgresql-contrib postgresql-libs"
|
|
short_desc="PostgreSQL all packages meta package"
|
|
|
|
if [ "$build_option_languages" ]; then
|
|
depends+=" postgresql-plpython postgresql-plperl postgresql-pltcl"
|
|
fi
|
|
}
|