# HG changeset patch # User Markus Bröker # Date 1229179328 -3600 # Node ID a0fad312ea3034623bd53e91848d667aa22e3584 # Parent f68808ae40b975bfbec9efa4547992dcc8e0ce87 Build dependencies improved * check for gettext (msgfmt) * check for libgdbm-dev Webserver integration: * /usr/lib/cgi-bin/mcbot.cgi added committer: Markus Bröker diff --git a/debian/changelog b/debian/changelog --- 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 Thu, 14 Aug 2008 16:00:01 +0200 + -- Markus Broeker Sun, 24 Aug 2008 11:17:01 +0200 diff --git a/scripts/mcbot.cgi b/scripts/mcbot.cgi --- 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 - $b
"; - } else { - print "$a - $b
"; - } - } + if ( $b && !($a =~ /mcbot/)) { + if($b =~ /^http/ ) { + print "$a - $b
"; + } else { + print "$a - $b
"; + } + } } print "\n
$a\n"; diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- 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)