Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/motion: ChangeLog motion-3.2.10.1.ebuild
Date: Fri, 20 Jun 2008 21:47:14
Message-Id: E1K9oRo-0007FV-M0@stork.gentoo.org
1 aballier 08/06/20 21:47:08
2
3 Modified: ChangeLog
4 Added: motion-3.2.10.1.ebuild
5 Log:
6 version bump for bug #227053 and add compatibility with older ffmpegs
7 (Portage version: 2.2_rc1/cvs/Linux 2.6.25.4 x86_64)
8
9 Revision Changes Path
10 1.18 media-video/motion/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/motion/ChangeLog?rev=1.18&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/motion/ChangeLog?rev=1.18&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/motion/ChangeLog?r1=1.17&r2=1.18
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-video/motion/ChangeLog,v
19 retrieving revision 1.17
20 retrieving revision 1.18
21 diff -u -r1.17 -r1.18
22 --- ChangeLog 21 May 2008 16:06:38 -0000 1.17
23 +++ ChangeLog 20 Jun 2008 21:47:08 -0000 1.18
24 @@ -1,6 +1,13 @@
25 # ChangeLog for media-video/motion
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-video/motion/ChangeLog,v 1.17 2008/05/21 16:06:38 dev-zero Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-video/motion/ChangeLog,v 1.18 2008/06/20 21:47:08 aballier Exp $
29 +
30 +*motion-3.2.10.1 (20 Jun 2008)
31 +
32 + 20 Jun 2008; Alexis Ballier <aballier@g.o>
33 + +files/motion-3.2.10.1-asneeded.patch,
34 + +files/motion-3.2.10.1-ffmpegheaders.patch, +motion-3.2.10.1.ebuild:
35 + version bump for bug #227053 and add compatibility with older ffmpegs
36
37 21 May 2008; Tiziano Müller <dev-zero@g.o> motion-3.2.4.ebuild,
38 motion-3.2.7.ebuild, motion-3.2.8.ebuild, motion-3.2.9.ebuild:
39
40
41
42 1.1 media-video/motion/motion-3.2.10.1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/motion/motion-3.2.10.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/motion/motion-3.2.10.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: motion-3.2.10.1.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-video/motion/motion-3.2.10.1.ebuild,v 1.1 2008/06/20 21:47:08 aballier Exp $
52
53 inherit eutils autotools
54
55 DESCRIPTION="Motion is a video motion detector with tracking-support for webcams."
56 HOMEPAGE="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome"
57 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~ppc ~x86"
62 IUSE="ffmpeg mysql postgres v4l"
63
64 DEPEND="sys-libs/zlib
65 media-libs/jpeg
66 media-video/mjpegtools
67 ffmpeg? ( media-video/ffmpeg )
68 mysql? ( virtual/mysql )
69 postgres? ( virtual/postgresql-server )"
70
71 pkg_setup() {
72 enewuser motion -1 -1 -1 "video" || die "failed to create motion user"
73 }
74
75 src_unpack() {
76 unpack ${A}
77 cd "${S}"
78 epatch "${FILESDIR}/${P}-asneeded.patch"
79 epatch "${FILESDIR}/${P}-ffmpegheaders.patch"
80 eautoreconf
81 }
82
83 src_compile() {
84 econf --without-optimizecpu \
85 $(use_with v4l) \
86 $(use_with mysql) \
87 $(use_with postgres pgsql) \
88 $(use_with ffmpeg)
89
90 emake || die "emake failed."
91 }
92
93 src_install() {
94 emake DESTDIR="${D}" install || die "emake install failed."
95
96 # Install init script.
97 newinitd "${FILESDIR}"/motion.init-r1 motion
98 newconfd "${FILESDIR}"/motion.confd motion
99
100 # Create correct dir for motion.pid
101 dodir /var/run/motion
102 fowners motion:video /var/run/motion
103 fperms 750 /var/run/motion
104 keepdir /var/run/motion
105
106 # Rename configuration file.
107 mv "${D}"/etc/motion-dist.conf "${D}"/etc/motion.conf
108
109 # Remove dummy documentation and install it using ebuild functions.
110 rm -rf "${D}"/usr/share/doc/${P}
111 dodoc CHANGELOG CODE_STANDARD CREDITS FAQ README README.FreeBSD *.conf
112 dohtml *.html
113 }
114
115 pkg_postinst() {
116 elog "You need to setup /etc/motion.conf before running"
117 elog "motion for the first time. You can install motion"
118 elog "detection as a service, use:"
119 elog "rc-update add motion default"
120 }
121
122
123
124 --
125 gentoo-commits@l.g.o mailing list