forked from ports/contrib
24 lines
840 B
Plaintext
24 lines
840 B
Plaintext
# Description: Simple, but fast and widely used WikiWiki clone written in Perl
|
|
# URL: http://www.usemod.com/cgi-bin/wiki.pl
|
|
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
|
|
# Depends on: perl, apache
|
|
|
|
name=usemod
|
|
version=1.0
|
|
release=2
|
|
source=(http://www.usemod.com/wikicode/$name${version/./}.tar.gz)
|
|
|
|
build () {
|
|
cd $name${version/./}
|
|
install -d $PKG/var/www/{cgi-bin,$name/pub}
|
|
install -d -o nobody $PKG/var/www/$name
|
|
chmod 0700 $PKG/var/www/$name
|
|
install -m 755 wiki.pl $PKG/var/www/cgi-bin
|
|
install -g nobody -m 640 config $PKG/var/www/$name
|
|
cp wiki.{gif,css} $PKG/var/www/$name/pub
|
|
sed -i '/^\$LogoUrl/s|\"[^;]*\"|\"/pub/wiki.gif\"|' \
|
|
$PKG/var/www/$name/config
|
|
sed -i '/^\$DataDir/s|\"[^;]*\"|\"/var/www/usemod\"|' \
|
|
$PKG/var/www/cgi-bin/wiki.pl
|
|
}
|