php81: Removed since same as php82
This commit is contained in:
parent
70a636a804
commit
6719d2d81d
@ -1,7 +0,0 @@
|
|||||||
PHP is an HTML-embedded scripting language. It shares syntax
|
|
||||||
characteristics with C, Java, and Perl. The primary objective behind
|
|
||||||
this language is to make a fast and easy-to-use scripting language for
|
|
||||||
dynamic web sites.
|
|
||||||
|
|
||||||
This installation is compatible with the official php package and
|
|
||||||
doesn't overwrit any stock files.
|
|
@ -1,18 +0,0 @@
|
|||||||
config() {
|
|
||||||
NEW="$1"
|
|
||||||
OLD="`dirname $NEW`/`basename $NEW .new`"
|
|
||||||
# If there's no config file by that name, mv it over:
|
|
||||||
if [ ! -r $OLD ]; then
|
|
||||||
mv $NEW $OLD
|
|
||||||
elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
|
|
||||||
rm $NEW
|
|
||||||
fi
|
|
||||||
# Otherwise, we leave the .new copy for the admin to consider...
|
|
||||||
}
|
|
||||||
# Keep same perms on rc.php-fpm.new:
|
|
||||||
if [ -e etc/rc.d/rc.php-fpm-8.1 ]; then
|
|
||||||
cp -a etc/rc.d/rc.php-fpm-8.1 etc/rc.d/rc.php-fpm-8.1.new.incoming
|
|
||||||
cat etc/rc.d/rc.php-fpm-8.1.new > etc/rc.d/rc.php-fpm-8.1.new.incoming
|
|
||||||
mv etc/rc.d/rc.php-fpm-8.1.new.incoming etc/rc.d/rc.php-fpm-8.1.new
|
|
||||||
fi
|
|
||||||
config etc/rc.d/rc.php-fpm-8.1.new
|
|
@ -1,221 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Build and package PHP FPM 8.1
|
|
||||||
# Copyright 2022 Eugene Wissner, Germany, Dachau
|
|
||||||
#
|
|
||||||
# by: David Cantrell <david@slackware.com>
|
|
||||||
# Modified for PHP 4-5 by volkerdi@slackware.com
|
|
||||||
# Copyright 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2015, 2017, 2019, 2020, 2021 Patrick Volkerding, Sebeka, MN, USA
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# Redistribution and use of this script, with or without modification, 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.
|
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
|
|
||||||
cd $(dirname $0) ; CWD=$(pwd)
|
|
||||||
|
|
||||||
PRGNAM=php81
|
|
||||||
VERSION=${VERSION:-8.1.14}
|
|
||||||
BUILD=${BUILD:-1}
|
|
||||||
TAG=${TAG:-_SBo}
|
|
||||||
PKGTYPE=${PKGTYPE:-tgz}
|
|
||||||
|
|
||||||
VERSION_SUFFIX=8.1
|
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
|
||||||
case "$( uname -m )" in
|
|
||||||
i?86) ARCH=i586 ;;
|
|
||||||
arm*) ARCH=arm ;;
|
|
||||||
*) ARCH=$( uname -m ) ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
|
||||||
# the name of the created package would be, and then exit. This information
|
|
||||||
# could be useful to other scripts.
|
|
||||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
|
||||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
TMP=${TMP:-/tmp}
|
|
||||||
PKG=$TMP/package-$PRGNAM
|
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
|
||||||
|
|
||||||
if [ "$ARCH" = "i586" ]; then
|
|
||||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
|
||||||
LIBDIRSUFFIX=""
|
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
|
||||||
LIBDIRSUFFIX=""
|
|
||||||
elif [ "$ARCH" = "x86_64" ]; then
|
|
||||||
SLKCFLAGS="-O2 -fPIC"
|
|
||||||
LIBDIRSUFFIX="64"
|
|
||||||
else
|
|
||||||
SLKCFLAGS="-O2"
|
|
||||||
LIBDIRSUFFIX=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
rm -rf $PKG
|
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
|
||||||
cd $TMP
|
|
||||||
rm -rf php-$VERSION
|
|
||||||
tar xvf $CWD/php-$VERSION.tar.xz
|
|
||||||
cd php-$VERSION
|
|
||||||
chown -R root:root .
|
|
||||||
|
|
||||||
# Sometimes they ship a few of these:
|
|
||||||
find . -name "*.orig" -delete
|
|
||||||
|
|
||||||
find -L . \
|
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
|
||||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
|
||||||
|
|
||||||
sed -i "s|build$|php/${VERSION_SUFFIX}/build|" scripts/Makefile.frag
|
|
||||||
sed -i "s|build\"$|php/${VERSION_SUFFIX}/build\"|" scripts/phpize.in
|
|
||||||
|
|
||||||
EXTENSION_DIR=/usr/lib${LIBDIRSUFFIX}/php/${VERSION_SUFFIX}/extensions \
|
|
||||||
CFLAGS="$SLKCFLAGS -DU_DEFINE_FALSE_AND_TRUE=1" \
|
|
||||||
CXXFLAGS="$SLKCFLAGS -DU_USING_ICU_NAMESPACE=1 -DU_DEFINE_FALSE_AND_TRUE=1" \
|
|
||||||
./configure \
|
|
||||||
--prefix=/usr \
|
|
||||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
|
||||||
--with-libdir=lib${LIBDIRSUFFIX} \
|
|
||||||
--localstatedir=/var \
|
|
||||||
--sysconfdir=/etc/php/${VERSION_SUFFIX} \
|
|
||||||
--datarootdir=/usr/share \
|
|
||||||
--datadir=/usr/share \
|
|
||||||
--infodir=/usr/info \
|
|
||||||
--mandir=/usr/man \
|
|
||||||
--program-suffix=-$VERSION_SUFFIX \
|
|
||||||
--without-apxs2 \
|
|
||||||
--enable-fpm \
|
|
||||||
--with-fpm-user=apache \
|
|
||||||
--with-fpm-group=apache \
|
|
||||||
--enable-zts \
|
|
||||||
--enable-pcntl \
|
|
||||||
--enable-mbregex \
|
|
||||||
--enable-tokenizer=shared \
|
|
||||||
--with-config-file-scan-dir=/etc/php/${VERSION_SUFFIX}/php.d \
|
|
||||||
--with-config-file-path=/etc/php/${VERSION_SUFFIX} \
|
|
||||||
--with-layout=PHP \
|
|
||||||
--disable-sigchild \
|
|
||||||
--with-libxml \
|
|
||||||
--with-expat \
|
|
||||||
--enable-simplexml \
|
|
||||||
--enable-xmlreader=shared \
|
|
||||||
--enable-dom=shared \
|
|
||||||
--enable-filter \
|
|
||||||
--disable-debug \
|
|
||||||
--with-openssl=shared \
|
|
||||||
--with-external-pcre \
|
|
||||||
--with-zlib=shared,/usr \
|
|
||||||
--enable-bcmath=shared \
|
|
||||||
--with-bz2=shared,/usr \
|
|
||||||
--enable-calendar=shared \
|
|
||||||
--enable-ctype=shared \
|
|
||||||
--with-curl=shared \
|
|
||||||
--enable-dba=shared \
|
|
||||||
--with-gdbm=/usr \
|
|
||||||
--with-db4=/usr \
|
|
||||||
--enable-exif=shared \
|
|
||||||
--enable-ftp=shared \
|
|
||||||
--enable-gd=shared \
|
|
||||||
--with-external-gd \
|
|
||||||
--with-jpeg \
|
|
||||||
--with-xpm \
|
|
||||||
--with-gettext=shared,/usr \
|
|
||||||
--with-gmp=shared,/usr \
|
|
||||||
--with-iconv=shared \
|
|
||||||
--with-imap-ssl=/usr \
|
|
||||||
--with-pdo-pgsql=shared,/usr/bin/pg_config \
|
|
||||||
--with-pgsql=shared,/usr/bin/pg_config \
|
|
||||||
--with-ldap=shared \
|
|
||||||
--enable-mbstring=shared \
|
|
||||||
--enable-mysqlnd=shared \
|
|
||||||
--with-mysqli=shared,mysqlnd \
|
|
||||||
--with-mysql-sock=/var/run/mysql/mysql.sock \
|
|
||||||
--with-iodbc=shared,/usr \
|
|
||||||
--enable-pdo=shared \
|
|
||||||
--with-pdo-mysql=shared,mysqlnd \
|
|
||||||
--with-pdo-sqlite=shared,/usr \
|
|
||||||
--with-pdo-odbc=shared,iODBC,/usr \
|
|
||||||
--with-pspell=shared,/usr \
|
|
||||||
--with-enchant=shared,/usr \
|
|
||||||
--enable-shmop=shared \
|
|
||||||
--with-snmp=shared,/usr \
|
|
||||||
--enable-soap=shared \
|
|
||||||
--enable-sockets \
|
|
||||||
--with-sqlite3=shared \
|
|
||||||
--enable-sysvmsg \
|
|
||||||
--enable-sysvsem \
|
|
||||||
--enable-sysvshm \
|
|
||||||
--with-xsl=shared,/usr \
|
|
||||||
--with-zip=shared \
|
|
||||||
--enable-intl=shared \
|
|
||||||
--enable-opcache \
|
|
||||||
--enable-shared=yes \
|
|
||||||
--enable-static=no \
|
|
||||||
--with-gnu-ld \
|
|
||||||
--with-pic \
|
|
||||||
--enable-phpdbg \
|
|
||||||
--with-sodium \
|
|
||||||
--with-password-argon2 \
|
|
||||||
--without-readline \
|
|
||||||
--with-libedit \
|
|
||||||
--with-pear=/usr/lib${LIBDIRSUFFIX}/php/${VERSION_SUFFIX} \
|
|
||||||
--includedir=/usr/include/php/${VERSION_SUFFIX} \
|
|
||||||
--with-tidy=shared \
|
|
||||||
--build=$ARCH-slackware-linux
|
|
||||||
|
|
||||||
make
|
|
||||||
make install INSTALL_ROOT=$PKG
|
|
||||||
|
|
||||||
mkdir -p $PKG/etc/rc.d
|
|
||||||
cp sapi/fpm/init.d.php-fpm $PKG/etc/rc.d/rc.php-fpm-${VERSION_SUFFIX}.new
|
|
||||||
chmod 644 $PKG/etc/rc.d/rc.php-fpm-${VERSION_SUFFIX}.new
|
|
||||||
|
|
||||||
# Strip ELF objects.
|
|
||||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
|
||||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
|
||||||
|
|
||||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
|
||||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
|
||||||
|
|
||||||
# PHP sometimes puts junk in the root directory:
|
|
||||||
( cd $PKG
|
|
||||||
rm -rf .channels .depdb .depdblock .filemap .lock .registry
|
|
||||||
)
|
|
||||||
|
|
||||||
rm -r $PKG/usr/share/fpm $PKG/usr/bin/pear $PKG/usr/bin/peardev
|
|
||||||
mv $PKG/usr/bin/pecl $PKG/usr/bin/pecl-${VERSION_SUFFIX}
|
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
|
||||||
cp -a \
|
|
||||||
CODING_STANDARDS* CONTRIBUTING* EXTENSIONS* LICENSE* NEWS* README* UPGRADING* \
|
|
||||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
|
||||||
|
|
||||||
cd $PKG
|
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
|
@ -1,10 +0,0 @@
|
|||||||
PRGNAM="php81"
|
|
||||||
VERSION="8.1.14"
|
|
||||||
HOMEPAGE="https://www.php.net/"
|
|
||||||
DOWNLOAD="https://www.php.net/distributions/php-8.1.14.tar.xz"
|
|
||||||
MD5SUM="6ee10d3680f07fc4c4e2fa6c2c1045ce"
|
|
||||||
DOWNLOAD_x86_64=""
|
|
||||||
MD5SUM_x86_64=""
|
|
||||||
REQUIRES="postgresql"
|
|
||||||
MAINTAINER="Eugene Wissner"
|
|
||||||
EMAIL="belka@caraus.de"
|
|
@ -1,19 +0,0 @@
|
|||||||
# HOW TO EDIT THIS FILE:
|
|
||||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
|
||||||
# up the first '|' above the ':' following the base package name, and the '|'
|
|
||||||
# on the right side marks the last column you can put a character in. You must
|
|
||||||
# make exactly 11 lines for the formatting to be correct. It's also
|
|
||||||
# customary to leave one space after the ':'.
|
|
||||||
|
|
||||||
|-----handy-ruler------------------------------------------------------|
|
|
||||||
php81: php81 (HTML-embedded scripting language)
|
|
||||||
php81:
|
|
||||||
php81: PHP is an HTML-embedded scripting language. It shares syntax
|
|
||||||
php81: characteristics with C, Java, and Perl. The primary objective behind
|
|
||||||
php81: this language is to make a fast and easy-to-use scripting language
|
|
||||||
php81: for dynamic web sites.
|
|
||||||
php81:
|
|
||||||
php81: Homepage: https://www.php.net/
|
|
||||||
php81:
|
|
||||||
php81:
|
|
||||||
php81:
|
|
Loading…
Reference in New Issue
Block a user