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

55 lines
1,002 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
2010-12-05 12:01:54 +01:00
require cdemu-common [ name=cdemu-daemon autogen=true suffix=.tar.gz ]
2009-08-20 19:46:51 +02:00
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
"
MYOPTIONS="baselayout"
2009-08-20 19:46:51 +02:00
2009-08-20 20:01:28 +02:00
cdemud_src_install() {
default
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
hereconfd cdemud <<EOF
2009-08-20 20:01:28 +02:00
# options passed to the cdemud
#CDEMUD_OPTS=--num-devices=10
EOF
fi
2009-08-20 20:01:28 +02:00
}