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

55 lines
1,018 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() {
2012-05-20 20:38:19 +02:00
after logger
need dbus
2009-08-20 20:01:28 +02:00
}
start() {
2012-05-20 20:38:19 +02:00
ebegin "Starting cdemu daemon"
cdemud \${CDEMUD_OPTS} -d -p /run/cdemud.pid
eend \$?
2009-08-20 20:01:28 +02:00
}
stop() {
2012-05-20 20:38:19 +02:00
ebegin "Stopping cdemu daemon"
cdemud \${CDEMUD_OPTS} -k -p /run/cdemud.pid
eend \$?
2009-08-20 20:01:28 +02:00
}
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
}