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