|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
# Build script for Slackware
|
|
|
|
|
# Copyright (C) 2008-2013,2015,2016 Damien Goutte-Gattat
|
|
|
|
|
# Copyright (C) 2008-2013,2015-2017 Damien Goutte-Gattat
|
|
|
|
|
#
|
|
|
|
|
# Redistribution and use of this script, with or without modifications,
|
|
|
|
|
# is permitted provided that the following conditions are met:
|
|
|
|
@ -27,13 +27,13 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos
|
|
|
|
|
NAMESRC=${NAMESRC:-postgresql}
|
|
|
|
|
VERSION=${VERSION:-9.4.8}
|
|
|
|
|
VERSION=${VERSION:-9.4.11}
|
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
|
|
|
|
|
WGET=${WGET:-https://ftp.postgresql.org/pub/source/v$VERSION/postgresql-$VERSION.tar.bz2}
|
|
|
|
|
|
|
|
|
|
# Build infos
|
|
|
|
|
NAMEPKG=${NAMEPKG:-postgresql}
|
|
|
|
|
BUILD=${BUILD:-2GGD}
|
|
|
|
|
BUILD=${BUILD:-1GGD}
|
|
|
|
|
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
|
|
|
|
|
JOBS=${JOBS:-1}
|
|
|
|
|
EXT=${EXT:-txz}
|
|
|
|
@ -76,7 +76,7 @@ if [ ! -r $ARCHIVE ]; then
|
|
|
|
|
wget -c -O $ARCHIVE.part "$WGET"
|
|
|
|
|
mv $ARCHIVE.part $ARCHIVE
|
|
|
|
|
fi
|
|
|
|
|
sha1sum -c $ARCHIVE.sha1
|
|
|
|
|
sha256sum -c $ARCHIVE.sha256
|
|
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
|
|
|
|
|
|
|
|
|
|
# Compile
|
|
|
|
@ -102,7 +102,8 @@ CXXFLAGS=$CPUOPT \
|
|
|
|
|
--with-libxml \
|
|
|
|
|
--with-libxslt \
|
|
|
|
|
--with-system-tzdata=/usr/share/zoneinfo \
|
|
|
|
|
--with-gnu-ld
|
|
|
|
|
--with-gnu-ld \
|
|
|
|
|
--build=$ARCH-slackware-linux
|
|
|
|
|
make -j $JOBS
|
|
|
|
|
make install-strip DESTDIR=$PKG
|
|
|
|
|
|
|
|
|
@ -134,14 +135,14 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
|
|
|
|
|
# Install PHP extension
|
|
|
|
|
if type -p phpize ; then
|
|
|
|
|
# Get latest PHP included with Slackware-14.2
|
|
|
|
|
PHP_ARCHIVE=php-5.6.23.tar.xz
|
|
|
|
|
PHP_ARCHIVE=php-5.6.30.tar.xz
|
|
|
|
|
(
|
|
|
|
|
cd $CWD
|
|
|
|
|
if [ ! -r $PHP_ARCHIVE ]; then
|
|
|
|
|
wget -c -O $PHP_ARCHIVE.part "http://slackware.mirrors.ovh.net/ftp.slackware.com/slackware64-14.2/source/n/php/$PHP_ARCHIVE"
|
|
|
|
|
wget -c -O $PHP_ARCHIVE.part "http://slackware.mirrors.ovh.net/ftp.slackware.com/slackware64-14.2/patches/source/php/$PHP_ARCHIVE"
|
|
|
|
|
mv $PHP_ARCHIVE.part $PHP_ARCHIVE
|
|
|
|
|
fi
|
|
|
|
|
sha1sum -c $PHP_ARCHIVE.sha1
|
|
|
|
|
sha256sum -c $PHP_ARCHIVE.sha256
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
tar xf $CWD/$PHP_ARCHIVE
|
|
|
|
|