2010-03-02 05:01:46 +00:00
|
|
|
# Template file for 'postgresql'
|
|
|
|
pkgname=postgresql
|
2012-01-28 11:20:35 +00:00
|
|
|
version=8.4.10
|
2010-03-02 05:01:46 +00:00
|
|
|
distfiles="ftp://ftp.postgresql.org/pub/source/v${version}/${pkgname}-${version}.tar.bz2"
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2010-03-02 05:01:46 +00: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 11:20:35 +00:00
|
|
|
--with-system-tzdata=/usr/share/zoneinfo --enable-nls"
|
2010-03-02 05:01:46 +00:00
|
|
|
short_desc="Sophisticated open-source Object-Relational DBMS"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-20 13:19:36 +00:00
|
|
|
homepage="http://www.postgresql.org"
|
|
|
|
license="BSD"
|
2012-01-28 11:20:35 +00:00
|
|
|
checksum=749f83e9d467b07dcd012fdf2b1615c577b410fd219b44a27bb7097bb1b07cfb
|
2010-03-02 05:01:46 +00: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 11:20:35 +00:00
|
|
|
conf_files="
|
|
|
|
/etc/default/${pkgname}
|
|
|
|
/etc/pam.d/${pkgname}
|
|
|
|
/etc/${pkgname}/${pkgname}.conf"
|
|
|
|
|
|
|
|
systemd_services="${pkgname}.service on"
|
2010-03-02 05:01:46 +00:00
|
|
|
|
|
|
|
# Create 'postgres' user for the server.
|
|
|
|
system_accounts="postgres"
|
2012-01-28 11:20:35 +00:00
|
|
|
postgres_homedir="/var/lib/${pkgname}"
|
2010-03-02 05:01:46 +00:00
|
|
|
postgres_shell="/bin/sh"
|
|
|
|
postgres_descr="PostgreSQL database server user"
|
|
|
|
|
2010-12-19 22:21:12 +00:00
|
|
|
Add_dependency build flex
|
2010-03-02 05:01:46 +00:00
|
|
|
Add_dependency build gettext
|
2012-01-28 11:20:35 +00:00
|
|
|
Add_dependency build readline-devel
|
|
|
|
Add_dependency build openssl-devel
|
2010-03-02 05:01:46 +00:00
|
|
|
Add_dependency build perl
|
|
|
|
Add_dependency build tcl-devel
|
|
|
|
Add_dependency build python-devel
|
|
|
|
Add_dependency build libxml2-devel
|
2011-06-29 06:38:30 +00:00
|
|
|
Add_dependency build libxslt-devel
|
2010-03-02 05:01:46 +00:00
|
|
|
Add_dependency build pam-devel
|
|
|
|
|
2012-01-28 11:20:35 +00:00
|
|
|
post_install() {
|
|
|
|
vinstall ${FILESDIR}/${pkgname}.confd 644 etc/default ${pkgname}
|
|
|
|
vinstall ${FILESDIR}/${pkgname}.service 644 lib/systemd/system
|
|
|
|
vinstall ${FILESDIR}/${pkgname}-initdb 755 lib/systemd/scripts
|
|
|
|
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 05:01:46 +00:00
|
|
|
}
|