summaryrefslogtreecommitdiff
path: root/community-testing/cdemu-daemon
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2012-04-03 14:54:55 +0000
committerParabola <dev@list.parabolagnulinux.org>2012-04-03 14:54:55 +0000
commitb618c3d0693aec564c6746238fd05d94e31d3b76 (patch)
tree4a4834f3097bba25dba1adeba4324080c1b4bf7b /community-testing/cdemu-daemon
parent8cb5196780766f47b595410eed8ddbee2e8add08 (diff)
Tue Apr 3 14:54:45 UTC 2012
Diffstat (limited to 'community-testing/cdemu-daemon')
-rw-r--r--community-testing/cdemu-daemon/60-vhba.rules1
-rw-r--r--community-testing/cdemu-daemon/PKGBUILD54
-rw-r--r--community-testing/cdemu-daemon/cdemu-daemon-system.patch15
-rw-r--r--community-testing/cdemu-daemon/cdemu-daemon.install20
-rw-r--r--community-testing/cdemu-daemon/cdemud.conf11
-rw-r--r--community-testing/cdemu-daemon/cdemud.install11
-rw-r--r--community-testing/cdemu-daemon/cdemud.rc55
-rw-r--r--community-testing/cdemu-daemon/system.patch45
8 files changed, 0 insertions, 212 deletions
diff --git a/community-testing/cdemu-daemon/60-vhba.rules b/community-testing/cdemu-daemon/60-vhba.rules
deleted file mode 100644
index 91de6f86a..000000000
--- a/community-testing/cdemu-daemon/60-vhba.rules
+++ /dev/null
@@ -1 +0,0 @@
-KERNEL=="vhba_ctl", NAME="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu"
diff --git a/community-testing/cdemu-daemon/PKGBUILD b/community-testing/cdemu-daemon/PKGBUILD
deleted file mode 100644
index 87eb6bd8e..000000000
--- a/community-testing/cdemu-daemon/PKGBUILD
+++ /dev/null
@@ -1,54 +0,0 @@
-# $Id: PKGBUILD 68476 2012-03-25 14:38:03Z schiv $
-# Maintainer: Ray Rashif <schiv@archlinux.org>
-# Contributor: Mateusz Herych <heniekk@gmail.com>
-# Contributor: Charles Lindsay <charles@chaoslizard.org>
-
-pkgname=cdemu-daemon
-pkgver=1.5.0
-pkgrel=4
-pkgdesc="CD/DVD-ROM device emulator daemon"
-arch=('i686' 'x86_64')
-url="http://cdemu.sourceforge.net/"
-license=('GPL')
-depends=('dbus' 'vhba-module>=20110915-5' 'libao' "libmirage=$pkgver")
-optdepends=('alsa-lib: to enable the ALSA audio driver'
- 'pulseaudio: to enable the PA audio driver')
-backup=('etc/conf.d/cdemud'
- 'etc/dbus-1/system.d/cdemud-dbus.conf')
-install=$pkgname.install
-source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2"
- 'cdemud.conf'
- 'cdemud.rc'
- 'system.patch')
-md5sums=('5ba780caa26d855942512b5b3c22405a'
- '5d9e08255e45ca3c0987329b7920e206'
- '4bbf42b69133e4e91c1be2c6825fa392'
- '90a2516639c05737fa10a110a1cba467')
-
-build() {
- cd "$srcdir/$pkgname-$pkgver"
-
- # make things Arch-friendly
- patch -Np1 -i "$srcdir/system.patch"
-
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --libexecdir=/usr/lib/$pkgname
- make
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver"
-
- make DESTDIR="$pkgdir" install
-
- # the init stuff
- install -Dm644 "$srcdir/cdemud.conf" "$pkgdir/etc/conf.d/cdemud"
- install -Dm755 "$srcdir/cdemud.rc" "$pkgdir/etc/rc.d/cdemud"
-
- # should we really be doing this? (for systemd)
- #install -d "$pkgdir/usr/lib/modules-load.d"
- #echo "vhba" > "$pkgdir/usr/lib/modules-load.d/cdemu.conf"
-}
-
-# vim:set ts=2 sw=2 et:
diff --git a/community-testing/cdemu-daemon/cdemu-daemon-system.patch b/community-testing/cdemu-daemon/cdemu-daemon-system.patch
deleted file mode 100644
index ce4dab7d9..000000000
--- a/community-testing/cdemu-daemon/cdemu-daemon-system.patch
+++ /dev/null
@@ -1,15 +0,0 @@
---- system/cdemu-daemon-system.sh.orig 2012-02-27 21:38:05.000000000 +0100
-+++ system/cdemu-daemon-system.sh 2012-03-10 20:53:06.787503891 +0100
-@@ -6,10 +6,10 @@
- # Default settings
- NUM_DEVICES=2
- AUDIO_DRIVER=null
--LOG_FILE=/tmp/cdemu-daemon.log
-+LOG_FILE=/var/log/cdemu-daemon.log
-
- # Read the settings
--CONFIG_FILE=/etc/sysconfig/cdemu-daemon
-+CONFIG_FILE=/etc/conf.d/cdemud
-
- if [ -f ${CONFIG_FILE} ]; then
- . ${CONFIG_FILE};
diff --git a/community-testing/cdemu-daemon/cdemu-daemon.install b/community-testing/cdemu-daemon/cdemu-daemon.install
deleted file mode 100644
index 7a3e8a9f5..000000000
--- a/community-testing/cdemu-daemon/cdemu-daemon.install
+++ /dev/null
@@ -1,20 +0,0 @@
-post_upgrade() {
- echo " > The 'cdemu' group is now created by vhba-module"
- echo " >> you may have to re-add yourself to the group and relogin"
- echo
- echo " > Daemon can be used in session mode as user, simply run 'cdemud'"
- echo " >> you do not need to use the init script in this case"
- echo " >> put your configuration in ~/.cdemud instead"
-}
-
-post_install () {
- echo " > Add yourself to the 'cdemu' group for non-root access"
- echo " > Start the daemon as root with /etc/rc.d/cdemud"
- echo " > See /etc/conf.d/cdemud for further configuration"
- echo
- echo " > Daemon can be used in session mode as user, simply run 'cdemud'"
- echo " >> you do not need to use the init script in this case"
- echo " >> put your configuration in ~/.cdemud instead"
-}
-
-# vim:set ts=2 sw=2 et:
diff --git a/community-testing/cdemu-daemon/cdemud.conf b/community-testing/cdemu-daemon/cdemud.conf
deleted file mode 100644
index 6f14947a6..000000000
--- a/community-testing/cdemu-daemon/cdemud.conf
+++ /dev/null
@@ -1,11 +0,0 @@
-# how many optical drives to emulate
-NUM_DEVICES=2
-
-# audio backend (null, alsa or pulse)
-AUDIO_DRIVER=null
-
-# log file
-LOG_FILE=/var/log/cdemud.log
-
-# bus to use (system or session)
-BUS="system"
diff --git a/community-testing/cdemu-daemon/cdemud.install b/community-testing/cdemu-daemon/cdemud.install
deleted file mode 100644
index 3550a5e59..000000000
--- a/community-testing/cdemu-daemon/cdemud.install
+++ /dev/null
@@ -1,11 +0,0 @@
-post_install () {
- groupadd cdemu
- echo " > Add yourself to the 'cdemu' group for non-root access"
- echo " > See /etc/conf.d/cdemud for further configuration"
-}
-
-post_remove() {
- groupdel cdemu
-}
-
-# vim:set ts=2 sw=2 et:
diff --git a/community-testing/cdemu-daemon/cdemud.rc b/community-testing/cdemu-daemon/cdemud.rc
deleted file mode 100644
index e8dab1f08..000000000
--- a/community-testing/cdemu-daemon/cdemud.rc
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/conf.d/cdemud
-
-case "$1" in
- start)
- stat_busy "Loading vhba and loop modules"
- modprobe vhba
- if [ $? -ne 0 ]; then
- stat_fail
- else
- stat_done
- fi
-
- stat_busy "Waiting for /dev/vhba_ctl"
- i=0
- until [ -c /dev/vhba_ctl -o $i -ge 10 ]; do
- i=`expr $i + 1`
- sleep 1
- done
- if [ -c /dev/vhba_ctl ]; then
- stat_done
- else
- stat_fail
- fi
-
- stat_busy "Starting cdemud"
- cdemud --ctl-device=/dev/vhba_ctl --bus=$BUS --num-devices=$NUM_DEVICES --audio-driver=$AUDIO_DRIVER --logfile=$LOG_FILE &
- if [ $? -ne 0 ]; then
- stat_fail
- else
- add_daemon cdemud
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping cdemud"
- kill -9 `pidof cdemud` &>/dev/null && sleep 1 && rmmod vhba
- if [ $? -ne 0 ]; then
- stat_fail
- else
- rm_daemon cdemud
- stat_done
- fi
- ;;
- restart)
- $0 stop
- sleep 1
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
diff --git a/community-testing/cdemu-daemon/system.patch b/community-testing/cdemu-daemon/system.patch
deleted file mode 100644
index 3c3d4b221..000000000
--- a/community-testing/cdemu-daemon/system.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-diff -aur cdemu-daemon-1.5.0.orig/session/cdemu-daemon-session.sh cdemu-daemon-1.5.0/session/cdemu-daemon-session.sh
---- cdemu-daemon-1.5.0.orig/session/cdemu-daemon-session.sh 2012-03-25 16:35:40.577837996 +0800
-+++ cdemu-daemon-1.5.0/session/cdemu-daemon-session.sh 2012-03-25 16:39:12.180024983 +0800
-@@ -1,15 +1,15 @@
- #!/bin/sh
- # Starts the CDEmu daemon instance on D-Bus *session* bus. Optional
- # configuration (number of devices, audio driver, log file) are read
--# from ~/.cdemu-daemon
-+# from ~/.cdemud
-
- # Default settings
- NUM_DEVICES=2
--AUDIO_DRIVER=pulse
--LOG_FILE=~/.cdemu-daemon.log
-+AUDIO_DRIVER=null
-+LOG_FILE=~/.cdemud.log
-
- # Read the settings
--CONFIG_FILE=~/.cdemu-daemon
-+CONFIG_FILE=~/.cdemud
-
- if [ -f ${CONFIG_FILE} ]; then
- . ${CONFIG_FILE};
-diff -aur cdemu-daemon-1.5.0.orig/system/cdemu-daemon-system.sh cdemu-daemon-1.5.0/system/cdemu-daemon-system.sh
---- cdemu-daemon-1.5.0.orig/system/cdemu-daemon-system.sh 2012-03-25 16:35:40.581171312 +0800
-+++ cdemu-daemon-1.5.0/system/cdemu-daemon-system.sh 2012-03-25 16:36:48.810801678 +0800
-@@ -1,15 +1,15 @@
- #!/bin/sh
- # Starts the CDEmu daemon instance on D-Bus *system* bus. Optional
- # configuration (number of devices, audio driver, log file) are read
--# from /etc/sysconfig/cdemu-daemon
-+# from /etc/conf.d/cdemud
-
- # Default settings
- NUM_DEVICES=2
- AUDIO_DRIVER=null
--LOG_FILE=/tmp/cdemu-daemon.log
-+LOG_FILE=/var/log/cdemud.log
-
- # Read the settings
--CONFIG_FILE=/etc/sysconfig/cdemu-daemon
-+CONFIG_FILE=/etc/conf.d/cdemud
-
- if [ -f ${CONFIG_FILE} ]; then
- . ${CONFIG_FILE};