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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D94831382C5 for ; Tue, 6 Mar 2018 16:57:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2331EE096F; Tue, 6 Mar 2018 16:57:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DF29BE096F for ; Tue, 6 Mar 2018 16:57:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A05D5335C07 for ; Tue, 6 Mar 2018 16:57:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0DCBF1D5 for ; Tue, 6 Mar 2018 16:57:25 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1520355429.e056d18d09b20048a770715d8141b3be5aa9dbc0.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/motion/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-video/motion/Manifest media-video/motion/motion-4.1.1.ebuild X-VCS-Directories: media-video/motion/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: e056d18d09b20048a770715d8141b3be5aa9dbc0 X-VCS-Branch: master Date: Tue, 6 Mar 2018 16:57:25 +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-Archives-Salt: a43e06d4-ec55-4d7f-aba3-c69c4d641319 X-Archives-Hash: d37c28c9ba1499ed3c19ab9c0e607c41 commit: e056d18d09b20048a770715d8141b3be5aa9dbc0 Author: William Breathitt Gray gmail com> AuthorDate: Sun Mar 4 16:46:36 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Mar 6 16:57:09 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e056d18d media-video/motion: version bump to 4.1.1 This version adds support for the sqlite and webp USE flags. Closes: https://bugs.gentoo.org/639526 Closes: https://github.com/gentoo/gentoo/pull/7359 media-video/motion/Manifest | 1 + media-video/motion/motion-4.1.1.ebuild | 87 ++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/media-video/motion/Manifest b/media-video/motion/Manifest index 4669a4226d9..3b3e5a98413 100644 --- a/media-video/motion/Manifest +++ b/media-video/motion/Manifest @@ -1 +1,2 @@ DIST release-4.0.1.tar.gz 444779 BLAKE2B e74b193f421e4fe165f36fe251eafe44203bbf8825b0062254bd7e0c9a57b286314c1bbb287c1c768db62649d82b83f4876ef236e446a1f21f7baf90d5ce5b4d SHA512 6ccde3890e6af56f28208321987dd1b9d62a55bbe7cbc3ab5600263602e6e8f47589392c2f3a3a6cb54f927ee76aea94d0e83f26ce8e4047890c891b6c2f8976 +DIST motion-release-4.1.1.tar.gz 447795 BLAKE2B 8c7dfdad89f49ba8ec39689d268b4bc95c6a8bd85d4bd333f66638b2e815b3c59b2e42dd93811601b2ee7870100a0a21eaa789633056f74a5cc9f39f4f92229f SHA512 3b08d464f9243ccfc4b53b16cfc2001d1e0d206bf0295d55d8914914bc14ad0248ce5ac622cb7eb89ed32e1913a9a10add1b56497c4094ba876f7f85d6ad4143 diff --git a/media-video/motion/motion-4.1.1.ebuild b/media-video/motion/motion-4.1.1.ebuild new file mode 100644 index 00000000000..a99365d405c --- /dev/null +++ b/media-video/motion/motion-4.1.1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools readme.gentoo-r1 user 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" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="ffmpeg libav mmal mysql postgres sqlite webp v4l" + +RDEPEND=" + virtual/jpeg:= + ffmpeg? ( + libav? ( media-video/libav:= ) + !libav? ( media-video/ffmpeg:0= ) + ) + mmal? ( media-libs/raspberrypi-userland ) + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql:= ) + sqlite? ( dev-db/sqlite:3 ) + webp? ( media-libs/libwebp:= ) +" +DEPEND="${RDEPEND} + v4l? ( virtual/os-headers media-libs/libv4l ) +" + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS=" +You need to setup /etc/motion/motion.conf before running motion for the +first time. You can use /etc/motion/motion-dist.conf as a template. +Please note that the 'daemon' and 'process_id_file' settings are +overridden by the bundled OpenRC init script and systemd unit where +appropriate. + +To install motion as a service, use: +rc-update add motion default # with OpenRC +systemctl enable motion.service # with systemd +" + +S="${WORKDIR}"/${PN}-release-${PV} + +pkg_setup() { + enewuser ${PN} -1 -1 -1 video +} + +src_prepare() { + eapply_user + eautoreconf +} + +src_configure() { + econf \ + $(use_with ffmpeg) \ + $(use_with mmal) \ + $(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}"/${PN}.initd-r3 ${PN} + newconfd "${FILESDIR}"/${PN}.confd-r1 ${PN} + + systemd_dounit "${FILESDIR}"/${PN}.service + systemd_dotmpfilesd "${FILESDIR}"/${PN}.conf + + keepdir /var/lib/motion + fowners motion:video /var/lib/motion + fperms 0750 /var/lib/motion + + readme.gentoo_create_doc + readme.gentoo_print_elog +}