commit:     ea18bc40836fb8bc19243de01b6cd3116c4fac84
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Wed Apr 22 17:44:52 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Wed Apr 22 17:44:52 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ea18bc40

media-tv/droidcam: auto load module

the module is apperently not loaded by gui/cli if not loaded
so we autoload it to make sure the gui/cli does not give strange
errors

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 media-tv/droidcam/droidcam-0_pre20200416.ebuild | 5 +++++
 media-tv/droidcam/files/v4l2loopback-dc.conf    | 1 +
 2 files changed, 6 insertions(+)

diff --git a/media-tv/droidcam/droidcam-0_pre20200416.ebuild 
b/media-tv/droidcam/droidcam-0_pre20200416.ebuild
index 24a7733..6fb0579 100644
--- a/media-tv/droidcam/droidcam-0_pre20200416.ebuild
+++ b/media-tv/droidcam/droidcam-0_pre20200416.ebuild
@@ -57,6 +57,11 @@ src_install() {
        newicon -s 32x32 icon.png ${PN}.png
        newicon -s 64x64 icon2.png ${PN}.png
        make_desktop_entry ${PN} "Droidcam" ${PN} 'AudioVideo;Video'
+
+       # The cli and gui do not auto load the module if unloaded (why not tho?)
+       # so we just put it in modules-load.d to make sure it always works
+       insinto /usr/lib/modules-load.d/
+       doins "${FILESDIR}/v4l2loopback-dc.conf"
 }
 
 pkg_postinst() {

diff --git a/media-tv/droidcam/files/v4l2loopback-dc.conf 
b/media-tv/droidcam/files/v4l2loopback-dc.conf
new file mode 100644
index 0000000..7398776
--- /dev/null
+++ b/media-tv/droidcam/files/v4l2loopback-dc.conf
@@ -0,0 +1 @@
+v4l2loopback-dc

Reply via email to