diff options
Diffstat (limited to 'system/mcrypt')
-rw-r--r-- | system/mcrypt/README | 10 | ||||
-rw-r--r-- | system/mcrypt/mcrypt.SlackBuild | 16 |
2 files changed, 19 insertions, 7 deletions
diff --git a/system/mcrypt/README b/system/mcrypt/README index 7040c70841..785491c0be 100644 --- a/system/mcrypt/README +++ b/system/mcrypt/README @@ -1,5 +1,7 @@ -mcrypt is a replacement for the old crypt package and crypt command with -extensions. It allows developers to use a wide range of encryption functions -including encrypting files or data streams without having to be cryptographers. +mcrypt is a replacement for the old crypt package and crypt +command with extensions. It allows developers to use a wide range +of encryption functions including encrypting files or data streams +without having to be cryptographers. -mcrypt is recommended if you are using phpmyadmin for database administration. +mcrypt is recommended if you are using phpmyadmin for database +administration. diff --git a/system/mcrypt/mcrypt.SlackBuild b/system/mcrypt/mcrypt.SlackBuild index deadd5446f..fc73de9002 100644 --- a/system/mcrypt/mcrypt.SlackBuild +++ b/system/mcrypt/mcrypt.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware Package Build Script for mcrypt # Home Page http://mcrypt.sourceforge.net/ @@ -24,10 +24,13 @@ # 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=mcrypt VERSION=${VERSION:-2.6.8} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -37,7 +40,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# 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/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -106,4 +116,4 @@ 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.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |