mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
system/cdemu-client: Updated for version 1.4.0.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
parent
98d02cc48f
commit
0f8cc1f14c
2 changed files with 28 additions and 32 deletions
|
@ -3,22 +3,34 @@
|
||||||
# Slackware build script for cdemu-client
|
# Slackware build script for cdemu-client
|
||||||
# command-line client for cdemu-daemon
|
# command-line client for cdemu-daemon
|
||||||
|
|
||||||
# Written by Niels Horn <niels.horn@gmail.com>
|
# Copyright 2010-2011 Niels Horn, Rio de Janeiro, RJ, Brazil
|
||||||
# Revision date: 2010/10/31
|
# 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
|
PRGNAM=cdemu-client
|
||||||
VERSION=${VERSION:-1.3.0}
|
VERSION=${VERSION:-1.4.0}
|
||||||
|
ARCH=noarch
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
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)
|
CWD=$(pwd)
|
||||||
TMP=${TMP:-/tmp/SBo}
|
TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
@ -26,20 +38,6 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
GROUP=${GROUP:-cdrom}
|
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
|
set -e
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
|
@ -55,7 +53,6 @@ CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--libdir=/usr/lib$LIBDIRSUFFIX \
|
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--mandir=/usr/man \
|
--mandir=/usr/man \
|
||||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
--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
|
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
|
# Create standard cdemu-client.conf
|
||||||
# Since the standard cdemu-daemon package uses the --daemonize option,
|
# we'll use the system dbus instead of the session dbus
|
||||||
# we'll need to use the system dbus instead of the session dbus
|
|
||||||
mkdir -p $PKG/etc
|
mkdir -p $PKG/etc
|
||||||
cat > $PKG/etc/cdemu-client.conf.new << EOF
|
cat > $PKG/etc/cdemu-client.conf.new << EOF
|
||||||
[defaults]
|
[defaults]
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="cdemu-client"
|
PRGNAM="cdemu-client"
|
||||||
VERSION="1.3.0"
|
VERSION="1.4.0"
|
||||||
HOMEPAGE="http://cdemu.sourceforge.net/pkg_client.php"
|
HOMEPAGE="http://cdemu.sourceforge.net/pkg_client.php"
|
||||||
DOWNLOAD="http://downloads.sourceforge.net/cdemu/cdemu-client-1.3.0.tar.gz"
|
DOWNLOAD="http://downloads.sourceforge.net/cdemu/cdemu-client-1.4.0.tar.gz"
|
||||||
MD5SUM="e1789ec4f839e9dbdb5db88e3923d7ae"
|
MD5SUM="ce469f0660dfa4a9306faed00b3e6d6c"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Niels Horn"
|
MAINTAINER="Niels Horn"
|
||||||
EMAIL="niels.horn@gmail.com"
|
EMAIL="niels.horn@gmail.com"
|
||||||
APPROVED="pprkut"
|
APPROVED="Erik Hanson"
|
||||||
|
|
Loading…
Reference in a new issue