diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2006-05-30 18:44:04 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2006-05-30 18:44:04 +0000 |
commit | 2f013f79d8576602eec5bd6f68148ea093f4c7a1 (patch) | |
tree | 20e269a87f49af9c3b8116186d44e68b526e4918 /media-video/motion | |
parent | new version, has fix for as-needed included, fixes #131841 (diff) | |
download | gentoo-2-2f013f79d8576602eec5bd6f68148ea093f4c7a1.tar.gz gentoo-2-2f013f79d8576602eec5bd6f68148ea093f4c7a1.tar.bz2 gentoo-2-2f013f79d8576602eec5bd6f68148ea093f4c7a1.zip |
New version, ebuild kindly provided by Marko Djukic <djukic@gmail.com> and Andreas Hinterland <ich@meister-rohrfix.de> in bug #107650
(Portage version: 2.1_rc2-r3)
Diffstat (limited to 'media-video/motion')
-rw-r--r-- | media-video/motion/ChangeLog | 9 | ||||
-rw-r--r-- | media-video/motion/files/digest-motion-3.2.4 | 3 | ||||
-rw-r--r-- | media-video/motion/files/motion.init | 28 | ||||
-rw-r--r-- | media-video/motion/motion-3.2.4.ebuild | 55 |
4 files changed, 94 insertions, 1 deletions
diff --git a/media-video/motion/ChangeLog b/media-video/motion/ChangeLog index fe225fce4c22..fc9ab186fa59 100644 --- a/media-video/motion/ChangeLog +++ b/media-video/motion/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-video/motion # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/motion/ChangeLog,v 1.5 2006/05/03 20:55:48 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/motion/ChangeLog,v 1.6 2006/05/30 18:44:04 lu_zero Exp $ + +*motion-3.2.4 (30 May 2006) + + 30 May 2006; Luca Barbato <lu_zero@gentoo.org> +files/motion.init, + +motion-3.2.4.ebuild: + New version, ebuild kindly provided by Marko Djukic <djukic@gmail.com> and + Andreas Hinterland <ich@meister-rohrfix.de> in bug #107650 03 May 2006; Diego Pettenò <flameeyes@gentoo.org> metadata.xml: Update metadata to list media-video@gentoo.org as maintainer. diff --git a/media-video/motion/files/digest-motion-3.2.4 b/media-video/motion/files/digest-motion-3.2.4 new file mode 100644 index 000000000000..fe9c8cbe80e1 --- /dev/null +++ b/media-video/motion/files/digest-motion-3.2.4 @@ -0,0 +1,3 @@ +MD5 ce0a4f5cea6c59ebd7b2d12a5f95b07d motion-3.2.4.tar.gz 360850 +RMD160 09687750161ba37bda6f96d7722d6023b143afd4 motion-3.2.4.tar.gz 360850 +SHA256 31b862c9bafc3b1682627ca6e93bf8aa4559ec7f0385f0bf6dbceb91afee3530 motion-3.2.4.tar.gz 360850 diff --git a/media-video/motion/files/motion.init b/media-video/motion/files/motion.init new file mode 100644 index 000000000000..7b930bfb0184 --- /dev/null +++ b/media-video/motion/files/motion.init @@ -0,0 +1,28 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/motion/files/motion.init,v 1.1 2006/05/30 18:44:04 lu_zero Exp $ + +opts="${opts} reload" + +depend() { + need modules +} + +start() { + ebegin "Starting motion detection" + start-stop-daemon --start --quiet --exec /usr/bin/motion + eend $? +} + +stop() { + ebegin "Stopping motion detection" + start-stop-daemon --stop --quiet --exec /usr/bin/motion + eend $? +} + +reload() { + ebegin "Reloading motion detection configuration" + start-stop-daemon --stop --signal HUP --exec /usr/bin/motion + eend $? +} diff --git a/media-video/motion/motion-3.2.4.ebuild b/media-video/motion/motion-3.2.4.ebuild new file mode 100644 index 000000000000..5c4e409bf399 --- /dev/null +++ b/media-video/motion/motion-3.2.4.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/motion/motion-3.2.4.ebuild,v 1.1 2006/05/30 18:44:04 lu_zero Exp $ + +inherit eutils + +DESCRIPTION="Motion is a video motion detector with tracking-support for webcams." +HOMEPAGE="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~x86" +IUSE="ffmpeg mysql postgres v4l" +DEPEND="virtual/libc + sys-libs/zlib + media-libs/jpeg + ffmpeg? ( media-video/ffmpeg ) + mysql? ( dev-db/mysql ) + postgres? ( dev-db/postgresql )" + +src_compile() { + econf \ + $(use_with v4l) \ + $(use_with mysql) \ + $(use_with postgres pgsql) \ + $(use_with ffmpeg) \ + || die "econfigure failed" + + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "install failed" + + # install init-script + dodir /etc/init.d + exeinto /etc/init.d + newexe ${FILESDIR}/motion.init motion + + # copy configuration file + cp ${D}/etc/motion-dist.conf ${D}/etc/motion.conf + + # cleanup unused files + cd ${D}/usr/share/doc/${P}/examples/ + rm motion.init-Debian motion.init-RH motion.init-FreeBSD.sh +} + +pkg_postinst() { + ewarn "You need to setup /etc/motion.conf before running" + ewarn "motion for the first time." + einfo "Examples are available at /usr/share/doc/${P}/examples" + einfo + einfo "You can install motion detection as a service, use:" + einfo "rc-update add motion default" +} |