diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /www-apps/pyblosxom | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'www-apps/pyblosxom')
-rw-r--r-- | www-apps/pyblosxom/Manifest | 1 | ||||
-rw-r--r-- | www-apps/pyblosxom/files/config-hook.sh | 13 | ||||
-rw-r--r-- | www-apps/pyblosxom/files/postinstall-en.txt | 12 | ||||
-rw-r--r-- | www-apps/pyblosxom/files/postupgrade-en.txt | 10 | ||||
-rw-r--r-- | www-apps/pyblosxom/files/pyblosxom-1.4.2-gentoo.patch | 13 | ||||
-rw-r--r-- | www-apps/pyblosxom/metadata.xml | 8 | ||||
-rw-r--r-- | www-apps/pyblosxom/pyblosxom-1.4.3.ebuild | 65 |
7 files changed, 122 insertions, 0 deletions
diff --git a/www-apps/pyblosxom/Manifest b/www-apps/pyblosxom/Manifest new file mode 100644 index 000000000000..c1d05c8624e1 --- /dev/null +++ b/www-apps/pyblosxom/Manifest @@ -0,0 +1 @@ +DIST pyblosxom-1.4.3.tar.gz 110908 SHA256 35af992168c773099c92a2572ce64b0ad765aa578af495845e92a346602fa8fd 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/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/files/postupgrade-en.txt b/www-apps/pyblosxom/files/postupgrade-en.txt new file mode 100644 index 000000000000..139d707561df --- /dev/null +++ b/www-apps/pyblosxom/files/postupgrade-en.txt @@ -0,0 +1,10 @@ +pyblosxom-1.3 changes nearly nothing in the config file. + +The only new variable you need to set is 'blog_rights'. It should +contain your name and will be added to the atom feed. + +Anyway you only need to run etc-update on you config file as +suggested by webapp-config. Update the configuration following +standard procedures and you should be all set. + +Enjoy pyblosxom! diff --git a/www-apps/pyblosxom/files/pyblosxom-1.4.2-gentoo.patch b/www-apps/pyblosxom/files/pyblosxom-1.4.2-gentoo.patch new file mode 100644 index 000000000000..cc7d59f8a021 --- /dev/null +++ b/www-apps/pyblosxom/files/pyblosxom-1.4.2-gentoo.patch @@ -0,0 +1,13 @@ +--- setup.py.orig 2007-12-18 11:13:36.439046250 +0100 ++++ setup.py 2007-12-18 11:14:05.216844750 +0100 +@@ -73,9 +73,7 @@ + # we want to move the web script files as well, so we sneak them + # in here. + pydf.append( [os.path.join('share', PVER, 'web'), +- [os.path.normpath("web/pyblosxom.cgi"), +- os.path.normpath("web/pyblosxom.tac"), +- os.path.normpath("web/config.py")]]) ++ [os.path.normpath("web/pyblosxom.tac")]]) + + else: + # we don't know what platform they have, so we print out diff --git a/www-apps/pyblosxom/metadata.xml b/www-apps/pyblosxom/metadata.xml new file mode 100644 index 000000000000..11cefb5a384c --- /dev/null +++ b/www-apps/pyblosxom/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>web-apps</herd> + <upstream> + <remote-id type="sourceforge">pyblosxom</remote-id> + </upstream> +</pkgmetadata> diff --git a/www-apps/pyblosxom/pyblosxom-1.4.3.ebuild b/www-apps/pyblosxom/pyblosxom-1.4.3.ebuild new file mode 100644 index 000000000000..524311ead17d --- /dev/null +++ b/www-apps/pyblosxom/pyblosxom-1.4.3.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="3" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.* *-jython" + +inherit distutils eutils webapp + +DESCRIPTION="PyBlosxom is a lightweight weblog system" +HOMEPAGE="http://pyblosxom.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64 ~arm ~x86" + +# This installs python library files. +SLOT=0 +WEBAPP_MANUAL_SLOT=yes + +IUSE="" + +DEPEND="" +RDEPEND="" + +PYTHON_MODNAME="Pyblosxom" + +pkg_setup() { + python_pkg_setup + webapp_pkg_setup +} + +src_prepare() { + distutils_src_prepare + epatch "${FILESDIR}/${PN}-1.4.2-gentoo.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_postupgrade_txt en "${FILESDIR}"/postupgrade-en.txt + webapp_hook_script "${FILESDIR}"/config-hook.sh + + webapp_src_install +} + +pkg_postinst() { + distutils_pkg_postinst + webapp_pkg_postinst +} |