From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4F0FF15815E for ; Sat, 10 Feb 2024 21:25:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6A7C2E2A61; Sat, 10 Feb 2024 21:24:59 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4F6B4E2A61 for ; Sat, 10 Feb 2024 21:24:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 77EF734306E for ; Sat, 10 Feb 2024 21:24:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 878D414CA for ; Sat, 10 Feb 2024 21:24:56 +0000 (UTC) From: "James Le Cuirot" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "James Le Cuirot" Message-ID: <1707600201.893996359ee3d07703894cce8b62803db3d63beb.chewi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/motion/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-video/motion/motion-4.5.1-r4.ebuild X-VCS-Directories: media-video/motion/ X-VCS-Committer: chewi X-VCS-Committer-Name: James Le Cuirot X-VCS-Revision: 893996359ee3d07703894cce8b62803db3d63beb X-VCS-Branch: master Date: Sat, 10 Feb 2024 21:24:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3d9bc974-54d3-4e70-abad-4fd4c91c5f1d X-Archives-Hash: 144dac6fd135ad7a3fc570cefca8f770 commit: 893996359ee3d07703894cce8b62803db3d63beb Author: James Le Cuirot gentoo org> AuthorDate: Tue Nov 14 09:05:47 2023 +0000 Commit: James Le Cuirot gentoo org> CommitDate: Sat Feb 10 21:23:21 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89399635 media-video/motion: Drop Raspberry Pi support in revbump media-libs/raspberrypi-userland is being last-rited. Motion upstream have already signaled their intent to drop this support in the next release. It is now possible to use Motion with libcamera's Pi support instead. Signed-off-by: James Le Cuirot gentoo.org> media-video/motion/motion-4.5.1-r4.ebuild | 89 +++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/media-video/motion/motion-4.5.1-r4.ebuild b/media-video/motion/motion-4.5.1-r4.ebuild new file mode 100644 index 000000000000..691023faf1fd --- /dev/null +++ b/media-video/motion/motion-4.5.1-r4.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools readme.gentoo-r1 systemd + +DESCRIPTION="A software motion detector" +HOMEPAGE="https://motion-project.github.io" +SRC_URI="https://github.com/Motion-Project/${PN}/archive/release-${PV}.tar.gz -> ${PN}-release-${PV}.tar.gz" +S="${WORKDIR}/${PN}-release-${PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="ffmpeg mariadb mysql postgres sqlite v4l webp" + +RDEPEND=" + acct-group/motion + acct-user/motion + net-libs/libmicrohttpd:= + media-libs/libjpeg-turbo:= + >=sys-devel/gettext-0.19 + ffmpeg? ( media-video/ffmpeg:0= ) + mariadb? ( dev-db/mariadb-connector-c ) + mysql? ( dev-db/mysql-connector-c ) + postgres? ( dev-db/postgresql:= ) + sqlite? ( dev-db/sqlite:3 ) + webp? ( media-libs/libwebp:= ) +" +DEPEND="${RDEPEND} + v4l? ( + media-libs/libv4l + virtual/os-headers + ) +" + +PATCHES=( + "${FILESDIR}"/${P}-fix-gettext-0.22-format-specifier.patch + "${FILESDIR}"/${P}-webp-underlinking.patch +) + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS=" +You need to setup a configuraton file (/etc/motion/motion.conf) before +running motion for the first time. + +If motion is built with the mysql or mariadb use flags then please make +sure to configure a matching database_type in the config file. + +Motion runs by default under user motion and group motion: +- change this if needed in /etc/conf.d/motion +- or add users who need access to the output files to the motion group + +To install motion as a service, use: +- rc-update add motion default # with OpenRC +- systemctl enable motion.service # with systemd +" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + $(use_with ffmpeg) \ + $(use_with mariadb) \ + $(use_with mysql) \ + $(use_with postgres pgsql) \ + $(use_with sqlite sqlite3) \ + $(use_with v4l v4l2) \ + $(use_with webp) \ + --without-optimizecpu +} + +src_install() { + emake \ + DESTDIR="${D}" \ + docdir=/usr/share/doc/${PF} \ + examplesdir=/usr/share/doc/${PF}/examples \ + install + + newinitd "${FILESDIR}/motion.initd-r5" ${PN} + newconfd "${FILESDIR}/motion.confd-r5" ${PN} + systemd_newunit "${FILESDIR}/${PN}.service-r4" "${PN}.service" + readme.gentoo_create_doc + readme.gentoo_print_elog +}