summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2009-01-26 11:18:25 +0000
committerTony Vroon <chainsaw@gentoo.org>2009-01-26 11:18:25 +0000
commit098424ccbe48bec2874504834943e13dbe7ffcab (patch)
tree5a5800adf3b56a8c753d0a379430d82cdb3170f8 /www-apps/moinmoin/moinmoin-1.8.1.ebuild
parentVersion bump (diff)
downloadgentoo-2-098424ccbe48bec2874504834943e13dbe7ffcab.tar.gz
gentoo-2-098424ccbe48bec2874504834943e13dbe7ffcab.tar.bz2
gentoo-2-098424ccbe48bec2874504834943e13dbe7ffcab.zip
Version bump for security bug #256128.
(Portage version: 2.1.6.7/cvs/Linux x86_64)
Diffstat (limited to 'www-apps/moinmoin/moinmoin-1.8.1.ebuild')
-rw-r--r--www-apps/moinmoin/moinmoin-1.8.1.ebuild75
1 files changed, 75 insertions, 0 deletions
diff --git a/www-apps/moinmoin/moinmoin-1.8.1.ebuild b/www-apps/moinmoin/moinmoin-1.8.1.ebuild
new file mode 100644
index 000000000000..28786c4de73e
--- /dev/null
+++ b/www-apps/moinmoin/moinmoin-1.8.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/moinmoin/moinmoin-1.8.1.ebuild,v 1.1 2009/01/26 11:18:25 chainsaw Exp $
+
+MY_PN="moin"
+PYTHON_MODNAME="MoinMoin"
+
+inherit webapp distutils
+
+WEBAPP_MANUAL_SLOT="yes"
+
+DESCRIPTION="Python WikiClone"
+SRC_URI="http://static.moinmo.in/files/${MY_PN}-${PV}.tar.gz"
+HOMEPAGE="http://moinmo.in/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="rss"
+
+DEPEND=">=dev-lang/python-2.3"
+RDEPEND="${DEPEND}
+ >=dev-python/docutils-0.4
+ rss? ( >=dev-python/pyxml-0.8.4 )"
+
+need_httpd_cgi
+
+S="${WORKDIR}"/${MY_PN}-${PV}
+
+src_install() {
+ webapp_src_preinst
+ distutils_src_install
+
+ dodoc README docs/CHANGES* docs/README.migration
+ dohtml docs/INSTALL.html
+ rm -rf README docs/
+
+ cd "${D}"/usr/share/moin
+
+ insinto "${MY_HTDOCSDIR}"
+ doins -r htdocs/* server/moin.cgi
+ fperms +x "${MY_HTDOCSDIR}/moin.cgi"
+
+ insinto "${MY_HOSTROOTDIR}"/${PF}
+ doins -r data underlay config/wikiconfig.py
+
+ insinto "${MY_HOSTROOTDIR}"/${PF}/altconfigs
+ doins -r config
+
+ insinto "${MY_HOSTROOTDIR}"/${PF}/altserver
+ doins -r server
+
+ # data needs to be serverowned per moin devs
+ cd "${D}/${MY_HOSTROOTDIR}"/${PF}
+ for file in $(find data underlay); do
+ webapp_serverowned "${MY_HOSTROOTDIR}/${PF}/${file}"
+ done
+
+ webapp_configfile "${MY_HOSTROOTDIR}"/${PF}/wikiconfig.py
+ webapp_hook_script "${FILESDIR}"/reconfig-3
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+
+ webapp_src_install
+}
+
+pkg_postinst() {
+ ewarn
+ ewarn "If you are upgrading from 1.3.x, please read"
+ ewarn "README.migration in /usr/share/doc/${PF}"
+ ewarn "and http://moinmoin.wikiwikiweb.de/HelpOnUpdating"
+ ewarn
+
+ distutils_pkg_postinst
+ webapp_pkg_postinst
+}