All pastes #100233 Raw Edit

Unnamed

public text v1 · immutable
#100233 ·published 2006-07-25 23:02 UTC
rendered paste body
PKGBUILD:
#Contributor: Samuel Mathieson <smathieson@gmail.com>
pkgname=moin
pkgver=1.5.4
pkgrel=1
pkgdesc="A python wiki clone"
url="http://moinmoin.wikiwikiweb.de/"
license=""
depends=('python' 'apache' 'mod_python')
install=prepare.install
source=("http://umn.dl.sourceforge.net/sourceforge/moin/$pkgname-$pkgver.tar.gz" prepare.install)
md5sums=('dcb85c72126c2fe39de66ef781a7dd39' '70f55ea6288a8e9d631ea2fd9f24b866')

build() {
  cd $startdir/src/$pkgname-$pkgver
  python setup.py --quiet install --prefix=$startdir/pkg/usr
}


----------
prepare.install
post_install() {
  mkdir /home/httpd/html/wiki
  cp /usr/share/moin/server/moin.cgi /home/httpd/html/wiki/moin.cgi
  cp /usr/share/moin/config/wikiconfig.py /home/httpd/html/wiki/wikiconfig.py
  chmod -R 777 /usr/share/moin/data
  chmod -R 777 /usr/share/moin/underlay
  echo "
Remember to add these two lines to your apache configuration:
/etc/httpd/conf/httpd.conf

Alias /wiki/ \"/usr/share/moin/htdocs/\"
ScriptAlias /mywiki \"/home/httpd/html/wiki/moin.cgi\"

---

Then in your /home/httpd/html/wiki/wikiconfig.py change the following:
data_dir = '/usr/share/moin/data'
data_underlay_dir = '/usr/share/moin/underlay'


Restart apache and enjoy at the following:
httpd://localhost/mywiki/
"
  /bin/true
}

op=$1
shift
$op $*