diff options
-rw-r--r-- | sys-fs/vhba/files/vhba-kmod | 1 | ||||
-rw-r--r-- | sys-fs/vhba/files/vhba-udev | 3 | ||||
-rw-r--r-- | sys-fs/vhba/vhba-20190831-r2.ebuild (renamed from sys-fs/vhba/vhba-20190831-r1.ebuild) | 12 |
3 files changed, 10 insertions, 6 deletions
diff --git a/sys-fs/vhba/files/vhba-kmod b/sys-fs/vhba/files/vhba-kmod new file mode 100644 index 00000000..408a64c5 --- /dev/null +++ b/sys-fs/vhba/files/vhba-kmod @@ -0,0 +1 @@ +vhba diff --git a/sys-fs/vhba/files/vhba-udev b/sys-fs/vhba/files/vhba-udev new file mode 100644 index 00000000..043f7963 --- /dev/null +++ b/sys-fs/vhba/files/vhba-udev @@ -0,0 +1,3 @@ +# do not edit this file, it will be overwritten on update +# +KERNEL=="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdrom" diff --git a/sys-fs/vhba/vhba-20190831-r1.ebuild b/sys-fs/vhba/vhba-20190831-r2.ebuild index 2af7646f..035f7a1f 100644 --- a/sys-fs/vhba/vhba-20190831-r1.ebuild +++ b/sys-fs/vhba/vhba-20190831-r2.ebuild @@ -35,11 +35,11 @@ src_compile() { src_install() { dodoc AUTHORS ChangeLog README - einfo "Generating udev rules ..." dodir "$(get_udevdir)"/rules.d - cat > "${D}/$(get_udevdir)"/rules.d/69-vhba.rules <<-EOF || die - # do not edit this file, it will be overwritten on update - # - KERNEL=="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdrom" - EOF + insinto "$(get_udevdir)"/rules.d + newins "${FILESDIR}/${PN}"-udev 69-vhba.rules + + dodir /etc/modules-load.d + insinto /etc/modules-load.d + newins "${FILESDIR}/${PN}"-kmod vhba.conf } |