[Pkg-mediawiki-devel] mediawiki1.5-geshi: first try of packaging mw extention

Sandro Tosi matrixhasu at gmail.com
Mon Jun 19 22:05:13 UTC 2006

Hi all,
as discussed in this previous thread
I've tried to package GeSHi & GeSHiHighlight for mediawiki.

First of all, here are some links to download packages:


This is just a source package, since debian/rules is still to be
forged (someone would suggest something...?)

I've configured it to be compatible with mw1.5 (extentions & config

Something to note:

* debian/control: I've placed 2 Homepage entries, une for GeSHi and
the other for GeSHiHighlight, dont know if it's correct;

* debian/preinst: check if /etc/mediawiki1.5/extentions.php exists, if
not, creates a dummy php file, with <?php \n ?>

* debian/postinst: here is where I check if include_once('<ext>'); is
in config files; if not, I'll replace ?> with include_once('<ext>');\n
?> (so to have every include_once one per line)

* debian/postrm: it removes introduced include_once('<ext>'); from

* I've moved geshi/div.php to geshi/div-lang.php otherwise, all div
tags are messed up (since are intended to be formatted for DIV
languages), but generates:
dpkg-source: warning: ignoring deletion of file geshi/div.php
#debian-mentors was no helpful, but I'll try to ask them again in the future...

I'd like to have some comments/suggestions about this package...

Thanks & Regards,

Sandro Tosi (aka Morpheus, matrixhasu)
My (little) site: http://matrixhasu.altervista.org/

More information about the Pkg-mediawiki-devel mailing list