Gentoo Archives: gentoo-commits

From: "Gunnar Wrobel (wrobel)" <wrobel@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/gallery: ChangeLog gallery-2.2.3.ebuild
Date: Fri, 07 Sep 2007 14:48:52
Message-Id: E1ITf1x-0000tI-1E@stork.gentoo.org
1 wrobel 07/09/07 14:41:57
2
3 Modified: ChangeLog
4 Added: gallery-2.2.3.ebuild
5 Log:
6 Added gallery-2.2.3 to the tree in response to sec bug #191587.
7 (Portage version: 2.1.2.12)
8
9 Revision Changes Path
10 1.116 www-apps/gallery/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/ChangeLog?rev=1.116&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/ChangeLog?rev=1.116&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/ChangeLog?r1=1.115&r2=1.116
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-apps/gallery/ChangeLog,v
19 retrieving revision 1.115
20 retrieving revision 1.116
21 diff -u -r1.115 -r1.116
22 --- ChangeLog 29 Jul 2007 17:27:25 -0000 1.115
23 +++ ChangeLog 7 Sep 2007 14:41:56 -0000 1.116
24 @@ -1,6 +1,11 @@
25 # ChangeLog for www-apps/gallery
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-apps/gallery/ChangeLog,v 1.115 2007/07/29 17:27:25 phreak Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-apps/gallery/ChangeLog,v 1.116 2007/09/07 14:41:56 wrobel Exp $
29 +
30 +*gallery-2.2.3 (07 Sep 2007)
31 +
32 + 07 Sep 2007; <wrobel@g.o> +gallery-2.2.3.ebuild:
33 + Added gallery-2.2.3 to the tree in response to sec bug #191587.
34
35 29 Jul 2007; Christian Heim <phreak@g.o> gallery-1.5.3.ebuild,
36 gallery-1.5.5.ebuild:
37
38
39
40 1.1 www-apps/gallery/gallery-2.2.3.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/gallery-2.2.3.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/gallery-2.2.3.ebuild?rev=1.1&content-type=text/plain
44
45 Index: gallery-2.2.3.ebuild
46 ===================================================================
47 # Copyright 1999-2007 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/www-apps/gallery/gallery-2.2.3.ebuild,v 1.1 2007/09/07 14:41:56 wrobel Exp $
50
51 inherit webapp eutils depend.php
52
53 DESCRIPTION="Web based (PHP Script) photo album viewer/creator"
54 HOMEPAGE="http://gallery.sourceforge.net/"
55 SRC_URI="mirror://sourceforge/${PN}/${P}-full.tar.gz"
56
57 LICENSE="GPL-2"
58 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
59 IUSE="dcraw ffmpeg gd imagemagick mysql netpbm postgres unzip zip"
60
61 RDEPEND="
62 media-libs/jpeg
63 dcraw? ( >=media-gfx/dcraw-8.03 )
64 ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20051216 )
65 gd? ( >=media-libs/gd-2 )
66 imagemagick? ( >=media-gfx/imagemagick-5.4.9.1-r1 )
67 netpbm? ( >=media-libs/netpbm-9.12 >=media-gfx/jhead-2.2 )
68 unzip? ( app-arch/unzip )
69 zip? ( app-arch/zip )
70 "
71
72 S=${WORKDIR}/${PN}2
73
74 need_php
75
76 pkg_setup() {
77 webapp_pkg_setup
78
79 local php_flags="pcre session"
80 local DIE=
81
82 use mysql && php_flags="${php_flags} mysql"
83 use postgres && php_flags="${php_flags} postgres"
84
85 if ! PHPCHECKNODIE="yes" require_php_with_use ${php_flags}; then
86 DIE="yes"
87 fi
88 if use gd; then
89 if ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then
90 DIE="yes"
91 fi
92 fi
93
94 if [[ ${DIE} == "yes" ]]; then
95 eerror
96 eerror "${PHP_PKG} needs to be re-installed with all of the following"
97 eerror "USE flags enabled:"
98 eerror
99 eerror "${php_flags}"
100 eerror
101 if use gd; then
102 eerror "as well as any of the following USE flags enabled:"
103 eerror
104 eerror "gd gd-external"
105 eerror
106 fi
107 die "Re-install ${PHP_PKG}"
108 fi
109 }
110
111 src_install() {
112 webapp_src_preinst
113
114 cp -R * ${D}/${MY_HTDOCSDIR}
115 dohtml README.html
116
117 webapp_postinst_txt en ${FILESDIR}/postinstall-en2.txt
118 webapp_src_install
119 }
120
121 pkg_postinst() {
122 elog "You are strongly encouraged to back up your database"
123 elog "and the g2data directory, as upgrading to 2.2 will make"
124 elog "irreversible changes to both."
125 elog
126 elog "g2data dir: cp -Rf /path/to/g2data/ /path/to/backup"
127 elog "mysql: mysqldump --opt -u username -h hostname -p database > /path/to/backup.sql"
128 elog "postgres: pg_dump -h hostname --format=t database > /path/to/backup.sql"
129 webapp_pkg_postinst
130 }
131
132
133
134 --
135 gentoo-commits@g.o mailing list