summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www-apps/pyblosxom/ChangeLog11
-rw-r--r--www-apps/pyblosxom/Manifest7
-rw-r--r--www-apps/pyblosxom/files/config-hook.sh13
-rw-r--r--www-apps/pyblosxom/files/digest-pyblosxom-1.2.11
-rw-r--r--www-apps/pyblosxom/files/gentoo-webapp.patch22
-rw-r--r--www-apps/pyblosxom/files/postinstall-en.txt12
-rw-r--r--www-apps/pyblosxom/metadata.xml9
-rw-r--r--www-apps/pyblosxom/pyblosxom-1.2.1.ebuild45
8 files changed, 120 insertions, 0 deletions
diff --git a/www-apps/pyblosxom/ChangeLog b/www-apps/pyblosxom/ChangeLog
new file mode 100644
index 000000000000..c7601bbd517e
--- /dev/null
+++ b/www-apps/pyblosxom/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for www-apps/pyblosxom
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/pyblosxom/ChangeLog,v 1.1 2006/01/10 21:50:24 wrobel Exp $
+
+*pyblosxom-1.2.1 (10 Jan 2006)
+
+ 10 Jan 2006; <wrobel@gentoo.org> +files/config-hook.sh,
+ +files/gentoo-webapp.patch, +files/postinstall-en.txt,
+ +pyblosxom-1.2.1.ebuild:
+ Added pyblosxom-1.2.1 from the webapps overlay to the portage tree
+
diff --git a/www-apps/pyblosxom/Manifest b/www-apps/pyblosxom/Manifest
new file mode 100644
index 000000000000..2423ebfa6c88
--- /dev/null
+++ b/www-apps/pyblosxom/Manifest
@@ -0,0 +1,7 @@
+MD5 6cd015fd1e1a83e56dad4022152aa2f1 ChangeLog 453
+MD5 0835a464fdaa7a605c63376bb18a2b24 files/config-hook.sh 468
+MD5 072ef383d4b7bba7b7f5d2207c00267c files/digest-pyblosxom-1.2.1 66
+MD5 549472aeb8561d15d9795008c05e2b81 files/gentoo-webapp.patch 1096
+MD5 1b151b39edadce257e08dac6407dd8fd files/postinstall-en.txt 326
+MD5 c339473e0ff43da76eb2f2607c441921 metadata.xml 280
+MD5 4dfb3fab8b4317c8f67a2f0cf9c54880 pyblosxom-1.2.1.ebuild 1016
diff --git a/www-apps/pyblosxom/files/config-hook.sh b/www-apps/pyblosxom/files/config-hook.sh
new file mode 100644
index 000000000000..963713c107b9
--- /dev/null
+++ b/www-apps/pyblosxom/files/config-hook.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+case "$1" in
+ install)
+ chown ${VHOST_SERVER_UID} ${MY_INSTALLDIR}/log
+ sed -i -e "s#/path/to/blog#${MY_INSTALLDIR}/data/#" ${VHOST_CGIBINDIR}/pyblosxom/config.py || exit
+ sed -i -e "s#/path/to/logdir#${MY_INSTALLDIR}/log/#" ${VHOST_CGIBINDIR}/pyblosxom/config.py || exit
+ sed -i -e "s#^\#\(.*\)/path/to/my/plugins#\1/usr/share/pyblosxom-1.2.1/plugins/#" ${VHOST_CGIBINDIR}/pyblosxom/config.py || exit
+ ;;
+ *)
+ # Nothing to do for clean up
+ ;;
+esac
diff --git a/www-apps/pyblosxom/files/digest-pyblosxom-1.2.1 b/www-apps/pyblosxom/files/digest-pyblosxom-1.2.1
new file mode 100644
index 000000000000..ad0a45771f1c
--- /dev/null
+++ b/www-apps/pyblosxom/files/digest-pyblosxom-1.2.1
@@ -0,0 +1 @@
+MD5 c59e2cb44a9e72ba5e46e265ed23f0ad pyblosxom-1.2.1.tar.gz 46580
diff --git a/www-apps/pyblosxom/files/gentoo-webapp.patch b/www-apps/pyblosxom/files/gentoo-webapp.patch
new file mode 100644
index 000000000000..6630fb56848b
--- /dev/null
+++ b/www-apps/pyblosxom/files/gentoo-webapp.patch
@@ -0,0 +1,22 @@
+diff -Naur pyblosxom-1.2.1.orig/setup.py pyblosxom-1.2.1/setup.py
+--- pyblosxom-1.2.1.orig/setup.py 2005-07-31 13:06:25.000000000 +0200
++++ pyblosxom-1.2.1/setup.py 2005-07-31 13:06:46.000000000 +0200
+@@ -64,12 +64,13 @@
+
+ # we want to move the web script files as well, so we sneak them
+ # in here.
++# These are handled by the webapp class in Gentoo
++# os.path.normpath("web/pyblosxom.cgi"),
++# os.path.normpath("web/config.py")
+ pydf.append( [os.path.join('share', PVER, 'web'),
+- [os.path.normpath("web/pyblosxom.cgi"),
+- os.path.normpath("web/pyblosxom.tac"),
++ [os.path.normpath("web/pyblosxom.tac"),
+ os.path.normpath("web/pyblosxom_wsgi.cgi"),
+- os.path.normpath("web/wsgi_app.py"),
+- os.path.normpath("web/config.py")]])
++ os.path.normpath("web/wsgi_app.py")]])
+
+ else:
+ # we don't know what platform they have, so we print out
+diff -Naur pyblosxom-1.2.1.orig/web/config.py pyblosxom-1.2.1/web/config.py
diff --git a/www-apps/pyblosxom/files/postinstall-en.txt b/www-apps/pyblosxom/files/postinstall-en.txt
new file mode 100644
index 000000000000..cd7af6e0dfcf
--- /dev/null
+++ b/www-apps/pyblosxom/files/postinstall-en.txt
@@ -0,0 +1,12 @@
+PyBlosxom setup:
+
+1. Customize the config file
+ ${VHOST_CGIBINDIR}/pyblosxom/config.py
+
+2. Add any pyblosxom plugins you would like to use to the
+ /usr/share/${P}/plugins directory.
+
+3. Add blog entries as normal text files to
+ ${MY_INSTALLDIR}/data
+
+-- Go to http://${VHOST_HOSTNAME}/cgi-bin/pyblosxom/pyblosxom.cgi
diff --git a/www-apps/pyblosxom/metadata.xml b/www-apps/pyblosxom/metadata.xml
new file mode 100644
index 000000000000..13bc126c7d91
--- /dev/null
+++ b/www-apps/pyblosxom/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>web-apps</herd>
+<maintainer>
+<email>web-apps@gentoo.org</email>
+<name>Gentoo Web Application Packages Maintainers</name>
+</maintainer>
+</pkgmetadata>
diff --git a/www-apps/pyblosxom/pyblosxom-1.2.1.ebuild b/www-apps/pyblosxom/pyblosxom-1.2.1.ebuild
new file mode 100644
index 000000000000..21fc252a70af
--- /dev/null
+++ b/www-apps/pyblosxom/pyblosxom-1.2.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/pyblosxom/pyblosxom-1.2.1.ebuild,v 1.1 2006/01/10 21:50:24 wrobel Exp $
+
+inherit eutils distutils webapp
+
+DESCRIPTION="PyBlosxom is a lightweight weblog system."
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+HOMEPAGE="http://pyblosxom.sourceforge.net/"
+
+LICENSE="MIT"
+KEYWORDS="~x86"
+
+IUSE=""
+
+DEPEND="virtual/python"
+
+src_unpack() {
+
+ unpack ${A} && cd "${S}"
+
+ epatch ${FILESDIR}/gentoo-webapp.patch
+
+}
+
+src_install() {
+ webapp_src_preinst
+
+ distutils_src_install
+ dodoc README
+
+ keepdir /usr/share/${P}/plugins
+ keepdir ${MY_HTDOCSDIR}/data
+ keepdir ${MY_HTDOCSDIR}/log
+
+ mkdir -p ${D}${MY_CGIBINDIR}/pyblosxom
+ cp web/{config.py,pyblosxom.cgi} ${D}${MY_CGIBINDIR}/pyblosxom/
+
+ webapp_configfile ${MY_CGIBINDIR}/pyblosxom/config.py
+
+ webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
+ webapp_hook_script ${FILESDIR}/config-hook.sh
+
+ webapp_src_install
+}