Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/gallery: ChangeLog gallery-1.5.9.ebuild gallery-2.2.6.ebuild
Date: Mon, 29 Sep 2008 07:38:31
Message-Id: E1KkDKu-0006IR-8p@stork.gentoo.org
1 pva 08/09/29 07:38:28
2
3 Modified: ChangeLog
4 Added: gallery-1.5.9.ebuild gallery-2.2.6.ebuild
5 Log:
6 Version bump, fixes security issues, bug #238113, thank Robert Buchholz for report.
7 (Portage version: 2.2_rc9/cvs/Linux 2.6.25-gentoo-r7 x86_64)
8
9 Revision Changes Path
10 1.154 www-apps/gallery/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/ChangeLog?rev=1.154&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/ChangeLog?rev=1.154&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/ChangeLog?r1=1.153&r2=1.154
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-apps/gallery/ChangeLog,v
19 retrieving revision 1.153
20 retrieving revision 1.154
21 diff -u -r1.153 -r1.154
22 --- ChangeLog 19 Sep 2008 18:50:35 -0000 1.153
23 +++ ChangeLog 29 Sep 2008 07:38:27 -0000 1.154
24 @@ -1,6 +1,14 @@
25 # ChangeLog for www-apps/gallery
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-apps/gallery/ChangeLog,v 1.153 2008/09/19 18:50:35 dertobi123 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-apps/gallery/ChangeLog,v 1.154 2008/09/29 07:38:27 pva Exp $
29 +
30 +*gallery-2.2.6 (29 Sep 2008)
31 +*gallery-1.5.9 (29 Sep 2008)
32 +
33 + 29 Sep 2008; Peter Volkov <pva@g.o> +gallery-1.5.9.ebuild,
34 + +gallery-2.2.6.ebuild:
35 + Version bump, fixes security issues, bug #238113, thank Robert Buchholz for
36 + report.
37
38 19 Sep 2008; Tobias Scherbaum <dertobi123@g.o>
39 gallery-1.5.8.ebuild:
40
41
42
43 1.1 www-apps/gallery/gallery-1.5.9.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/gallery-1.5.9.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/gallery-1.5.9.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gallery-1.5.9.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/www-apps/gallery/gallery-1.5.9.ebuild,v 1.1 2008/09/29 07:38:27 pva Exp $
53
54 inherit webapp depend.php confutils
55
56 DESCRIPTION="Web based (PHP Script) photo album viewer/creator"
57 HOMEPAGE="http://gallery.sourceforge.net/"
58 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
59
60 LICENSE="GPL-2"
61 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
62 IUSE="imagemagick netpbm unzip zip"
63
64 RDEPEND="media-libs/jpeg
65 imagemagick? ( >=media-gfx/imagemagick-5.4.9.1-r1 )
66 netpbm? ( >=media-libs/netpbm-9.12 >=media-gfx/jhead-2.2 )
67 unzip? ( app-arch/unzip )
68 zip? ( app-arch/zip )"
69
70 need_httpd_cgi
71 need_php_httpd
72
73 pkg_setup() {
74 webapp_pkg_setup
75 confutils_require_any imagemagick netpbm
76 require_php_with_use pcre session
77 }
78
79 src_unpack() {
80 unpack ${A}
81 cd "${S}"
82 gunzip ChangeLog.archive.gz
83 }
84
85 src_install() {
86 webapp_src_preinst
87
88 dodoc AUTHORS ChangeLog ChangeLog.archive README
89 dohtml docs/*
90
91 cp -r . "${D}/${MY_HTDOCSDIR}"
92 rm -rf "${D}/${MY_HTDOCSDIR}"/{AUTHORS,ChangeLog,ChangeLog.archive,README,LICENSE.txt,docs/}
93
94 webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
95 webapp_src_install
96 }
97
98
99
100 1.1 www-apps/gallery/gallery-2.2.6.ebuild
101
102 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/gallery-2.2.6.ebuild?rev=1.1&view=markup
103 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/gallery-2.2.6.ebuild?rev=1.1&content-type=text/plain
104
105 Index: gallery-2.2.6.ebuild
106 ===================================================================
107 # Copyright 1999-2008 Gentoo Foundation
108 # Distributed under the terms of the GNU General Public License v2
109 # $Header: /var/cvsroot/gentoo-x86/www-apps/gallery/gallery-2.2.6.ebuild,v 1.1 2008/09/29 07:38:27 pva Exp $
110
111 inherit webapp eutils depend.php confutils
112
113 DESCRIPTION="Web based (PHP Script) photo album viewer/creator"
114 HOMEPAGE="http://gallery.sourceforge.net/"
115 SRC_URI="mirror://sourceforge/${PN}/${P}-full.tar.gz"
116
117 LICENSE="GPL-2"
118 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
119 IUSE="ffmpeg gd imagemagick mysql netpbm postgres raw unzip zip"
120
121 RDEPEND="media-libs/jpeg
122 raw? ( >=media-gfx/dcraw-8.03 )
123 ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20051216 )
124 imagemagick? ( >=media-gfx/imagemagick-5.4.9.1-r1 )
125 netpbm? ( >=media-libs/netpbm-9.12 >=media-gfx/jhead-2.2 )
126 unzip? ( app-arch/unzip )
127 zip? ( app-arch/zip )"
128
129 S=${WORKDIR}/${PN}2
130
131 need_httpd_cgi
132 need_php_httpd
133
134 pkg_setup() {
135 webapp_pkg_setup
136 confutils_require_any gd imagemagick netpbm
137 confutils_require_any mysql postgres
138
139 local php_flags="pcre session"
140 use mysql && php_flags="${php_flags} mysql"
141 use postgres && php_flags="${php_flags} postgres"
142
143 if ! PHPCHECKNODIE="yes" require_php_with_use ${php_flags} || \
144 ( use gd && ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ) ; then
145 eerror
146 eerror "${PHP_PKG} needs to be re-installed with all of the following USE flags enabled:"
147 eerror
148 eerror "${php_flags}"
149 eerror
150 use gd && eerror "as well as with either gd or gd-external USE flag enabled."
151 die "Re-install ${PHP_PKG}."
152 fi
153 }
154
155 src_install() {
156 webapp_src_preinst
157
158 dohtml README.html
159 rm README.html LICENSE MANIFEST
160
161 insinto "${MY_HTDOCSDIR}"
162 doins -r .
163
164 webapp_postinst_txt en "${FILESDIR}"/postinstall-en2.txt
165 webapp_src_install
166 }
167
168 pkg_postinst() {
169 elog "You are strongly encouraged to back up your database"
170 elog "and the g2data directory, as upgrading to 2.2 will make"
171 elog "irreversible changes to both."
172 elog
173 elog "g2data dir: cp -Rf /path/to/g2data/ /path/to/backup"
174 elog "mysql: mysqldump --opt -u username -h hostname -p database > /path/to/backup.sql"
175 elog "postgres: pg_dump -h hostname --format=t database > /path/to/backup.sql"
176 webapp_pkg_postinst
177 }