public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Wolfram Schlich" <wschlich@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/motion/
Date: Fri, 10 Feb 2017 15:25:02 +0000 (UTC)	[thread overview]
Message-ID: <1486739512.c2c5cf3d2e22d3f1116d21628448ff1fc7a434d8.wschlich@gentoo> (raw)

commit:     c2c5cf3d2e22d3f1116d21628448ff1fc7a434d8
Author:     Wolfram Schlich <wschlich <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 10 15:11:29 2017 +0000
Commit:     Wolfram Schlich <wschlich <AT> gentoo <DOT> 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
+}


             reply	other threads:[~2017-02-10 15:25 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-10 15:25 Wolfram Schlich [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-02-10 21:24 [gentoo-commits] repo/gentoo:master commit in: media-video/motion/ James Le Cuirot
2023-06-26 18:05 David Seifert
2023-06-25  7:05 Sam James
2023-06-25  7:05 Sam James
2023-05-18  7:39 Joonas Niilola
2023-05-07  7:22 Joonas Niilola
2023-02-09 16:10 Joonas Niilola
2021-09-08  1:28 Sam James
2021-04-14 17:02 John Helmert III
2021-04-14  9:59 Joonas Niilola
2021-01-04  9:32 Sam James
2021-01-01 23:00 Sam James
2020-11-05  8:12 Joonas Niilola
2020-10-31 16:27 Thomas Deutschmann
2020-06-04  7:14 Joonas Niilola
2020-04-26 10:13 Mikle Kolyada
2019-09-26  4:18 Michał Górny
2019-06-06 20:33 Andreas Sturmlechner
2019-06-04 20:58 Thomas Deutschmann
2019-05-29  1:52 Aaron Bauman
2018-03-06 16:57 Michał Górny
2017-01-31 11:43 Agostino Sarubbo
2017-01-30 13:09 Agostino Sarubbo
2017-01-23  9:21 Wolfram Schlich
2017-01-20  8:35 Wolfram Schlich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1486739512.c2c5cf3d2e22d3f1116d21628448ff1fc7a434d8.wschlich@gentoo \
    --to=wschlich@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox