Date: Monday, March 18, 2013 @ 12:54:41 Author: spupykin Revision: 86492
archrelease: copy trunk to community-any Added: moinmoin/repos/community-any/PKGBUILD (from rev 86491, moinmoin/trunk/PKGBUILD) moinmoin/repos/community-any/moinmoin.install (from rev 86491, moinmoin/trunk/moinmoin.install) Deleted: moinmoin/repos/community-any/PKGBUILD moinmoin/repos/community-any/moinmoin.install ------------------+ PKGBUILD | 64 ++++++++++++++++++++++++++++------------------------- moinmoin.install | 64 ++++++++++++++++++++++++++--------------------------- 2 files changed, 66 insertions(+), 62 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2013-03-18 11:54:29 UTC (rev 86491) +++ PKGBUILD 2013-03-18 11:54:41 UTC (rev 86492) @@ -1,30 +0,0 @@ -# $Id$ -# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> -# Contributor: Samuel Mathieson <smathie...@gmail.com> - -pkgname=moinmoin -_xpkgname=moin -pkgver=1.9.6 -pkgrel=1 -pkgdesc="A python wiki clone" -arch=(any) -url="http://moinmo.in/" -license=('GPL') -depends=('python2') -conflicts=('moin') -install=moinmoin.install -source=(http://static.moinmo.in/files/moin-$pkgver.tar.gz) -md5sums=('c61459df71986a74f14af5e00114fa1b') - -build() { - cd $srcdir/${_xpkgname}-$pkgver - - # python2 fix - for file in $(find . -name '*.py' -print) wiki/server/*; do - sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file - sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file - done - - python2 setup.py build - python2 setup.py install --root=$pkgdir --record=INSTALLED_FILES -} Copied: moinmoin/repos/community-any/PKGBUILD (from rev 86491, moinmoin/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2013-03-18 11:54:41 UTC (rev 86492) @@ -0,0 +1,34 @@ +# $Id$ +# Maintainer: Sergej Pupykin <pupykin.s+a...@gmail.com> +# Contributor: Samuel Mathieson <smathie...@gmail.com> + +pkgname=moinmoin +_xpkgname=moin +pkgver=1.9.7 +pkgrel=1 +pkgdesc="A python wiki clone" +arch=(any) +url="http://moinmo.in/" +license=('GPL') +depends=('python2') +conflicts=('moin') +install=moinmoin.install +source=(http://static.moinmo.in/files/moin-$pkgver.tar.gz) +md5sums=('cc2b00f6a27717c097d27da34e8d3249') + +build() { + cd $srcdir/${_xpkgname}-$pkgver + + # python2 fix + for file in $(find . -name '*.py' -print) wiki/server/*; do + sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file + sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file + done + + python2 setup.py build +} + +package() { + cd $srcdir/${_xpkgname}-$pkgver + python2 setup.py install --root=$pkgdir --record=INSTALLED_FILES +} Deleted: moinmoin.install =================================================================== --- moinmoin.install 2013-03-18 11:54:29 UTC (rev 86491) +++ moinmoin.install 2013-03-18 11:54:41 UTC (rev 86492) @@ -1,32 +0,0 @@ -post_install() { - echo " -Remember to add these lines to your apache configuration: -/etc/httpd/conf/httpd.conf - -Alias /wiki/ \"/usr/share/moin/htdocs/\" -<Directory /usr/share/moin/htdocs/> - Order deny,allow - Allow from all -</Directory> -<Location /mywiki> - SetHandler python-program - PythonPath \"['/home/httpd/html/mywiki'] + sys.path\" - PythonHandler MoinMoin.request::RequestModPy.run - PythonOption Location /mywiki -</Location> - - ---- - -Then copy wikiconfig.py into /home/httpd/html/wiki/wikiconfig.py and -change the following: - -data_dir = '/usr/share/moin/data' -data_underlay_dir = '/usr/share/moin/underlay' - -Don't forget to give write access to these dirs. - -Restart apache and enjoy at the following: -httpd://localhost/mywiki/ -" -} Copied: moinmoin/repos/community-any/moinmoin.install (from rev 86491, moinmoin/trunk/moinmoin.install) =================================================================== --- moinmoin.install (rev 0) +++ moinmoin.install 2013-03-18 11:54:41 UTC (rev 86492) @@ -0,0 +1,32 @@ +post_install() { + echo " +Remember to add these lines to your apache configuration: +/etc/httpd/conf/httpd.conf + +Alias /wiki/ \"/usr/share/moin/htdocs/\" +<Directory /usr/share/moin/htdocs/> + Order deny,allow + Allow from all +</Directory> +<Location /mywiki> + SetHandler python-program + PythonPath \"['/home/httpd/html/mywiki'] + sys.path\" + PythonHandler MoinMoin.request::RequestModPy.run + PythonOption Location /mywiki +</Location> + + +--- + +Then copy wikiconfig.py into /home/httpd/html/wiki/wikiconfig.py and +change the following: + +data_dir = '/usr/share/moin/data' +data_underlay_dir = '/usr/share/moin/underlay' + +Don't forget to give write access to these dirs. + +Restart apache and enjoy at the following: +httpd://localhost/mywiki/ +" +}