28 lines
1.0 KiB
Bash
28 lines
1.0 KiB
Bash
# Template file for 'vhba-module-dkms'
|
|
pkgname=vhba-module-dkms
|
|
version=20200106
|
|
revision=1
|
|
wrksrc=vhba-module-${version}
|
|
conf_files="/usr/lib/udev/rules.d/40-vhba.rules"
|
|
short_desc="Virtual (SCSI) HBA module used by cdemu"
|
|
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://cdemu.sourceforge.net"
|
|
distfiles="${SOURCEFORGE_SITE}/cdemu/vhba-module-${version}.tar.bz2"
|
|
checksum=59a3208a7b8fcf1bb03bd4d352ec89d06a8b6b84db325e31b0863b209dde3483
|
|
|
|
dkms_modules="vhba-module ${version}"
|
|
depends="dkms"
|
|
|
|
do_install() {
|
|
vmkdir usr/src/vhba-module-${version}
|
|
vcopy Makefile usr/src/vhba-module-${version}
|
|
vcopy "*.c" usr/src/vhba-module-${version}
|
|
vmkdir usr/lib/udev/rules.d
|
|
vinstall ${FILESDIR}/40-vhba.rules 644 /usr/lib/udev/rules.d
|
|
vinstall ${FILESDIR}/dkms.conf 644 usr/src/vhba-module-${version}
|
|
sed -i -e "s/@VERSION@/${version}-${revision}/" ${PKGDESTDIR}/usr/src/vhba-module-${version}/dkms.conf
|
|
vmkdir usr/lib/modules-load.d
|
|
echo vhba > ${DESTDIR}/usr/lib/modules-load.d/vhba-module.conf
|
|
}
|