Build dependencies improved
* check for gettext (msgfmt)
* check for libgdbm-dev
Webserver integration:
* /usr/lib/cgi-bin/mcbot.cgi added
committer: Markus Bröker <mbroeker@largo.homelinux.org>
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-mcbot (0.96-0) unstable; urgency=low
+mcbot (0.96-1) unstable; urgency=low
* Initial Release
* the location of mcbot.cgi is stored in the db
@@ -23,5 +23,7 @@
* bot responses reduced, irc code 486 added
* more irc codes added
* build timestamp added
+ * mcbot.cgi installation defaults to /usr/lib/cgi-bin
+ * Build Dependency Check improved.
- -- Markus Broeker <mbroeker@largo.homelinux.org> Thu, 14 Aug 2008 16:00:01 +0200
+ -- Markus Broeker <mbroeker@largo.homelinux.org> Sun, 24 Aug 2008 11:17:01 +0200
--- a/scripts/mcbot.cgi
+++ b/scripts/mcbot.cgi
@@ -17,13 +17,13 @@
$b =~ s/^[\t ]+//; # skip blanks
$b =~ s/[\n]+//; # for html source :)
- if ($b) {
- if($b =~ /^http/ ) {
- print "$a - <a href=\"$b\">$b</a><br>";
- } else {
- print "$a - $b<br>";
- }
- }
+ if ( $b && !($a =~ /mcbot/)) {
+ if($b =~ /^http/ ) {
+ print "$a - <a href=\"$b\">$b</a><br>";
+ } else {
+ print "$a - $b<br>";
+ }
+ }
}
print "\n<br>$a\n";
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -25,7 +25,9 @@
INSTALL(DIRECTORY ../locale/ DESTINATION /var/lib/nobody/data/locale)
INSTALL(PROGRAMS ../scripts/runbot DESTINATION /etc/init.d/
RENAME mcbot)
+INSTALL(PROGRAMS ../scripts/mcbot.cgi DESTINATION /usr/lib/cgi-bin/)
+# Search required programs
FIND_PROGRAM(MSGFMT_PROG msgfmt)
IF (MSGFMT_PROG)
EXEC_PROGRAM(${MSGFMT_PROG} ../locale ARGS -o de/LC_MESSAGES/mcbot.mo de/mcbot.po)