void-packages/srcpkgs/postgresql/template

61 lines
2.1 KiB
Text
Raw Normal View History

# Template file for 'postgresql'
pkgname=postgresql
version=8.4.2
revision=1
distfiles="ftp://ftp.postgresql.org/pub/source/v${version}/${pkgname}-${version}.tar.bz2"
build_style=gnu_configure
configure_args="--with-docdir=/usr/share/doc --with-openssl --with-python
--with-pam --datadir=/usr/share/postgresql --enable-thread-safety
--with-perl --with-tcl --without-ldap --without-gssapi --without-krb5
--without-bonjour --with-libxml --with-libxslt --disable-rpath
--with-system-tzdata=/usr/share/zoneinfo --enable-nls --with-gnu-ld"
short_desc="Sophisticated open-source Object-Relational DBMS"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=adb3c5c90396195d76e986f835c2bd0e0dad438f91f4dc2b62048caf6d9869f2
long_desc="
PostgreSQL is a powerful, open source object-relational database system.
It has more than 15 years of active development and a proven architecture
that has earned it a strong reputation for reliability, data integrity,
and correctness."
subpackages="${pkgname}-doc ${pkgname}-libs ${pkgname}-libs-devel"
subpackages="${subpackages} ${pkgname}-plperl ${pkgname}-plpython"
subpackages="${subpackages} ${pkgname}-pltcl ${pkgname}-client"
conf_files="/etc/conf.d/postgresql"
# Create 'postgres' user for the server.
system_accounts="postgres"
postgres_homedir="/var/lib/postgresql"
postgres_shell="/bin/sh"
postgres_descr="PostgreSQL database server user"
# Add the OpenRC service.
openrc_services="postgresql default"
Add_dependency run glibc
Add_dependency run pam
Add_dependency run openssl
Add_dependency run libxml2
Add_dependency run postgresql-libs
Add_dependency build gettext
Add_dependency build perl
Add_dependency build tcl-devel
Add_dependency build python-devel
Add_dependency build openssl-devel
Add_dependency build zlib-devel
Add_dependency build libxml2-devel
Add_dependency build pam-devel
Add_dependency build readline-devel
post_install()
{
install -D -m644 ${FILESDIR}/postgresql.confd \
${DESTDIR}/etc/conf.d/postgresql
install -D -m755 ${FILESDIR}/postgresql.rc \
${DESTDIR}/etc/init.d/postgresql
install -D -m644 ${FILESDIR}/postgresql.pam \
${DESTDIR}/etc/pam.d/postgresql
}