/[gentoo-x86]/www-apps/phpwiki/phpwiki-1.3.10-r3.ebuild
Gentoo

Contents of /www-apps/phpwiki/phpwiki-1.3.10-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Aug 30 14:25:50 2007 UTC (12 years, 11 months ago) by wrobel
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Removed older phpwiki ebuilds affected by security bugs #174451 and #181692.
(Portage version: 2.1.2.12)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-apps/phpwiki/phpwiki-1.3.10-r3.ebuild,v 1.4 2007/07/29 17:33:28 phreak Exp $
4
5 inherit eutils webapp
6
7 DESCRIPTION="PhpWiki is a WikiWikiWeb clone in PHP"
8 HOMEPAGE="http://phpwiki.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz http://dev.gentoo.org/~stuart/patches/${PN}-xmlrpc.tar.gz"
10
11 LICENSE="GPL-2"
12 KEYWORDS="ppc ~sparc ~x86"
13 IUSE=""
14
15 RDEPEND="virtual/php
16 www-servers/apache"
17
18 src_unpack() {
19 unpack ${A}
20 cd ${S}
21 epatch ${FILESDIR}/phpwiki-1.3.10-xmlrpc.patch
22 rm -f Makefile LICENSE
23
24 # patch for XMLRPC vulnerabilities
25 cp -f ${WORKDIR}/phpwiki-xmlrpc/* lib/XMLRPC/
26 }
27
28 src_install() {
29 webapp_src_preinst
30
31 cp -pPR * ${D}/${MY_HTDOCSDIR}
32 rm -rf ${D}/${MY_HTDOCSDIR}/{doc,schemas,README,INSTALL,UPGRADING}
33
34 # Fix for security issue (Gentoo bug #174451 and http://secunia.com/advisories/24888/)
35 rm -rf ${D}/${MY_HTDOCSDIR}/lib/plugin/UpLoad.php
36
37 dodoc README INSTALL UPGRADING doc/* schemas/*
38
39 # Create config file from distribution default, and fix up invalid defaults
40 cd ${D}/${MY_HTDOCSDIR}/config
41 sed "s:;DEBUG = 1:DEBUG = 0:" config-dist.ini > config.ini
42
43 webapp_postinst_txt en ${FILESDIR}/postinstall-1.3-en.txt
44 webapp_configfile ${MY_HTDOCSDIR}/config/config.ini
45
46 webapp_src_install
47 }

  ViewVC Help
Powered by ViewVC 1.1.20