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 D5D20139694 for ; Fri, 10 Feb 2017 15:25:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C146E0C2F; Fri, 10 Feb 2017 15:25:06 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F1563E0C2F for ; Fri, 10 Feb 2017 15:25:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9F6B333BF43 for ; Fri, 10 Feb 2017 15:25:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E02EF3FDB for ; Fri, 10 Feb 2017 15:25:02 +0000 (UTC) From: "Wolfram Schlich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Wolfram Schlich" Message-ID: <1486739512.c2c5cf3d2e22d3f1116d21628448ff1fc7a434d8.wschlich@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.0.1-r2.ebuild X-VCS-Directories: media-video/motion/ X-VCS-Committer: wschlich X-VCS-Committer-Name: Wolfram Schlich X-VCS-Revision: c2c5cf3d2e22d3f1116d21628448ff1fc7a434d8 X-VCS-Branch: master Date: Fri, 10 Feb 2017 15:25:02 +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: 59b1c1c9-78a3-4a4c-89de-9c02887ac968 X-Archives-Hash: e247c5a24beaad37511e3a142ab106ae commit: c2c5cf3d2e22d3f1116d21628448ff1fc7a434d8 Author: Wolfram Schlich gentoo org> AuthorDate: Fri Feb 10 15:11:29 2017 +0000 Commit: Wolfram Schlich gentoo org> CommitDate: Fri Feb 10 15:11:52 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2c5cf3d media-video/motion: reformat README.gentoo, print contents upon first installation, use latest motion.confd-r1 Package-Manager: portage-2.3.3 media-video/motion/motion-4.0.1-r2.ebuild | 85 +++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/media-video/motion/motion-4.0.1-r2.ebuild b/media-video/motion/motion-4.0.1-r2.ebuild new file mode 100644 index 0000000000..3bc71f9d9f --- /dev/null +++ b/media-video/motion/motion-4.0.1-r2.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="ffmpeg libav mmal mysql postgres v4l" + +RDEPEND=" + ffmpeg? ( + libav? ( media-video/libav:= ) + !libav? ( media-video/ffmpeg:0= ) + ) + virtual/jpeg:= + mmal? ( media-libs/raspberrypi-userland ) + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql:= ) +" +DEPEND="${RDEPEND} + v4l? ( virtual/os-headers media-libs/libv4l ) +" + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS=" +You need to setup /etc/${PN}/${PN}.conf before running ${PN} for +the first time. You can use /etc/${PN}/${PN}-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 ${PN} as a service, use: +rc-update add ${PN} default # with OpenRC +systemctl enable ${PN}.service # with systemd +" + +pkg_setup() { + enewuser ${PN} -1 -1 -1 video +} + +S="${WORKDIR}"/${PN}-release-${PV} + +src_prepare() { + eapply_user + eautoreconf +} + +src_configure() { + econf \ + $(use_with ffmpeg) \ + $(use_with mmal) \ + $(use_with mysql) \ + $(use_with postgres pgsql) \ + $(use_with v4l) \ + --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_dounit "${FILESDIR}"/${PN}_at.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 +}