summaryrefslogtreecommitdiff
path: root/system/cdemu-daemon
diff options
context:
space:
mode:
Diffstat (limited to 'system/cdemu-daemon')
-rw-r--r--system/cdemu-daemon/cdemu-daemon.SlackBuild46
-rw-r--r--system/cdemu-daemon/cdemu-daemon.info8
-rw-r--r--system/cdemu-daemon/doinst.sh2
-rw-r--r--system/cdemu-daemon/slack-desc2
4 files changed, 33 insertions, 25 deletions
diff --git a/system/cdemu-daemon/cdemu-daemon.SlackBuild b/system/cdemu-daemon/cdemu-daemon.SlackBuild
index a7d9865da9..8ae518e786 100644
--- a/system/cdemu-daemon/cdemu-daemon.SlackBuild
+++ b/system/cdemu-daemon/cdemu-daemon.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for cdemu-daemon
#
# Copyright 2008 Niklas "Nille" Åkerström
-# Copyright 2010-2012 Niels Horn, Rio de Janeiro, RJ, Brazil
+# Copyright 2010-2013 Niels Horn, Rio de Janeiro, RJ, Brazil
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,10 +23,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Revision date: 2012/09/15
+# Revision date: 2013/03/31
PRGNAM=cdemu-daemon
-VERSION=${VERSION:-1.5.0}
+VERSION=${VERSION:-2.0.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -70,18 +70,18 @@ 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
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_MANDIR=/usr/man \
+ -DSESSION_BUS_SERVICE=ON \
+ -DSYSTEM_BUS_SERVICE=ON \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make VERBOSE=1
+ make install DESTDIR=$PKG
+cd ..
# Fix standard configuration to make it more "Slackware"-like
sed \
@@ -89,19 +89,27 @@ sed \
-e "/^CONFIG_FILE/s|/etc/sysconfig/|/etc/|" \
-i $PKG/usr/libexec/$PRGNAM-system.sh
+# Fix a silly error in the dbus file
+sed \
+ -e "/^Name=/s/CdemuDaemon/CDEmuDaemon/" \
+ -i $PKG/usr/share/dbus-1/system-services/net.sf.cdemu.CDEmuDaemon.service
+
# Install init script
mkdir -p $PKG/etc/rc.d
install -m 0755 $CWD/rc.cdemud $PKG/etc/rc.d/rc.cdemud.new
# dbus and udev rules
-mv $PKG/etc/dbus-1/system.d/cdemud-dbus.conf \
- $PKG/etc/dbus-1/system.d/cdemud-dbus.conf.new
-sed -i 's/group="cdemu"/group="'$GROUP'"/' \
- $PKG/etc/dbus-1/system.d/cdemud-dbus.conf.new
+mv $PKG/etc/dbus-1/system.d/cdemu-daemon-dbus.conf \
+ $PKG/etc/dbus-1/system.d/cdemu-daemon-dbus.conf.new
+sed -i 's/group="root"/group="'$GROUP'"/' \
+ $PKG/etc/dbus-1/system.d/cdemu-daemon-dbus.conf.new
mkdir -p $PKG/etc/udev/rules.d
echo 'KERNEL=="vhba_ctl", NAME="%k", MODE="0660", OWNER="root", GROUP="'$GROUP'"' \
> $PKG/etc/udev/rules.d/99-vhba.rules.new
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
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
diff --git a/system/cdemu-daemon/cdemu-daemon.info b/system/cdemu-daemon/cdemu-daemon.info
index 499cb8ac9a..639a2c3178 100644
--- a/system/cdemu-daemon/cdemu-daemon.info
+++ b/system/cdemu-daemon/cdemu-daemon.info
@@ -1,8 +1,8 @@
PRGNAM="cdemu-daemon"
-VERSION="1.5.0"
-HOMEPAGE="http://cdemu.sourceforge.net/pkg_daemon.php"
-DOWNLOAD="http://downloads.sourceforge.net/cdemu/cdemu-daemon-1.5.0.tar.bz2"
-MD5SUM="5ba780caa26d855942512b5b3c22405a"
+VERSION="2.0.0"
+HOMEPAGE="http://cdemu.sourceforge.net/about/daemon/"
+DOWNLOAD="http://downloads.sourceforge.net/cdemu/cdemu-daemon-2.0.0.tar.bz2"
+MD5SUM="8f6ad3a9f758938e1572046bccc30417"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="libmirage vhba-module"
diff --git a/system/cdemu-daemon/doinst.sh b/system/cdemu-daemon/doinst.sh
index 31fe07a000..d853a2b279 100644
--- a/system/cdemu-daemon/doinst.sh
+++ b/system/cdemu-daemon/doinst.sh
@@ -22,7 +22,7 @@ preserve_perms() {
}
preserve_perms etc/rc.d/rc.cdemud.new
-config etc/dbus-1/system.d/cdemud-dbus.conf.new
+config etc/dbus-1/system.d/cdemu-daemon-dbus.conf.new
config etc/udev/rules.d/99-vhba.rules.new
# Reload dbus configuration
diff --git a/system/cdemu-daemon/slack-desc b/system/cdemu-daemon/slack-desc
index 470df91962..99a865d205 100644
--- a/system/cdemu-daemon/slack-desc
+++ b/system/cdemu-daemon/slack-desc
@@ -15,5 +15,5 @@ cdemu-daemon: one instance per each device registered by kernel module.
cdemu-daemon: It uses libMirage, an image access library that is part of
cdemu-daemon: demu suite, for the image access.
cdemu-daemon:
-cdemu-daemon: Homepage: http://cdemu.sourceforge.net/pkg_daemon.php
+cdemu-daemon: Homepage: http://cdemu.sourceforge.net/about/daemon/
cdemu-daemon: