annotate www-apps/gallery/gallery-3.0.1.ebuild @ 282:b4c93c3d782b

the current Maven versions are in portage
author Dirk Olmes <dirk@xanthippe.ping.de>
date Fri, 01 Apr 2011 18:16:56 +0200
parents 8ddc2d47fc7d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
255
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 # Copyright 1999-2010 Gentoo Foundation
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 # $Header $
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 EAPI="2"
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 inherit webapp eutils depend.php
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 DESCRIPTION="Web based (PHP Script) photo album viewer/creator"
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10 HOMEPAGE="http://gallery.menalto.com/"
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11 SRC_URI="mirror://sourceforge/gallery/${P}.zip"
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 LICENSE="GPL-2"
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 KEYWORDS="~x86 ~amd64"
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 IUSE=""
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17 # Build depend is on unzip
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18 DEPEND="app-arch/unzip"
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20 RDEPEND="
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 >=dev-db/mysql-5
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 >=dev-lang/php-5.2.3
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 >=www-servers/apache-2
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 "
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 My_PN="${PN}3"
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 S=${WORKDIR}/${My_PN}
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29 need_httpd_cgi
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 need_php_httpd
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33 src_install() {
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 webapp_src_preinst
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36 INSTALL_DIR="/${My_PN}"
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38 cp -R * ${D}/${MY_HTDOCSDIR}
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 keepdir ${MY_HTDOCSDIR}/var
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41 webapp_serverowned ${MY_HTDOCSDIR}/var
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43 ewarn "ATTANTION!"
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 ewarn "gallery3 requires short_open_tag to be On"
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45 ewarn "You need to edit \"/etc/php/apache2-php5.?/php.ini\""
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46 ewarn "and change short_open_tag to \"On\" and "
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47 ewarn "re-start apache (/etc/init.d/apache2 restart)"
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 webapp_src_install
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50 }
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52 pkg_postinst() {
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53 elog
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54 elog "To start \"gallery3\" just browse to "
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55 elog
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56 elog "http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/gallery3"
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57 elog
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58 elog "and follow the simple instructions."
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
59 elog
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
60 ewarn "MAKE SURE TO CHANGE YOUR ADMIN PASSWORD!"
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
61 elog
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
62 elog
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
63 elog "Please read the file http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/README"
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
64 elog "for additional information."
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
65 elog "For example, how to upgrade from gallery2 to gallery3."
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
66 elog
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
67 elog "For additional information refer to ${HOMEPAGE}, please."
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
68 elog
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
69
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
70 webapp_pkg_postinst
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
71 }
8ddc2d47fc7d add the latest gallery ebuild from bugs.gentoo.org
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
72