2009-08-20 20:05:04 +02:00
|
|
|
# Copyright 2009 Daniel Mierswa <impulze@impulze.org>
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2009-08-20 19:46:51 +02:00
|
|
|
require cdemu-common [ name=cdemu-daemon autogen=true ]
|
|
|
|
|
2009-08-20 20:01:28 +02:00
|
|
|
export_exlib_phases src_install
|
|
|
|
|
2009-08-20 19:46:51 +02:00
|
|
|
SLOT="0"
|
|
|
|
|
|
|
|
DEPENDENCIES="
|
|
|
|
build+run:
|
|
|
|
dev-libs/libmirage[>=${PV}]
|
|
|
|
dev-libs/dbus-glib[>=0.66]
|
|
|
|
dev-libs/glib[>=2.6]
|
|
|
|
media-libs/libao[>=0.8.0]
|
|
|
|
sys-apps/dbus[>=0.60]
|
|
|
|
sys-fs/sysfsutils
|
|
|
|
run:
|
|
|
|
app-emulation/vhba-module
|
|
|
|
"
|
2010-10-09 22:09:33 +02:00
|
|
|
MYOPTIONS="baselayout"
|
2009-08-20 19:46:51 +02:00
|
|
|
|
2009-08-20 20:01:28 +02:00
|
|
|
cdemud_src_install() {
|
|
|
|
default
|
|
|
|
|
2010-10-09 22:09:33 +02:00
|
|
|
if option baselayout ; then
|
|
|
|
hereinitd cdemud <<EOF
|
2009-08-20 20:01:28 +02:00
|
|
|
#!/sbin/runscript
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
after logger
|
|
|
|
need dbus
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
2010-09-23 20:28:34 +02:00
|
|
|
ebegin "Starting cdemu daemon"
|
2009-08-20 20:01:28 +02:00
|
|
|
cdemud \${CDEMUD_OPTS} -d -p /var/run/cdemud.pid
|
2010-09-23 20:28:34 +02:00
|
|
|
eend \$?
|
2009-08-20 20:01:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2010-09-23 20:28:34 +02:00
|
|
|
ebegin "Stopping cdemu daemon"
|
2009-08-20 20:01:28 +02:00
|
|
|
cdemud \${CDEMUD_OPTS} -k -p /var/run/cdemud.pid
|
|
|
|
eend \$?
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
|
2010-10-09 22:09:33 +02:00
|
|
|
hereconfd cdemud <<EOF
|
2009-08-20 20:01:28 +02:00
|
|
|
# options passed to the cdemud
|
|
|
|
#CDEMUD_OPTS=--num-devices=10
|
|
|
|
EOF
|
2010-10-09 22:09:33 +02:00
|
|
|
fi
|
2009-08-20 20:01:28 +02:00
|
|
|
}
|
|
|
|
|