postgresql: update to 8.4.17; added rudimentary cross build support.

This commit is contained in:
Juan RP 2013-07-25 09:59:19 +02:00
parent a65b18a0de
commit 0f35b7754f

View file

@ -1,7 +1,7 @@
# Template file for 'postgresql'
pkgname=postgresql
version=8.4.15
revision=4
version=8.4.17
revision=1
build_style=gnu-configure
configure_args="--with-docdir=/usr/share/doc --with-openssl --with-python
--with-pam --datadir=/usr/share/postgresql --enable-thread-safety
@ -13,7 +13,7 @@ maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.postgresql.org"
license="BSD"
distfiles="ftp://ftp.postgresql.org/pub/source/v${version}/${pkgname}-${version}.tar.bz2"
checksum=6a83771bbbdf1ad9c1dd900da3fbfdf6ef75857db8e012f7129a1f865279bc4d
checksum=dc884c34ec3535d9f8b579155948a703def0574aca47292b97b82a8189cd0436
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
@ -21,9 +21,14 @@ long_desc="
and correctness."
hostmakedepends="flex"
makedepends="readline-devel openssl-devel perl>=5.16
makedepends="libfl-devel readline-devel openssl-devel perl>=5.16
tcl-devel>=8.6 python-devel libxml2-devel libxslt-devel pam-devel"
if [ "$CROSS_BUILD" ]; then
CPPFLAGS="-I$XBPS_CROSS_BASE/usr/include/libxml2"
configure_args+=" --without-perl --without-python --without-tcl"
fi
post_install() {
vinstall ${FILESDIR}/${pkgname}.confd 644 etc/default ${pkgname}
vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system
@ -72,6 +77,9 @@ postgresql-libs-devel_package() {
}
}
# XXX disabled for now in cross builds.
if [ -z "$CROSS_BUILD" ]; then
postgresql-plperl_package() {
depends="perl>=5.16 postgresql>=$version"
short_desc="PL/Perl procedural language for PostgreSQL"
@ -113,6 +121,8 @@ postgresql-pltcl_package() {
}
}
fi # !CROSS_BUILD
postgresql-client_package() {
short_desc="Client frontends programs for PostgreSQL"
pkg_install() {