/[gentoo-x86]/www-apps/phpwiki/phpwiki-1.3.13_rc1.ebuild
Gentoo

Contents of /www-apps/phpwiki/phpwiki-1.3.13_rc1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (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.2: +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.13_rc1.ebuild,v 1.2 2007/07/29 17:33:28 phreak Exp $
4
5 inherit webapp depend.php
6
7 MY_P=${P/_r/r}
8 S=${WORKDIR}/${PN}-${PV/_rc*/}
9
10 DESCRIPTION="PhpWiki is a WikiWikiWeb clone in PHP"
11 HOMEPAGE="http://phpwiki.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
13
14 LICENSE="GPL-2"
15 KEYWORDS="~ppc ~sparc ~x86"
16 IUSE=""
17
18 RDEPEND="virtual/php
19 www-servers/apache"
20
21 src_unpack() {
22 require_php_with_use pcre
23
24 unpack ${A}
25 cd ${S}
26 rm -f Makefile LICENSE
27 }
28
29 src_install() {
30 webapp_src_preinst
31
32 cp -pPR * ${D}/${MY_HTDOCSDIR}
33 rm -rf ${D}/${MY_HTDOCSDIR}/{doc,schemas,README,INSTALL,TODO,UPGRADING}
34
35 # Fix for security issue (Gentoo bug #174451 and http://secunia.com/advisories/24888/)
36 rm -rf ${D}/${MY_HTDOCSDIR}/lib/plugin/UpLoad.php
37
38 dodoc README INSTALL TODO UPGRADING doc/* schemas/*
39
40 # Create config file from distribution default, and fix up invalid defaults
41 cd ${D}/${MY_HTDOCSDIR}/config
42 sed "s:;DEBUG = 1:DEBUG = 0:" config-dist.ini > config.ini
43
44 webapp_postinst_txt en ${FILESDIR}/postinstall-1.3-en.txt
45 webapp_configfile ${MY_HTDOCSDIR}/config/config.ini
46
47 webapp_src_install
48 }

  ViewVC Help
Powered by ViewVC 1.1.20