2010-03-02 06:01:46 +01:00
|
|
|
# Template file for 'postgresql'
|
|
|
|
pkgname=postgresql
|
2011-06-20 15:19:36 +02:00
|
|
|
version=8.4.8
|
2010-03-02 06:01:46 +01:00
|
|
|
distfiles="ftp://ftp.postgresql.org/pub/source/v${version}/${pkgname}-${version}.tar.bz2"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2010-03-02 06:01:46 +01:00
|
|
|
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"
|
2011-11-12 06:01:02 +01:00
|
|
|
revision=1
|
2010-03-02 06:01:46 +01:00
|
|
|
short_desc="Sophisticated open-source Object-Relational DBMS"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-20 15:19:36 +02:00
|
|
|
homepage="http://www.postgresql.org"
|
|
|
|
license="BSD"
|
|
|
|
checksum=3e90ef2a86a9f4831e21ff4a574fbfb8e1b8c097af637c93ec43c64c684a0938
|
2010-03-02 06:01:46 +01:00
|
|
|
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."
|
|
|
|
|
2010-04-23 15:29:24 +02:00
|
|
|
stow_copy=yes
|
2010-03-02 06:01:46 +01:00
|
|
|
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.
|
2010-04-16 22:09:33 +02:00
|
|
|
openrc_services="postgresql default false"
|
2010-03-02 06:01:46 +01:00
|
|
|
|
|
|
|
|
2010-12-19 23:21:12 +01:00
|
|
|
Add_dependency build flex
|
2010-03-02 06:01:46 +01:00
|
|
|
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
|
2011-06-29 08:38:30 +02:00
|
|
|
Add_dependency build libxslt-devel
|
2010-03-02 06:01:46 +01:00
|
|
|
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
|
2010-03-02 06:45:21 +01:00
|
|
|
install -D -m644 ${FILESDIR}/postgresql.pam \
|
|
|
|
${DESTDIR}/etc/pam.d/postgresql
|
2010-03-02 06:01:46 +01:00
|
|
|
}
|