Added a secure version of the v4l2loopback ebuild. (uses HTTPS)

This commit is contained in:
kimitsune 2020-04-22 19:28:22 +02:00
parent a0e63b452a
commit b1f7b4ec43
2 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1 @@
EBUILD v4l2loopback-9999.ebuild 1148 BLAKE2B 09314ef567e84b91eea4d07069a92e39b320524f3fa5076a71d1a30fac487746d01aaae3c1929776c8a03493ef2760ca574856f0da2b359d487cdb4e7a65ca78 SHA512 b8df9231851911dddebbbc978261db435276720f48c262783d1bee747d5d349422492d3fc354cbb80d62a633dcf91c31b2d5769d067ee9e9e038eeb96bd81d08

View File

@ -0,0 +1,59 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit linux-mod toolchain-funcs
case ${PV} in
9999)
inherit git-r3
KEYWORDS=""
EGIT_REPO_URI="https://github.com/umlaeute/v4l2loopback.git"
;;
*)
inherit vcs-snapshot
KEYWORDS="~amd64 ~x86"
SRC_URI="https://github.com/umlaeute/v4l2loopback/tarball/v${PV} -> ${P}.tar.gz"
;;
esac
DESCRIPTION="v4l2 loopback device which output is it's own input"
HOMEPAGE="https://github.com/umlaeute/v4l2loopback"
LICENSE="GPL-2"
SLOT="0"
IUSE="examples"
CONFIG_CHECK="VIDEO_DEV"
MODULE_NAMES="v4l2loopback(video:)"
BUILD_TARGETS="all"
pkg_setup() {
linux-mod_pkg_setup
export KERNELRELEASE=${KV_FULL}
}
src_prepare() {
default
sed -i -e 's/gcc /$(CC) /' examples/Makefile || die
}
src_compile() {
linux-mod_src_compile
if use examples; then
emake CC=$(tc-getCC) -C examples
fi
}
src_install() {
linux-mod_src_install
dosbin utils/v4l2loopback-ctl
dodoc doc/kernel_debugging.txt
dodoc doc/docs.txt
if use examples; then
dosbin examples/yuv4mpeg_to_v4l2
docinto examples
dodoc examples/{*.sh,*.c,Makefile}
fi
}