|
|
@ -2,11 +2,12 @@ |
|
|
|
|
|
|
|
|
# Slackware build script for pycassa |
|
|
# Slackware build script for pycassa |
|
|
|
|
|
|
|
|
# Copyright 2012, Nikolay Korotkiy <sikmir@gmail.com> |
|
|
|
|
|
|
|
|
# Copyright 2012-2016, Nikolay Korotkiy <sikmir@gmail.com> |
|
|
# All rights reserved. |
|
|
# All rights reserved. |
|
|
# |
|
|
# |
|
|
# Redistribution and use of this script, with or without modification, is |
|
|
# Redistribution and use of this script, with or without modification, is |
|
|
# permitted provided that the following conditions are met: |
|
|
# permitted provided that the following conditions are met: |
|
|
|
|
|
# |
|
|
# 1. Redistributions of this script must retain the above copyright |
|
|
# 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. |
|
|
# |
|
|
# |
|
|
@ -22,13 +23,13 @@ |
|
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
|
|
|
|
|
|
|
PRGNAM=pycassa |
|
|
PRGNAM=pycassa |
|
|
VERSION=${VERSION:-1.7.2} |
|
|
|
|
|
|
|
|
VERSION=${VERSION:-1.11.1} |
|
|
BUILD=${BUILD:-1} |
|
|
BUILD=${BUILD:-1} |
|
|
TAG=${TAG:-_SBo} |
|
|
TAG=${TAG:-_SBo} |
|
|
|
|
|
|
|
|
if [ -z "$ARCH" ]; then |
|
|
if [ -z "$ARCH" ]; then |
|
|
case "$( uname -m )" in |
|
|
case "$( uname -m )" in |
|
|
i?86) ARCH=i486 ;; |
|
|
|
|
|
|
|
|
i?86) ARCH=i586 ;; |
|
|
arm*) ARCH=arm ;; |
|
|
arm*) ARCH=arm ;; |
|
|
*) ARCH=$( uname -m ) ;; |
|
|
*) ARCH=$( uname -m ) ;; |
|
|
esac |
|
|
esac |
|
|
@ -49,10 +50,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz |
|
|
cd $PRGNAM-$VERSION |
|
|
cd $PRGNAM-$VERSION |
|
|
chown -R root:root . |
|
|
chown -R root:root . |
|
|
find -L . \ |
|
|
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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ |
|
|
|
|
|
-exec chmod 644 {} \; |
|
|
|
|
|
|
|
|
\( -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 {} \; |
|
|
|
|
|
|
|
|
python setup.py install --root=$PKG |
|
|
python setup.py install --root=$PKG |
|
|
|
|
|
|
|
|
|