mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
system/cdemu-client: Added. (command-line client for CDEmu-daemon)
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
This commit is contained in:
parent
da2dfb1a62
commit
47f69385d7
7 changed files with 159 additions and 0 deletions
6
system/cdemu-client/README
Normal file
6
system/cdemu-client/README
Normal file
|
@ -0,0 +1,6 @@
|
|||
CDEmu client is a simple command-line client for controlling CDEmu-daemon.
|
||||
It provides a way to perform the key tasks related to controlling the
|
||||
CDEmu daemon, such as loading and unloading devices, displaying devices'
|
||||
status and retrieving/setting devices' debug masks.
|
||||
|
||||
This requires cdemu-daemon.
|
93
system/cdemu-client/cdemu-client.SlackBuild
Normal file
93
system/cdemu-client/cdemu-client.SlackBuild
Normal file
|
@ -0,0 +1,93 @@
|
|||
#!/bin/sh
|
||||
|
||||
# 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
|
||||
|
||||
PRGNAM=cdemu-client
|
||||
VERSION=${VERSION:-1.3.0}
|
||||
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
|
||||
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
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
chmod -R a-s,u+rw,go+r-w .
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib$LIBDIRSUFFIX \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make install-strip DESTDIR=$PKG
|
||||
|
||||
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
|
||||
mkdir -p $PKG/etc
|
||||
cat > $PKG/etc/cdemu-client.conf.new << EOF
|
||||
[defaults]
|
||||
bus=system
|
||||
EOF
|
||||
|
||||
mkdir -p $PKG/usr/share/{applications,pixmaps}
|
||||
cat $CWD/cdemu-client.desktop > $PKG/usr/share/applications/cdemu-client.desktop
|
||||
cat $CWD/cdemu-client.png > $PKG/usr/share/pixmaps/cdemu-client.png
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp AUTHORS ChangeLog COPYING INSTALL NEWS README \
|
||||
$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
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
13
system/cdemu-client/cdemu-client.desktop
Normal file
13
system/cdemu-client/cdemu-client.desktop
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=CDEmu
|
||||
Comment=Client for handling optical media (CD/DVD) images
|
||||
NoDisplay=true
|
||||
TryExec=cdemu
|
||||
Exec=cdemu load any %F
|
||||
MimeType=application/libmirage-image;application/x-cd-image;application/x-cue;application/x-cdrdao-toc
|
||||
Icon=cdemu-client
|
||||
Terminal=false
|
||||
Categories=System;
|
||||
|
10
system/cdemu-client/cdemu-client.info
Normal file
10
system/cdemu-client/cdemu-client.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="cdemu-client"
|
||||
VERSION="1.3.0"
|
||||
HOMEPAGE="http://cdemu.sourceforge.net/pkg_client.php"
|
||||
DOWNLOAD="http://downloads.sourceforge.net/cdemu/cdemu-client-1.3.0.tar.gz"
|
||||
MD5SUM="e1789ec4f839e9dbdb5db88e3923d7ae"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Niels Horn"
|
||||
EMAIL="niels.horn@gmail.com"
|
||||
APPROVED="pprkut"
|
BIN
system/cdemu-client/cdemu-client.png
Normal file
BIN
system/cdemu-client/cdemu-client.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
18
system/cdemu-client/doinst.sh
Normal file
18
system/cdemu-client/doinst.sh
Normal file
|
@ -0,0 +1,18 @@
|
|||
config() {
|
||||
NEW="$1"
|
||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
||||
# If there's no config file by that name, mv it over:
|
||||
if [ ! -r $OLD ]; then
|
||||
mv $NEW $OLD
|
||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy
|
||||
rm $NEW
|
||||
fi
|
||||
# Otherwise, we leave the .new copy for the admin to consider...
|
||||
}
|
||||
|
||||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
config etc/cdemu-client.conf.new
|
||||
|
19
system/cdemu-client/slack-desc
Normal file
19
system/cdemu-client/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
cdemu-client: CDEmu-client (command-line client for CDEmu-daemon)
|
||||
cdemu-client:
|
||||
cdemu-client: CDEmu client is a simple command-line client for controlling CDEmu-
|
||||
cdemu-client: daemon.
|
||||
cdemu-client: It provides a way to perform the key tasks related to controlling the
|
||||
cdemu-client: CDEmu daemon, such as loading and unloading devices, displaying
|
||||
cdemu-client: devices' status and retrieving/setting devices' debug masks.
|
||||
cdemu-client:
|
||||
cdemu-client: Homepage: http://cdemu.sourceforge.net/pkg_client.php
|
||||
cdemu-client:
|
||||
cdemu-client:
|
Loading…
Reference in a new issue