Browse Source

ap/postgresql: Upgraded to version 8.3.7.

slackware-14.2
Damien Goutte-Gattat 12 years ago
parent
commit
3ff4ca76ff
  1. 1
      ap/postgresql/postgresql-8.3.3.tar.bz2.sha1
  2. 1
      ap/postgresql/postgresql-8.3.7.tar.bz2.sha1
  3. 57
      ap/postgresql/postgresql.SlackBuild
  4. 2
      ap/postgresql/slack-desc

1
ap/postgresql/postgresql-8.3.3.tar.bz2.sha1

@ -1 +0,0 @@
b933f26a70bef9a5971c0ff2f392e293eed138b2 postgresql-8.3.3.tar.bz2

1
ap/postgresql/postgresql-8.3.7.tar.bz2.sha1

@ -0,0 +1 @@
96facdf7229a7f18f016d86ff6cb350ca5d50bd5 postgresql-8.3.7.tar.bz2

57
ap/postgresql/postgresql.SlackBuild

@ -1,38 +1,41 @@
#!/bin/bash
# Build script for Slackware
# Damien Goutte-Gattat "gouttegd" <damien.goutte-gattat at e.ujf-grenoble.fr>
# Copyright (C) 2008,2009 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications, is
# permitted provided that the following conditions are met:
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#
# Contact: Damien Goutte-Gattat <damien.goutte-gattat@e.ujf-grenoble.fr>
#
# Latest postgresql sourcecode is available at:
# http://www.postgresql.org/
# <http://www.postgresql.org/>.
# Source package infos
NAMESRC=${NAMESRC:-postgresql}
VERSION=${VERSION:-8.3.3}
VERSION=${VERSION:-8.3.7}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-ftp://ftp3.fr.postgresql.org/pub/postgresql/source/v8.3.1/$ARCHIVE}
WGET=${WGET:-ftp://ftp4.fr.postgresql.org/pub/mirrors/postgresql/source/v$VERSION/$ARCHIVE}
# Built package infos
# Build infos
NAMETGZ=${NAMETGZ:-postgresql}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-i486}
TARGET=${TARGET:-i486}
JOBS=${JOBS:-1}
# Directories
TMP=${TMP:-/tmp}
@ -57,6 +60,9 @@ case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
;;
x86_64)
CPUOPT="-O2 -fPIC"
;;
*)
CPUOPT="-O2"
;;
@ -64,10 +70,11 @@ esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget "$WGET"
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
NAME=$(tar ft $ARCHIVE | head -1 | cut -d / -f 1)
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
cd $TMP
@ -87,13 +94,13 @@ CXXFLAGS=$CPUOPT \
--with-libxslt \
--with-system-tzdata=/usr/share/zoneinfo \
--with-gnu-ld
make -j 3
make -j $JOBS
make install DESTDIR=$PKG
# Build contribs
(
cd contrib
make -j 3
make -j $JOBS
make install DESTDIR=$PKG
)
@ -103,6 +110,10 @@ find $PKG | xargs file | grep "ELF 32-bit LSB" | cut -d : -f 1 | \
# Compress man pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
for manpage in $(find $PKG/usr/man -type l); do
ln -s $(readlink $manpage).gz $manpage.gz
rm -f $manpage
done
# Install the startup script
install -D -m 644 $CWD/rc.postgresql $PKG/etc/rc.d/rc.postgresql.new

2
ap/postgresql/slack-desc

@ -8,5 +8,5 @@ postgresql: user-defined types and functions. This distribution also contains
postgresql: C language bindings.
postgresql:
postgresql:
postgresql:
postgresql: http://www.postgresql.org/
postgresql:
Loading…
Cancel
Save