1 |
#! perl # mandatory |
2 |
|
3 |
# This file is licensed under the GNU Affero General Public License, see |
4 |
# the accompanying file COPYING.Affero for details. |
5 |
# |
6 |
# The intent of this file is to provide the user of the server with |
7 |
# a URL where he/she can download the source code of this program |
8 |
# together with any maps and archetype data used to run the server. |
9 |
|
10 |
# the default uses the location of the pristine sources and works |
11 |
# unless you modify the server, in which case you are required to |
12 |
# either update the URL here or, preferably, change the source_url_tar |
13 |
# and source_url_cvs settings in $CONFDIR/config. |
14 |
our $URL_TAR = "http://dist.schmorp.de/crossfire/"; |
15 |
our $URL_TAR_SERVER = "$URL_TAR/cfserver-" . cf::VERSION . ".tar.bz2"; |
16 |
our $URL_TAR_ARCH = "$URL_TAR/cfarch-" . cf::VERSION . ".tar.bz2"; |
17 |
our $URL_TAR_MAPS = "$URL_TAR/cfmaps-" . cf::VERSION . ".tar.bz2"; |
18 |
our $URL_CVS_INFO = "http://software.schmorp.de/pkg/cf.schmorp.de.html"; |
19 |
our $URL_CVS_HTTP = "http://cvs.schmorp.de/cf.schmorp.de/"; |
20 |
|
21 |
cf::register_command sourcecode => sub { |
22 |
my ($ob, $arg) = @_; |
23 |
|
24 |
$ob->reply (undef, <<EOF, cf::NDI_UNIQUE | cf::NDI_DK_ORANGE); |
25 |
If this is a (possibly modified) release version of Crossfire TRT, you can find |
26 |
the corresponding sources at the following location, in accordance to section |
27 |
13 of the GNU Affero General Public License. |
28 |
|
29 |
all files: $URL_TAR |
30 |
server: $URL_TAR_SERVER |
31 |
arch data: $URL_TAR_ARCH |
32 |
maps: $URL_TAR_MAPS |
33 |
|
34 |
|
35 |
If this is an intermediate development snapshot, the sources might |
36 |
alternatively be provided via both anonymous CVS as well as via HTTP, with |
37 |
full version history: |
38 |
|
39 |
instructions: $URL_CVS_INFO |
40 |
http-browsable: $URL_CVS_HTTP |
41 |
|
42 |
EOF |
43 |
|
44 |
1 |
45 |
}; |
46 |
|