exherbo-impulze/packages/app-emulation/vhba-module/vhba-module.exlib

36 lines
942 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
export_exlib_phases src_compile src_install pkg_postinst
require cdemu-common [ name=vhba-module ] udev-rules
2009-08-20 19:46:51 +02:00
SUMMARY="Kernel module for CD-ROM device emulation."
DESCRIPTION="VHBA module provides (V)irtual (SCSI) (H)ost (B)us (A)dapter, which is the link between userspace cdemu daemon and linux kernel."
SLOT="0"
DEPENDENCIES="
run:
group/cdemu
"
vhba-module_src_compile() {
:
}
2009-08-20 19:46:51 +02:00
vhba-module_src_install() {
dodir /usr/src
2010-03-11 11:37:00 +01:00
edo cp -pPR "${WORK}" "${IMAGE}/usr/src/${PNV}"
2009-08-20 19:46:51 +02:00
insinto "${UDEVRULESDIR}"
2009-08-20 19:46:51 +02:00
hereins 90-vhba.rules <<EOF
2010-12-05 12:08:52 +01:00
KERNEL=="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu"
2009-08-20 19:46:51 +02:00
EOF
}
vhba-module_pkg_postinst() {
ewarn "This exheres does not build the module, you will have to do this"
ewarn "on your own. The source code has been installed to /usr/src/${PNV}"
}