summaryrefslogtreecommitdiff
path: root/system/cdemu-client/cdemu-client.SlackBuild
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2011-10-04 08:16:32 -0500
committerRobby Workman <rworkman@slackbuilds.org>2011-10-11 21:20:28 -0500
commit0f8cc1f14cfc21070218e784a94065c6dbd09122 (patch)
tree4de34931db402143c67799cdd911c6272f30f2a9 /system/cdemu-client/cdemu-client.SlackBuild
parent98d02cc48f4763845f174c4061fdf8e109c056c4 (diff)
downloadslackbuilds-0f8cc1f14cfc21070218e784a94065c6dbd09122.tar.gz
system/cdemu-client: Updated for version 1.4.0.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'system/cdemu-client/cdemu-client.SlackBuild')
-rw-r--r--system/cdemu-client/cdemu-client.SlackBuild52
1 files changed, 24 insertions, 28 deletions
diff --git a/system/cdemu-client/cdemu-client.SlackBuild b/system/cdemu-client/cdemu-client.SlackBuild
index 109998bfd3..984167e46b 100644
--- a/system/cdemu-client/cdemu-client.SlackBuild
+++ b/system/cdemu-client/cdemu-client.SlackBuild
@@ -3,22 +3,34 @@
# Slackware build script for cdemu-client
# command-line client for cdemu-daemon
-# Written by Niels Horn <niels.horn@gmail.com>
-# Revision date: 2010/10/31
+# Copyright 2010-2011 Niels Horn, Rio de Janeiro, RJ, Brazil
+# 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.
+
+# Revision date: 2011/09/24
PRGNAM=cdemu-client
-VERSION=${VERSION:-1.3.0}
+VERSION=${VERSION:-1.4.0}
+ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i486 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
-fi
-
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -26,20 +38,6 @@ OUTPUT=${OUTPUT:-/tmp}
GROUP=${GROUP:-cdrom}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -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
@@ -55,7 +53,6 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
- --libdir=/usr/lib$LIBDIRSUFFIX \
--sysconfdir=/etc \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
@@ -68,8 +65,7 @@ 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
# Create standard cdemu-client.conf
-# Since the standard cdemu-daemon package uses the --daemonize option,
-# we'll need to use the system dbus instead of the session dbus
+# we'll use the system dbus instead of the session dbus
mkdir -p $PKG/etc
cat > $PKG/etc/cdemu-client.conf.new << EOF
[defaults]