media-video/mjpg-streamer: superseded by Portage

This commit is contained in:
2022-11-15 09:46:53 -08:00
parent b71e27acb7
commit c212601fe6
4 changed files with 0 additions and 139 deletions

View File

@@ -1,3 +0,0 @@
AUX mjpg-streamer.confd 347 SHA256 37019a36c29ad350ac3348c1665c631d0b4ab5efacc4583662fcbf7d4b920db1 SHA512 15841b10f0caa136b58372e180bfc3a0198d323ef2df22ddd2b334c09d0d376cac78d799c327306105bc97648ee40a3d0c78ef013a421f9468be7f89278baa33 WHIRLPOOL 7a51d9b565be672212f0b09fa54184ca3138852ae62820d18f80f3a61b6eff739e63c82e479ee0735d13231f5f41252ea3be532c11e5f02e7c6b2dc8f7256325
AUX mjpg-streamer.initd 1225 SHA256 9913e5488af52f3f2e42dc4136e4f181c648b83eafca5789d5264c259940b27a SHA512 e7d80dac4eb078105740bde48f7cbbb6a66d3e87419b3ef327da3b5e150d51af2ea0c3c57ba38f4936fc3a2608eaf24fd57eba95e9c29aec7f15b71cf351a5f4 WHIRLPOOL df7d7c9b1d33a7a2fd4a2aa3dbf13b683ae897f71f8fa272f3a0d79001e88427d4198fb404ce9b25d0b5c27d430dd3593b8f3e631b1840ed156f9c958b8c25cd
EBUILD mjpg-streamer-9999.ebuild 1788 SHA256 521b292042bdd822c464f8b73d8a9ac0188ab42e9bbe8764d14f768c4400d5a1 SHA512 a1be367d7e922d6a9d642970ea0ed177ac2b68ab9172476eadf6a2d087c33f15ae9acf0a3c6196e8c5fa9694683b7a49914296def0ec2e9b96486a60bd8f4cf1 WHIRLPOOL 00ff86d125b52e4ecb122595d145358c0c95bfc9a4e7dd37bb7c528522fe11922032fdb52a9da8ddddd60825c7ba1b4b7d159d70ed3cd6383690686e538ce8d7

View File

@@ -1,21 +0,0 @@
# The input plugins and options:
# uvc
# testpicture
# file
#ex. INPUT_PLUGIN="uvc"
INPUT_PLUGIN=""
INPUT_PLUGIN_OPTS=""
# The output plugins and options:
# autofocus
# file
# http
# udp
# rtsp
#ex. OUTPUT_PLUGIN="http"
OUTPUT_PLUGIN=""
OUTPUT_PLUGIN_OPTS=""
# Deamon runing as user/group
MJPG_STREAMER_USER="nobody"
MJPG_STREAMER_GROUP="video"

View File

@@ -1,47 +0,0 @@
#!/sbin/openrc-run
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
MJPG_STREAMER_PIDFILE="${MJPG_STREAMER_PIDFILE:-/var/run/${SVCNAME}.pid}"
MY_NAME=${SVCNAME//-/_}
depend() {
use logger
}
checkconfig() {
local vars
[[ ${INPUT_PLUGIN} ]] || vars+=\ INPUT_PLUGIN
[[ ${OUTPUT_PLUGIN} ]] || vars+=\ OUTPUT_PLUGIN
[[ ${MJPG_STREAMER_USER} ]] || vars+=\ MJPG_STREAMER_USER
[[ ${MJPG_STREAMER_GROUP} ]] || vars+=\ MJPG_STREAMER_GROUP
vars="${vars# }"
if [[ ${vars} ]]; then
eerror "Required variables in /etc/conf.d/${SVCNAME} are not set:"
eerror " ${vars// /, }"
return 1
fi
return 0
}
start() {
checkconfig || return $?
ebegin "Starting ${SVCNAME}"
start-stop-daemon --start --exec /usr/bin/${MY_NAME} \
--user "${MJPG_STREAMER_USER}" \
--group "${MJPG_STREAMER_GROUP}" -w 100 -b -m \
--pidfile "${MJPG_STREAMER_PIDFILE}" \
-- -i "input_${INPUT_PLUGIN}.so ${INPUT_PLUGIN_OPTS}" \
-o "output_${OUTPUT_PLUGIN}.so ${OUTPUT_PLUGIN_OPTS}"
eend $? "Check syslog to see why startup failed."
}
stop() {
ebegin "Stopping ${SVCNAME}"
start-stop-daemon --stop --exec /usr/bin/${MY_NAME} \
--pidfile "${MJPG_STREAMER_PIDFILE}"
eend $?
}

View File

@@ -1,68 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit eutils git-r3 cmake
DESCRIPTION="MJPG-streamer takes JPGs from Linux-UVC compatible webcams"
HOMEPAGE="https://sourceforge.net/projects/mjpg-streamer"
#SRC_URI="https://dev.gentoo.org/~aidecoe/distfiles/${CATEGORY}/${PN}/${P}.tar.bz2"
EGIT_REPO_URI=https://github.com/jacksonliam/$PN
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~arm64"
S=$WORKDIR/$P/$PN-experimental
INPUT_PLUGINS="input_testpicture input_control input_file input_uvc input_raspicam"
OUTPUT_PLUGINS="output_file output_udp output_http output_autofocus output_rtsp"
IUSE_PLUGINS="${INPUT_PLUGINS} ${OUTPUT_PLUGINS}"
IUSE="input_testpicture input_control input_file +input_uvc input_raspicam output_file
output_udp +output_http output_autofocus output_rtsp
www v4l"
REQUIRED_USE="|| ( ${INPUT_PLUGINS} )
|| ( ${OUTPUT_PLUGINS} )
v4l? ( input_uvc )"
RDEPEND="virtual/jpeg
v4l? ( input_uvc? ( media-libs/libv4l ) )"
DEPEND="${RDEPEND}
input_testpicture? ( media-gfx/imagemagick )
virtual/jpeg
dev-libs/protobuf-c
media-libs/libgphoto2
media-libs/libsdl
input_raspicam? ( >=media-libs/raspberrypi-userland-1.20190114 )"
src_compile() {
local v4l=$(use v4l && use input_uvc && echo 'USE_LIBV4L2=true')
emake ${v4l}
}
src_install() {
into /usr
dobin ${PN//-/_}
dolib.so *.so
if use www ; then
insinto /usr/share/${PN}
doins -r www
fi
dodoc README.md
newinitd "${FILESDIR}"/${PN}.initd ${PN}
newconfd "${FILESDIR}"/${PN}.confd ${PN}
}
pkg_postinst() {
elog "Remember to set an input and output plugin for mjpg-streamer."
if use www ; then
echo
elog "An example webinterface has been installed into"
elog "/usr/share/mjpg-streamer/www for your usage."
fi
}