mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
libraries/libmcrypt: Added to 12.1 repository
This commit is contained in:
parent
19ff063af4
commit
9095a92bf9
4 changed files with 110 additions and 0 deletions
14
libraries/libmcrypt/README
Normal file
14
libraries/libmcrypt/README
Normal file
|
@ -0,0 +1,14 @@
|
|||
libmcrypt (encryption functions for MCrypt)
|
||||
|
||||
mcrypt is a program for encrypting files or streams. It is intended
|
||||
to be a replacement for the old UNIX crypt. It uses well-known and
|
||||
well-tested algorithms like BLOWFISH, AES, ARCFOUR, CAST-128, and
|
||||
more in several modes or operation.
|
||||
|
||||
This package is configured with --disable-posix-threads. Using the worker
|
||||
or event MPM with apache can lead to instability when using mod_php and
|
||||
non-thread-safe extensions. The flag can be safely removed from the
|
||||
slackbuild when the prefork MPM is used, or when apache will not be installed
|
||||
or running on the target machine.
|
||||
|
||||
See http://php.net/manual/en/mcrypt.installation.php for more details.
|
76
libraries/libmcrypt/libmcrypt.SlackBuild
Normal file
76
libraries/libmcrypt/libmcrypt.SlackBuild
Normal file
|
@ -0,0 +1,76 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for libmcrypt
|
||||
|
||||
# Written by Frank Gingras (francois.gingras@gmail.com)
|
||||
|
||||
PRGNAM=libmcrypt
|
||||
VERSION=2.5.8
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
fi
|
||||
|
||||
set -e # Exit on most errors
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -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 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
--infodir=/usr/info \
|
||||
--enable-shared=yes \
|
||||
--enable-static=no \
|
||||
--program-prefix="" \
|
||||
--program-suffix="" \
|
||||
--disable-posix-threads
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
( cd $PKG/usr/man
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a AUTHORS INSTALL KNOWN-BUGS NEWS README THANKS TODO $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
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
8
libraries/libmcrypt/libmcrypt.info
Normal file
8
libraries/libmcrypt/libmcrypt.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="libmcrypt"
|
||||
VERSION="2.5.8"
|
||||
HOMEPAGE="http://mcrypt.sourceforge.net/"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/mcrypt/libmcrypt-2.5.8.tar.bz2"
|
||||
MD5SUM="c4f491dd411a09e9de3b8702ea6f73eb"
|
||||
MAINTAINER="Frank Gingras"
|
||||
EMAIL="francois.gingras@gmail.com"
|
||||
APPROVED="David Somero"
|
12
libraries/libmcrypt/slack-desc
Normal file
12
libraries/libmcrypt/slack-desc
Normal file
|
@ -0,0 +1,12 @@
|
|||
|-----handy-ruler------------------------------------------------------|
|
||||
libmcrypt: libmcrypt (encryption functions for MCrypt)
|
||||
libmcrypt:
|
||||
libmcrypt: mcrypt is a program for encrypting files or streams. It is intended
|
||||
libmcrypt: to be a replacement for the old UNIX crypt. It uses well-known and
|
||||
libmcrypt: well-tested algorithms like BLOWFISH, AES, ARCFOUR, CAST-128, and
|
||||
libmcrypt: more in several modes or operation.
|
||||
libmcrypt:
|
||||
libmcrypt:
|
||||
libmcrypt:
|
||||
libmcrypt: It can be obtained from http://freshmeat.net/projects/mcrypt/
|
||||
libmcrypt:
|
Loading…
Reference in a new issue