mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 14:43:27 -04:00
media-video/motioneye: add 0.44.0
Signed-off-by: Dale Showers <gentoo@fictx.com>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST 0.44.0b2.tar.gz 1750708 BLAKE2B 95da2aed3d5355d94143a051921beeb1dc4afdc7029eb07ec07274623d43952b3d87d1253567bc9e576eb83e7b5524ede6018a3c4adc24b2d5160baa4bd76518 SHA512 1cecc06518702eab4a94f590c64a23827567eeb3c9bb6e05203394450e762b035b70802810aab8aefd263d0173ac8b93f9d133718ffabf35384405f87ac83eb4
|
||||
DIST 0.44.0b3.tar.gz 1765226 BLAKE2B bdcd199823fd04c35a8c455a2f9c3429614fb79bdc74c348636f995456387fced68cb9822e8fd62971a24859bf00c862454797b7243cb155ca88bc0939538096 SHA512 36f69f42dacaa571c5dd64400c9b2c37259b5058e6bd3c0d7e4a5690127eebdfe7e88854f032802fd8efca254813d8d706df21d3794d6b7f438f2d25b277a0ef
|
||||
DIST motioneye-0.44.0.tar.gz 1765162 BLAKE2B 4316ac6bec9d2df569af87df0fb0232c710eef59598e7ef47cfcd59c653eb0caed9242b8837efa2676f47f84d04051944d4094dad0b0c4a7d41d5114e0c7de7f SHA512 d083ebc475940437627e7bd92bc8ba99d9ae3cba8714e74cc30b5f6e071c28105a36698a7b6574ba3e20776ebe72e26ba2d81e5303220b910d0fbd45099d4ec0
|
||||
|
||||
68
media-video/motioneye/motioneye-0.44.0.ebuild
Normal file
68
media-video/motioneye/motioneye-0.44.0.ebuild
Normal file
@@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
|
||||
inherit readme.gentoo-r1 systemd distutils-r1
|
||||
|
||||
DESCRIPTION="A web frontend for the motion daemon, Python 3"
|
||||
HOMEPAGE="https://github.com/motioneye-project/motioneye"
|
||||
#MY_PV="b3"
|
||||
SRC_URI="https://github.com/${PN}-project/${PN}/archive/refs/tags/$(ver_cut 1-3)${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="dev-python/argon2-cffi
|
||||
dev-python/babel
|
||||
dev-python/boto3
|
||||
dev-python/jinja2
|
||||
dev-python/pillow
|
||||
dev-python/pycurl
|
||||
dev-python/tornado
|
||||
media-video/motion[ffmpeg,v4l]"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
BDEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
DISABLE_AUTOFORMATTING="yes"
|
||||
DOC_CONTENTS="
|
||||
Motioneye is run under the motion user installed via the media-video/motion package.
|
||||
|
||||
Configuration files are under /etc/motioneye and need to be writable by the motion user.
|
||||
Copy /usr/share/doc/motioneye-<version>/motioneye.conf.sample.bz2 to /etc/motioneye/motioneye.conf and edit
|
||||
Logs are located by default under /var/log/motioneye and must be writable by the motion user.
|
||||
Videos are saved by default under /var/lib/motioneye and must be writable by the motion user.
|
||||
|
||||
Web interface
|
||||
- default listens on 0.0.0.0:8765
|
||||
- default login user=admin pasword left blank
|
||||
|
||||
To install motioneye as a service, use:
|
||||
- rc-update add motioneye default # with OpenRC
|
||||
- systemctl enable motioneye.service # with systemd
|
||||
"
|
||||
distutils_enable_tests pytest
|
||||
src_install() {
|
||||
distutils-r1_src_install
|
||||
diropts -omotion -gmotion
|
||||
keepdir /var/lib/${PN}
|
||||
keepdir /var/log/${PN}
|
||||
dodir /etc/${PN}
|
||||
insopts -m 660 -omotion -gmotion
|
||||
insinto /etc/${PN}
|
||||
dodoc "$S/${PN}/extra/${PN}.conf.sample"
|
||||
|
||||
newinitd "$S/${PN}/extra/${PN}.sysv" "${PN}"
|
||||
systemd_newunit "$S/${PN}/extra/${PN}.systemd" "${PN}.service"
|
||||
readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst () {
|
||||
readme.gentoo_print_elog
|
||||
}
|
||||
Reference in New Issue
Block a user