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

Contents of /net-www/ids/ids-0.83_beta2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.20