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.9.ebuild
Date: Mon, 19 Nov 2007 21:09:09
Message-Id: E1IuDrb-0002TM-M5@stork.gentoo.org
1 aballier 07/11/19 21:09:03
2
3 Modified: ChangeLog
4 Added: motion-3.2.9.ebuild
5 Log:
6 version bump, tune a bit init script to let it run as non root, bug #157913
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.16 media-video/motion/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/motion/ChangeLog?rev=1.16&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/motion/ChangeLog?rev=1.16&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/motion/ChangeLog?r1=1.15&r2=1.16
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-video/motion/ChangeLog,v
19 retrieving revision 1.15
20 retrieving revision 1.16
21 diff -u -r1.15 -r1.16
22 --- ChangeLog 19 Oct 2007 15:37:54 -0000 1.15
23 +++ ChangeLog 19 Nov 2007 21:09:03 -0000 1.16
24 @@ -1,6 +1,13 @@
25 # ChangeLog for media-video/motion
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-video/motion/ChangeLog,v 1.15 2007/10/19 15:37:54 drac Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-video/motion/ChangeLog,v 1.16 2007/11/19 21:09:03 aballier Exp $
29 +
30 +*motion-3.2.9 (19 Nov 2007)
31 +
32 + 19 Nov 2007; Alexis Ballier <aballier@g.o>
33 + +files/motion-3.2.9-asneeded.patch, +files/motion.confd,
34 + +files/motion.init-r1, +motion-3.2.9.ebuild:
35 + version bump, tune a bit init script to let it run as non root, bug #157913
36
37 19 Oct 2007; Samuli Suominen <drac@g.o> files/motion.init:
38 Add after mysql statement to init script wrt #168777.
39
40
41
42 1.1 media-video/motion/motion-3.2.9.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/motion/motion-3.2.9.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/motion/motion-3.2.9.ebuild?rev=1.1&content-type=text/plain
46
47 Index: motion-3.2.9.ebuild
48 ===================================================================
49 # Copyright 1999-2007 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.9.ebuild,v 1.1 2007/11/19 21:09:03 aballier Exp $
52
53 inherit eutils
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? ( dev-db/postgresql )"
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 }
80
81 src_compile() {
82 econf --without-optimizecpu \
83 $(use_with v4l) \
84 $(use_with mysql) \
85 $(use_with postgres pgsql) \
86 $(use_with ffmpeg)
87
88 emake || die "emake failed."
89 }
90
91 src_install() {
92 emake DESTDIR="${D}" install || die "emake install failed."
93
94 # Install init script.
95 newinitd "${FILESDIR}"/motion.init-r1 motion
96 newconfd "${FILESDIR}"/motion.confd motion
97
98 # Create correct dir for motion.pid
99 dodir /var/run/motion
100 fowners motion:video /var/run/motion
101 fperms 750 /var/run/motion
102 keepdir /var/run/motion
103
104 # Rename configuration file.
105 mv "${D}"/etc/motion-dist.conf "${D}"/etc/motion.conf
106
107 # Tell it to use a pid file where motion user has the rights to write to
108 sed -i -e "s:motion.pid:motion/\0:" "${D}/etc/motion.conf"
109
110 # Remove dummy documentation and install it using ebuild functions.
111 rm -rf "${D}"/usr/share/doc/${P}
112 dodoc CHANGELOG CODE_STANDARD CREDITS FAQ README README.FreeBSD *.conf
113 dohtml *.html
114 }
115
116 pkg_postinst() {
117 elog "You need to setup /etc/motion.conf before running"
118 elog "motion for the first time. You can install motion"
119 elog "detection as a service, use:"
120 elog "rc-update add motion default"
121 }
122
123
124
125 --
126 gentoo-commits@g.o mailing list