/[gentoo-x86]/www-apps/twiki/twiki-4.0.1-r1.ebuild
Gentoo

Contents of /www-apps/twiki/twiki-4.0.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Mar 27 17:56:24 2006 UTC (7 years, 1 month ago) by rl03
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Patch for CVE-2006-1387 ( bug #127758 ).
(Portage version: 2.1_pre6-r3)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-apps/twiki/twiki-4.0.1-r1.ebuild,v 1.1 2006/03/25 16:01:43 rl03 Exp $
4
5 inherit webapp eutils versionator
6
7 MY_PN="TWiki"
8
9 DESCRIPTION="A Web Based Collaboration Platform"
10 HOMEPAGE="http://twiki.org/"
11 SRC_URI="http://twiki.org/p/pub/Codev/Release/${MY_PN}-${PV}.tgz"
12
13 LICENSE="GPL-2"
14 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
15 IUSE="apache2"
16
17 S=${WORKDIR}
18
19 RDEPEND=">=dev-lang/perl-5.8
20 >=app-text/rcs-5.7
21 sys-apps/diffutils
22 dev-perl/Algorithm-Diff
23 virtual/perl-CGI
24 perl-core/File-Spec
25 dev-perl/Text-Diff
26 perl-core/Time-Local
27 dev-perl/CGI-Session
28 perl-core/digest-base
29 dev-perl/Digest-SHA1
30 dev-perl/locale-maketext-lexicon
31 virtual/perl-libnet
32 dev-perl/URI
33 virtual/cron
34 apache2? ( >=net-www/apache-2.0.54 )
35 !apache2? ( =net-www/apache-1* )"
36
37 src_unpack() {
38 unpack ${A}
39 cd ${S}
40 epatch ${FILESDIR}/CVE-2006-1386.patch
41
42 mv ${S}/bin/LocalLib.cfg.txt ${S}/bin/LocalLib.cfg
43 mv ${S}/lib/LocalSite.cfg.txt ${S}/lib/LocalSite.cfg
44 # change web user to apache
45 cd ${S}/lib/TWiki
46 find . -name '*,v' -exec sed -i 's|nobody:|apache:|g' '{}' ';'
47 }
48
49 src_install() {
50 webapp_src_preinst
51
52 cp -r . ${D}/${MY_HTDOCSDIR}
53
54 dodoc readme.txt
55 dohtml T*.html
56
57 for file in $(find data pub) lib/LocalSite.cfg; do
58 webapp_serverowned "${MY_HTDOCSDIR}/${file}"
59 done
60
61 for a in bin/setlib.cfg bin/LocalLib.cfg lib/TWiki.cfg lib/LocalSite.cfg; do
62 webapp_configfile ${MY_HTDOCSDIR}/${a}
63 done
64 webapp_hook_script ${FILESDIR}/reconfig
65 webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
66 webapp_postupgrade_txt en ${FILESDIR}/postupgrade-en.txt
67
68 webapp_src_install
69 }
70
71 pkg_postinst() {
72 ewarn
73 ewarn "If you are upgrading from an older version of TWiki, back up your"
74 ewarn "data/ and pub/ directories and any local changes before upgrading!"
75 ewarn
76 ewarn "You are _strongly_ encouraged to to read the upgrade guide:"
77 ewarn "http://twiki.org/cgi-bin/view/TWiki/TWikiDocumentation"
78 ewarn
79 einfo "webapp-config will not be run automatically"
80 einfo
81 # webapp_pkg_postinst
82 }

  ViewVC Help
Powered by ViewVC 1.1.13