1 |
pva 09/01/27 12:01:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: gallery-2.3-r1.ebuild |
5 |
Log: |
6 |
Added sqlite support, bug #247271, thank Marcin Deranek for report. Sqlite support is a bit experimental, so I'd like it to be ~arch for some time. |
7 |
(Portage version: 2.1.6.7/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.174 www-apps/gallery/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/ChangeLog?rev=1.174&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/ChangeLog?rev=1.174&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/ChangeLog?r1=1.173&r2=1.174 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/www-apps/gallery/ChangeLog,v |
19 |
retrieving revision 1.173 |
20 |
retrieving revision 1.174 |
21 |
diff -u -r1.173 -r1.174 |
22 |
--- ChangeLog 28 Dec 2008 21:04:58 -0000 1.173 |
23 |
+++ ChangeLog 27 Jan 2009 12:01:41 -0000 1.174 |
24 |
@@ -1,6 +1,12 @@ |
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.173 2008/12/28 21:04:58 wrobel Exp $ |
28 |
+# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-apps/gallery/ChangeLog,v 1.174 2009/01/27 12:01:41 pva Exp $ |
30 |
+ |
31 |
+*gallery-2.3-r1 (27 Jan 2009) |
32 |
+ |
33 |
+ 27 Jan 2009; Peter Volkov <pva@g.o> +gallery-2.3-r1.ebuild: |
34 |
+ Added sqlite support, bug #247271, thank Marcin Deranek for report. Sqlite |
35 |
+ support is a bit experimental, so I'd like it to be ~arch for some time. |
36 |
|
37 |
28 Dec 2008; Gunnar Wrobel <wrobel@g.o> -gallery-1.5.9.ebuild: |
38 |
Removed vulnerable www-apps/gallery-1.5.9 (sec issue #249277). |
39 |
|
40 |
|
41 |
|
42 |
1.1 www-apps/gallery/gallery-2.3-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/gallery-2.3-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apps/gallery/gallery-2.3-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: gallery-2.3-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/www-apps/gallery/gallery-2.3-r1.ebuild,v 1.1 2009/01/27 12:01:41 pva Exp $ |
52 |
|
53 |
inherit webapp eutils depend.php confutils |
54 |
|
55 |
DESCRIPTION="Web based (PHP Script) photo album viewer/creator" |
56 |
HOMEPAGE="http://gallery.sourceforge.net/" |
57 |
SRC_URI="mirror://sourceforge/${PN}/${P}-full.tar.gz" |
58 |
|
59 |
LICENSE="GPL-2" |
60 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
61 |
IUSE="ffmpeg gd imagemagick mysql netpbm postgres raw sqlite unzip zip" |
62 |
|
63 |
RDEPEND="raw? ( >=media-gfx/dcraw-8.03 ) |
64 |
ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20051216 ) |
65 |
imagemagick? ( >media-gfx/imagemagick-6.2.4 ) |
66 |
netpbm? ( >=media-libs/netpbm-9.12 >=media-gfx/jhead-2.2 ) |
67 |
unzip? ( app-arch/unzip ) |
68 |
zip? ( app-arch/zip )" |
69 |
|
70 |
S=${WORKDIR}/${PN}2 |
71 |
|
72 |
need_httpd_cgi |
73 |
need_php_httpd |
74 |
|
75 |
pkg_setup() { |
76 |
webapp_pkg_setup |
77 |
confutils_require_any gd imagemagick netpbm |
78 |
confutils_require_any mysql postgres sqlite |
79 |
|
80 |
local php_flags="pcre session" |
81 |
use mysql && php_flags="${php_flags} mysql" |
82 |
use postgres && php_flags="${php_flags} postgres" |
83 |
use sqlite && php_flags="${php_flags} pdo" |
84 |
|
85 |
if ! PHPCHECKNODIE="yes" require_php_with_use ${php_flags} || \ |
86 |
( use gd && ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ) ; then |
87 |
eerror |
88 |
eerror "${PHP_PKG} needs to be re-installed with all of the following USE flags enabled:" |
89 |
eerror |
90 |
eerror "${php_flags}" |
91 |
eerror |
92 |
use gd && eerror "as well as with either gd or gd-external USE flag enabled." |
93 |
die "Re-install ${PHP_PKG}." |
94 |
fi |
95 |
} |
96 |
|
97 |
src_install() { |
98 |
webapp_src_preinst |
99 |
|
100 |
dohtml README.html |
101 |
rm README.html LICENSE |
102 |
sed -i -e "/^LICENSE\>/d" -e "/^README\.html\>/d" MANIFEST |
103 |
|
104 |
insinto "${MY_HTDOCSDIR}" |
105 |
doins -r . |
106 |
|
107 |
webapp_postinst_txt en "${FILESDIR}/postinstall-en2.txt" |
108 |
webapp_src_install |
109 |
} |
110 |
|
111 |
pkg_postinst() { |
112 |
elog "You are strongly encouraged to back up your database" |
113 |
elog "and the g2data directory, as upgrading to 2.2 will make" |
114 |
elog "irreversible changes to both." |
115 |
elog |
116 |
elog "g2data dir: cp -Rf /path/to/g2data/ /path/to/backup" |
117 |
elog "mysql: mysqldump --opt -u username -h hostname -p database > /path/to/backup.sql" |
118 |
elog "postgres: pg_dump -h hostname --format=t database > /path/to/backup.sql" |
119 |
webapp_pkg_postinst |
120 |
} |