summaryrefslogtreecommitdiffstats
path: root/system/cdemu-daemon/cdemu-daemon.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/cdemu-daemon/cdemu-daemon.SlackBuild')
-rw-r--r--system/cdemu-daemon/cdemu-daemon.SlackBuild14
1 files changed, 9 insertions, 5 deletions
diff --git a/system/cdemu-daemon/cdemu-daemon.SlackBuild b/system/cdemu-daemon/cdemu-daemon.SlackBuild
index d5b0441184..667b0036da 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 Niels Horn
+# Copyright 2010-2011 Niels Horn, Rio de Janeiro, RJ, Brazil
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,11 +23,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Maintained as of version 1.3.0 by Niels Horn <niels.horn@gmail.com>
-# Revision date: 2010/11/20
+# Revision date: 2011/09/24
PRGNAM=cdemu-daemon
-VERSION=${VERSION:-1.3.0}
+VERSION=${VERSION:-1.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -84,10 +83,15 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
+# Fix standard configuration to make it more "Slackware"-like
+sed \
+ -e "/^LOG_FILE/s|/tmp/|/var/log/|" \
+ -e "/^CONFIG_FILE/s|/etc/sysconfig/|/etc/|" \
+ -i $PKG/usr/bin/$PRGNAM-system.sh
+
# Install init script
mkdir -p $PKG/etc/rc.d
install -m 0755 $CWD/rc.cdemud $PKG/etc/rc.d/rc.cdemud.new
-cat $CWD/rc.cdemud.conf > $PKG/etc/rc.d/rc.cdemud.conf.new
# dbus and udev rules
mv $PKG/etc/dbus-1/system.d/cdemud-dbus.conf \