2010-03-02 06:01:46 +01:00
|
|
|
# Template file for 'postgresql'
|
|
|
|
pkgname=postgresql
|
2012-07-02 11:33:29 +02:00
|
|
|
version=8.4.12
|
2012-07-10 09:16:16 +02:00
|
|
|
revision=2
|
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
|
2012-01-28 12:20:35 +01:00
|
|
|
--with-system-tzdata=/usr/share/zoneinfo --enable-nls"
|
2012-07-02 12:23:53 +02:00
|
|
|
makedepends="flex readline-devel openssl-devel perl>=5.16
|
|
|
|
tcl-devel python-devel libxml2-devel libxslt-devel pam-devel"
|
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"
|
2012-07-02 11:33:29 +02:00
|
|
|
distfiles="ftp://ftp.postgresql.org/pub/source/v${version}/${pkgname}-${version}.tar.bz2"
|
|
|
|
checksum=99b7b330ec183828988c7e8ec1b675393f24b10017a2e1d03b8ff48c4dfc0f77
|
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."
|
|
|
|
|
|
|
|
subpackages="${pkgname}-doc ${pkgname}-libs ${pkgname}-libs-devel"
|
|
|
|
subpackages="${subpackages} ${pkgname}-plperl ${pkgname}-plpython"
|
|
|
|
subpackages="${subpackages} ${pkgname}-pltcl ${pkgname}-client"
|
|
|
|
|
2012-01-28 12:20:35 +01:00
|
|
|
conf_files="
|
|
|
|
/etc/default/${pkgname}
|
|
|
|
/etc/pam.d/${pkgname}
|
|
|
|
/etc/${pkgname}/${pkgname}.conf"
|
|
|
|
|
|
|
|
systemd_services="${pkgname}.service on"
|
2010-03-02 06:01:46 +01:00
|
|
|
|
|
|
|
# Create 'postgres' user for the server.
|
|
|
|
system_accounts="postgres"
|
2012-01-28 12:20:35 +01:00
|
|
|
postgres_homedir="/var/lib/${pkgname}"
|
2010-03-02 06:01:46 +01:00
|
|
|
postgres_shell="/bin/sh"
|
|
|
|
postgres_descr="PostgreSQL database server user"
|
|
|
|
|
2012-01-28 12:20:35 +01:00
|
|
|
post_install() {
|
|
|
|
vinstall ${FILESDIR}/${pkgname}.confd 644 etc/default ${pkgname}
|
2012-07-10 09:16:16 +02:00
|
|
|
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
|
|
|
|
vinstall ${FILESDIR}/${pkgname}-initdb 755 usr/lib/systemd/scripts
|
2012-01-28 12:20:35 +01:00
|
|
|
vinstall ${FILESDIR}/${pkgname}.pam 644 etc/pam.d ${pkgname}
|
|
|
|
vinstall ${DESTDIR}/usr/share/${pkgname}/${pkgname}.conf.sample \
|
|
|
|
644 etc/${pkgname} ${pkgname}.conf
|
2010-03-02 06:01:46 +01:00
|
|
|
}
|