exherbo-impulze/packages/app-emulation/cdemud/cdemud.exlib

53 lines
961 B
Bash
Raw Normal View History

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/libdaemon[>=0.10]
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
"
2009-08-20 20:01:28 +02:00
cdemud_src_install() {
default
hereinitd cdemud <<EOF
#!/sbin/runscript
depend() {
after logger
need dbus
}
start() {
ebegin "Starting cdemu daemon"
cdemud \${CDEMUD_OPTS} -d -p /var/run/cdemud.pid
eend \$?
}
stop() {
ebegin "Stopping cdemu daemon"
cdemud \${CDEMUD_OPTS} -k -p /var/run/cdemud.pid
eend \$?
}
EOF
hereconfd cdemud <<EOF
# options passed to the cdemud
#CDEMUD_OPTS=--num-devices=10
EOF
}