From 0483d648650dc82adcc12f84f3b031db48a90c49 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Fri, 27 Jul 2007 13:21:30 +0000 Subject: Small updates for supporting Slackware 12.0 --- truecrypt/build/truecrypt.SlackBuild | 35 +++++++++++++++++++++++++++++------ 1 file changed, 29 insertions(+), 6 deletions(-) (limited to 'truecrypt') diff --git a/truecrypt/build/truecrypt.SlackBuild b/truecrypt/build/truecrypt.SlackBuild index 769fea20..a395d305 100755 --- a/truecrypt/build/truecrypt.SlackBuild +++ b/truecrypt/build/truecrypt.SlackBuild @@ -1,14 +1,32 @@ #!/bin/sh -# Copyright (c) 2006,2007 Eric Hameleers # $Id$ # ----------------------------------------------------------------------------- +# Copyright (c) 2006,2007 Eric Hameleers +# Permission to use, copy, modify, and distribute this software for +# any purpose with or without fee is hereby granted, provided that +# the above copyright notice and this permission notice appear in all +# copies. +# +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED 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 AUTHORS AND COPYRIGHT HOLDERS AND THEIR +# CONTRIBUTORS 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. +# ----------------------------------------------------------------------------- # # Slackware SlackBuild script # =========================== # By: Eric Hameleers # For: truecrypt # URL: http://www.truecrypt.org/ -# Needs: device-mapper >= 1.00.08 +# Needs: device-mapper >= 1.00.08 (for Slackware older than 12.0) # Changelog: # 4.0-1: 02/Nov/2005 by Eric Hameleers # * Initial build. @@ -19,10 +37,13 @@ # * Bugfix update. Reworked the SlackBuild too. # 4.2a-2: 14/jan/2007 by Eric Hameleers # * Fix compilation under kernels 2.6.18 and 2.6.19. -# 4.3: 15/apr/2007 by Eric Hameleers +# 4.3-1: 15/apr/2007 by Eric Hameleers # * Update. -# 4.3a: 26/may/2007 by Eric Hameleers +# 4.3a-1: 26/may/2007 by Eric Hameleers # * Update. This fixes a security issue with seteuid. +# 4.3a-2: 26/may/2007 by Eric Hameleers +# * Device-mapper is part of a Slackware 12 install, so don't +# list it as a dependency. # # Run 'sh SlackBuild --cleanup' to build a Slackware package. # The package (.tgz) plus descriptive .txt file are created in /tmp . @@ -35,13 +56,15 @@ PRGNAM=truecrypt VERSION=${VERSION:-4.3a} ARCH=${ARCH:-i486} -BUILD=1 +BUILD=2 DOCS="README.1st Readme.txt License.txt userguide.pdf" KVER=${KVER:-$(uname -r)} KSRC=${KSRC:-/lib/modules/{KVER}/build} +SLACKMAJ=$( cat /etc/slackware-version | cut -f2 -d\ | cut -f1 -d. ) + SOURCE="${PRGNAM}-${VERSION}-source-code.tar.gz" PATCH0="${PRGNAM}-${VERSION}_ksrc.patch" @@ -242,7 +265,7 @@ mkdir -p $PKG/install cat $SRCDIR/slack-desc > $PKG/install/slack-desc # Substitute correct versions sed -i -e "s#\@\@KERNELVERS\@\@#${KVER}#g" $PKG/install/slack-desc -if [ -f $SRCDIR/slack-required ]; then +if [ -f $SRCDIR/slack-required -a $SLACKMAJ -lt 12 ]; then cat $SRCDIR/slack-required > $PKG/install/slack-required fi -- cgit v1.2.3