50 lines
839 B
Bash
50 lines
839 B
Bash
require cdemu-common [ name=cdemu-daemon autogen=true ]
|
|
|
|
export_exlib_phases src_install
|
|
|
|
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
|
|
"
|
|
|
|
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
|
|
}
|
|
|