/[gentoo-x86]/net-www/ids/ids-0.82.ebuild
Gentoo

Contents of /net-www/ids/ids-0.82.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Aug 15 15:04:38 2004 UTC (15 years, 2 months ago) by stuart
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Moving to www-apps/ids

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-www/ids/ids-0.82.ebuild,v 1.5 2004/06/25 00:55:44 agriffis Exp $
4
5 inherit webapp-apache
6
7 DESCRIPTION="Web based (PHP Script) photo album viewer/creator"
8 HOMEPAGE="http://ids.sf.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10 RESTRICT="nomirror"
11 LICENSE="GPL-2"
12 SLOT="0"
13 IUSE=""
14 KEYWORDS="~x86"
15 RDEPEND=">=net-www/apache-1.3.27
16 dev-perl/Archive-Zip
17 >=dev-php/mod_php-4.1.3
18 dev-perl/ImageInfo
19 >=media-gfx/imagemagick-5.4.9.1-r1"
20
21 S=${WORKDIR}/${P}
22
23 pkg_setup() {
24 webapp-detect || NO_WEBSERVER=1
25 webapp-pkg_setup "${NO_WEBSERVER}"
26 einfo "Installing into ${ROOT}${HTTPD_ROOT}."
27 }
28
29 src_install() {
30 webapp-detect || NO_WEBSERVER=1
31 webapp-mkdirs
32
33 local DocumentRoot=${HTTPD_ROOT}
34 local destdir=${DocumentRoot}/${PN}
35 dodir ${destdir}
36 #Do not remove docs as it will not work without
37 dodoc CREDITS ChangeLog PATCH.SUBMISSION README
38
39 cp -r . ${D}/${HTTPD_ROOT}/${PN}
40 cd ${D}/${HTTPD_ROOT}
41 chown -R ${HTTPD_USER}:${HTTPD_GROUP} ${PN}
42 # Fix permissions
43 find ${D}${destdir} -type d | xargs chmod 755
44 find ${D}${destdir} -type f | xargs chmod 644
45
46 }
47
48 pkg_postinst() {
49 einfo "to make this working you have to enable"
50 einfo "cgi in ${HTTPD_ROOT}/${PN}"
51 einfo
52 einfo "this could be done by a simple"
53 einfo " cd ${HTTPD_ROOT}/${PN}"
54 einfo " echo \"Options ExecCGI\" > .htaccess"
55 }

  ViewVC Help
Powered by ViewVC 1.1.20