#! perl # mandatory # This file is licensed under the GNU Affero General Public License, see # the accompanying file COPYING.Affero for details. # # This file is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, version 3 of the License only. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # The authors can be reached via e-mail to # The intent of this file is to provide the user of the server with # a URL where he/she can download the source code of this program # together with any maps and archetype data used to run the server. # The default uses the location of the pristine release and works # unless you modify the server, in which case you are required to # either update the URL here or, preferably, change the source_url_tar # and source_url_cvs settings in $CONFDIR/config. our $URL_TAR = $cf::CFG{source_url_tar} || "http://dist.schmorp.de/crossfire/"; our $URL_TAR_SERVER = "$URL_TAR/cfserver-" . cf::VERSION . ".tar.bz2"; our $URL_TAR_ARCH = "$URL_TAR/cfarch-" . cf::VERSION . ".tar.bz2"; our $URL_TAR_MAPS = "$URL_TAR/cfmaps-" . cf::VERSION . ".tar.bz2"; our $URL_CVS = $cf::CFG{source_url_cvs} || "http://software.schmorp.de/pkg/cf.schmorp.de.html"; cf::register_command sourcecode => sub { my ($ob, $arg) = @_; $ob->reply (undef, <