From 616579b5d773c50af31ee56f00105d96ce641ca2 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Aug 2021 10:30:13 +0100 Subject: gentoo resync : 14.08.2021 --- media-video/mjpg-streamer/Manifest | 4 +- media-video/mjpg-streamer/metadata.xml | 7 ++ .../mjpg-streamer-0_pre20200524-r1.ebuild | 100 +++++++++++++++++++++ 3 files changed, 110 insertions(+), 1 deletion(-) create mode 100644 media-video/mjpg-streamer/mjpg-streamer-0_pre20200524-r1.ebuild (limited to 'media-video/mjpg-streamer') diff --git a/media-video/mjpg-streamer/Manifest b/media-video/mjpg-streamer/Manifest index aabca7d700c6..fdeb567880ee 100644 --- a/media-video/mjpg-streamer/Manifest +++ b/media-video/mjpg-streamer/Manifest @@ -3,5 +3,7 @@ AUX mjpg-streamer.confd 347 BLAKE2B f544307fca9e420d5a8edd3b8ea1834dc5d9125d2aba AUX mjpg-streamer.initd 1265 BLAKE2B e42564a98636a1a5dc059bd418e281ab6da494f88cb64cd56c58401d55c4e02208c5f45289d0ee04ce16fe4118a7cbcd2f5f2d4a289f171be790bbb5e8d81a3e SHA512 4cc90922e9fbd966f9a41719e18672e46a94a7206f18e12e8ac19bd40de3944597f0323c42862731079201367381af9de8cfd4ee8d89f7fc3173640fda9ef5d9 AUX to-work-with-kernel-3.18.patch 2832 BLAKE2B 157c3c5c30973cdc64d9bd0a5cadba238dd6e33d72b96b0776065f57bb34e14f47336e509e8dbf1fe6fbb8f715fd99837b42e9ecec6fcc4c5da1101300c1e900 SHA512 c619c788fd09118f309b081eabb7f80835690923e098368f16f26a7b4e6b63e494dd5f91a9fe73d83b3151b77dd6393263ab3756f7d8b3a6286ac3d52f1e89c8 DIST mjpg-streamer-0_pre20120621.tar.bz2 471546 BLAKE2B 3ede2a60062bba7c91ddfa0d7151e32cd8dac11a083cc6a88dc350a523174685b2ff066fa99db13b82a6a4960d370b97b27aa3663ac323fa54908bb0108857d0 SHA512 dfc6077ec03fe4f239d8e25b65b7808bd489a954d8cf3aeed444e68fd9536720c2c888a5fa9f4b8d0152dab5ca0bd166a46f2cb22a357ba816eb5bc79ff11332 +DIST mjpg-streamer-0_pre20200524.tar.gz 711183 BLAKE2B 3a40f20f518a53c0c6046cf37728c46c2a843a1dd0ef0086c77940b5133f1337445b1edb2c21edc1bbacc588f7c7b45b1530871c944695c2ae02cf327fde6847 SHA512 d6e910f6693b27c16c33749458affcb4d9336bd15c642156c452fcbc4a8c2ba9f4a6102e6b94f698fc6fb48da9564a09cb0f804a5ac52201e566adf798a70ba2 EBUILD mjpg-streamer-0_pre20120621-r2.ebuild 1879 BLAKE2B 1bc5482504e7ccae9c5de4240dc7033046761d82cf066f6f02f02ef9259c578dbb032f388566fa985a36a11598429b9b63896d320d2ccbe25beb97c6e92fd663 SHA512 d330b8e7015e62f72e146d2555522d38c97661bafb4c4b41e7953324523fc85175d6eb5a61c7827646b11efb85e6e9e34df811c770c4bbfe0f0ef0659d68cbed -MISC metadata.xml 1739 BLAKE2B eb540aa61dc989023ab95953685d26a490919bc1faf9a4a3a144d47a9ff7b2947613114008365aec1f78163dd556be8251fc7532bb7d8ea17691ba1ba166531b SHA512 6efd0e69791aa856af7c404f380887a1936709bec939b2dd5b6082dd3f02519797070fee34a10e22072d630dfd4293bcb6a8d8b1b8c677b40009ef309cc7e6f1 +EBUILD mjpg-streamer-0_pre20200524-r1.ebuild 3062 BLAKE2B 89b868577061d92b6cd37c0749ab627d1da0148b6fbda18c6cdbb9908ae3a1c0909da74eb31980cc4936ae918d0e89c55ac0eea2998637618ca1d10e151a2511 SHA512 a9e302dcc0befd0df2b65b4c43f01d11593ed8a18334614c5f94fe384522af01faff8b4d58c6d7b61c475df0ade90b313b9633284cb23d8a13f7dba9576716a8 +MISC metadata.xml 2302 BLAKE2B c9d5dfd06e3aa801640efc4d85cae93a43e17a04dad974feda4cd7fe4e4370acdbf9d0cee884135fb37f26dda6ab491f8bc5f6656147a681cd5a569e11186c34 SHA512 5482275ff980fe6ac61aba687926464600a6e27eb7047304f259b77353969894af97478a64ef233d352129819acaf5f0ac2a869ef12f74e189736f8b87202d01 diff --git a/media-video/mjpg-streamer/metadata.xml b/media-video/mjpg-streamer/metadata.xml index 2e4cb6515fd8..8e9f536d7b31 100644 --- a/media-video/mjpg-streamer/metadata.xml +++ b/media-video/mjpg-streamer/metadata.xml @@ -24,6 +24,9 @@ it's content Plugin that sends video stream from UVC compatible camera + Plugin that takes http-input + Plugin that sends video stream from PTP2 compatible camera + Raspberry Pi camera support via the input_raspicam plugin Plugin that saves received content under given location Plugin receiving content over UDP and storing to @@ -33,7 +36,11 @@ Auto focusing plugin Plugin which provides a mechanism to take snapshots with a trigger from a UDP packet + Plugin which allows to see output with viewer + Plugin which provides zmqserver processing Installs WWW content + Enable experimental HTTP management option + Enable camera WXP compatible format mjpg-streamer diff --git a/media-video/mjpg-streamer/mjpg-streamer-0_pre20200524-r1.ebuild b/media-video/mjpg-streamer/mjpg-streamer-0_pre20200524-r1.ebuild new file mode 100644 index 000000000000..4e5e920bd584 --- /dev/null +++ b/media-video/mjpg-streamer/mjpg-streamer-0_pre20200524-r1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit systemd + +DESCRIPTION="MJPG-streamer takes JPGs from Linux-UVC compatible webcams" +HOMEPAGE="https://github.com/jacksonliam/mjpg-streamer" +EGIT_COMMIT="85f89a8c321e799fabb1693c5d133f3fb48ee748" +SRC_URI="https://github.com/jacksonliam/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +INPUT_PLUGINS="input-testpicture input-control input-file input-uvc input-http input-ptp2 input-raspicam" +OUTPUT_PLUGINS="output-file output-udp output-http output-autofocus output-rtsp output-viewer output-zmqserver" +IUSE_PLUGINS="${INPUT_PLUGINS} ${OUTPUT_PLUGINS}" +IUSE="input-testpicture input-control +input-file input-uvc input-http input-ptp2 input-raspicam + output-file output-udp +output-http output-autofocus output-rtsp output-viewer output-zmqserver + www http-management wxp-compat" +REQUIRED_USE="|| ( ${INPUT_PLUGINS} ) + || ( ${OUTPUT_PLUGINS} )" + +RDEPEND="virtual/jpeg + input-uvc? ( media-libs/libv4l acct-group/video ) + input-ptp2? ( media-libs/libgphoto2 ) + input-raspicam? ( + || ( media-libs/raspberrypi-userland media-libs/raspberrypi-userland-bin ) + ) + output-zmqserver? ( + dev-libs/protobuf-c + net-libs/zeromq + )" +DEPEND="${RDEPEND} + input-testpicture? ( media-gfx/imagemagick )" + +S="${WORKDIR}/${PN}-${EGIT_COMMIT}/${PN}-experimental" + +src_prepare() { + sed -i -e "s|.*RPATH.*||g" CMakeLists.txt || die + if use wxp-compat; then + sed -i -e \ + 's|^add_feature_option(WXP_COMPAT "Enable compatibility with WebcamXP" OFF)|add_feature_option(WXP_COMPAT "Enable compatibility with WebcamXP" ON)|g' \ + CMakeLists.txt || die + fi + + local flag switch + for flag in ${IUSE_PLUGINS}; do + use ${flag} && switch='' || switch='#' + flag=${flag/input-/input_} + flag=${flag/output-/output_} + sed -i -e \ + "s|^add_subdirectory(plugins\/${flag})|${switch}add_subdirectory(plugins/${flag})|" \ + CMakeLists.txt || die + done + if use http-management; then + sed -i -e \ + 's|^add_feature_option(ENABLE_HTTP_MANAGEMENT "Enable experimental HTTP management option" OFF)|add_feature_option(ENABLE_HTTP_MANAGEMENT "Enable experimental HTTP management option" ON)|g' \ + plugins/output_http/CMakeLists.txt || die + fi + sed -e "s|@LIBDIR@|$(get_libdir)/${PN}/$(get_libdir)|g" "${FILESDIR}/${PN}.initd" > ${PN}.initd || die + + default +} + +src_install() { + into /usr + dobin ${PN//-/_} + into "/usr/$(get_libdir)/${PN}" + dolib.so *.so + + if use www ; then + insinto /usr/share/${PN} + doins -r www + fi + + dodoc README.md TODO + + newinitd ${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + systemd_dounit mjpg_streamer@.service +} + +pkg_postinst() { + einfo + elog "Remember to set an input and output plugin for mjpg-streamer." + + if use input-uvc ; then + elog "To use the UVC plugin as a regular user, you must be a part of the video group" + fi + + if use www ; then + einfo + elog "An example webinterface has been installed into" + elog "/usr/share/mjpg-streamer/www for your usage." + fi + einfo +} -- cgit v1.2.3