config.py 5.59 KB
Newer Older
1 2
#!/usr/bin/env python2

3 4
# Copy this file to config.py, then amend the settings below according to
# your system configuration.
Ciaran Gultnieks's avatar
Ciaran Gultnieks committed
5

Daniel Martí's avatar
Daniel Martí committed
6
# Override the path to the Android SDK, $ANDROID_HOME by default
Daniel Martí's avatar
Daniel Martí committed
7
# sdk_path = "/path/to/android-sdk"
8

Daniel Martí's avatar
Daniel Martí committed
9
# Override the path to the Android NDK, $ANDROID_NDK by default
Daniel Martí's avatar
Daniel Martí committed
10
# ndk_path = "/path/to/android-ndk"
11
# Build tools version to be used
Daniel Martí's avatar
Daniel Martí committed
12
build_tools = "19.0.2"
13

Daniel Martí's avatar
Daniel Martí committed
14
# Command for running Ant
Daniel Martí's avatar
Daniel Martí committed
15
# ant = "/path/to/ant"
Daniel Martí's avatar
Daniel Martí committed
16
ant = "ant"
17

Daniel Martí's avatar
Daniel Martí committed
18
# Command for running maven 3
Daniel Martí's avatar
Daniel Martí committed
19
# mvn3 = "/path/to/mvn"
Daniel Martí's avatar
Daniel Martí committed
20 21 22
mvn3 = "mvn"

# Command for running Gradle
Daniel Martí's avatar
Daniel Martí committed
23
# gradle = "/path/to/gradle"
24 25
gradle = "gradle"

26 27 28 29 30 31 32
# Set the maximum age (in days) of an index that a client should accept from
# this repo. Setting it to 0 or not setting it at all disables this
# functionality. If you do set this to a non-zero value, you need to ensure
# that your index is updated much more frequently than the specified interval.
# The same policy is applied to the archive repo, if there is one.
repo_maxage = 0

33 34
repo_url = "https://f-droid.org/repo"
repo_name = "F-Droid"
Ciaran Gultnieks's avatar
Ciaran Gultnieks committed
35 36
repo_icon = "fdroid-icon.png"
repo_description = """
37
The official repository of the F-Droid client. Applications in this repository
38 39 40
are either official binaries built by the original application developers, or
are binaries built from source by the admin of f-droid.org using the tools on
https://gitorious.org/f-droid.
Ciaran Gultnieks's avatar
Ciaran Gultnieks committed
41 42
"""

43 44 45 46 47 48 49 50 51 52 53 54 55 56
# As above, but for the archive repo.
# archive_older sets the number of versions kept in the main repo, with all
# older ones going to the archive. Set it to 0, and there will be no archive
# repository, and no need to define the other archive_ values.
archive_older = 3
archive_url = "https://f-droid.org/archive"
archive_name = "F-Droid Archive"
archive_icon = "fdroid-icon.png"
archive_description = """
The archive repository of the F-Droid client. This contains older versions
of applications from the main repository.
"""


57
# The ID of a GPG key for making detached signatures for apks. Optional.
Daniel Martí's avatar
Daniel Martí committed
58
# gpgkey = '1DBA2E89'
59

60 61 62
# The key (from the keystore defined below) to be used for signing the
# repository itself.  This is the same name you would give to keytool or
# jarsigner using -alias.  (Not needed in an unsigned repository).
Daniel Martí's avatar
Daniel Martí committed
63
# repo_keyalias = "fdroidrepo"
64

65 66 67 68 69 70
# The keystore to use for release keys when building. This needs to be
# somewhere safe and secure, and backed up!  The best way to manage these
# sensitive keys is to use a "smartcard" (aka Hardware Security Module). To
# configure FDroid to use a smartcard, set the keystore file using the keyword
# "NONE" (i.e. keystore = "NONE").  That makes Java find the keystore on the
# smartcard based on 'smartcardoptions' below.
Daniel Martí's avatar
Daniel Martí committed
71
# keystore = "~/.local/share/fdroidserver/keystore.jks"
72 73 74

# You should not need to change these at all, unless you have a very
# customized setup for using smartcards in Java with keytool/jarsigner
Daniel Martí's avatar
Daniel Martí committed
75
# smartcardoptions = "-storetype PKCS11 -providerName SunPKCS11-OpenSC \
76 77
#    -providerClass sun.security.pkcs11.SunPKCS11 \
#    -providerArg opensc-fdroid.cfg"
78

79 80 81 82
# The password for the keystore (at least 6 characters).  If this password is
# different than the keypass below, it can be OK to store the password in this
# file for real use.  But in general, sensitive passwords should not be stored
# in text files!
Daniel Martí's avatar
Daniel Martí committed
83
# keystorepass = "password1"
84 85 86 87

# The password for keys - the same is used for each auto-generated key as well
# as for the repository key.  You should not normally store this password in a
# file since it is a sensitive password.
Daniel Martí's avatar
Daniel Martí committed
88
# keypass = "password2"
89

Daniel Martí's avatar
Daniel Martí committed
90
# The distinguished name used for all keys.
91
keydname = "CN=Birdman, OU=Cell, O=Alcatraz, L=Alcatraz, S=California, C=US"
92

Daniel Martí's avatar
Daniel Martí committed
93 94
# Use this to override the auto-generated key aliases with specific ones
# for particular applications. Normally, just leave it empty.
95 96
keyaliases = {}
keyaliases['com.example.app'] = 'example'
Daniel Martí's avatar
Daniel Martí committed
97 98
# You can also force an app to use the same key alias as another one, using
# the @ prefix.
99
keyaliases['com.example.another.plugin'] = '@com.example.another'
100

101 102 103 104 105
# The full path to the root of the repository.  It must be specified in
# rsync/ssh format for a remote host/path. This is used for syncing a locally
# generated repo to the server that is it hosted on.  It must end in the
# standard public repo name of "/fdroid", but can be in up to three levels of
# sub-directories (i.e. /var/www/packagerepos/fdroid).
Daniel Martí's avatar
Daniel Martí committed
106
# serverwebroot = '[email protected]:/var/www/fdroid'
107

108 109 110 111 112
# To upload the repo to an Amazon S3 bucket using `fdroid server update`.
# Warning, this deletes and recreates the whole fdroid/ directory each
# time. This is based on apache-libcloud, which supports basically all cloud
# storage services, so it should be easy to port the fdroid server tools to
# any of them.
Daniel Martí's avatar
Daniel Martí committed
113 114 115
# awsbucket = 'myawsfdroid'
# awsaccesskeyid = 'SEE0CHAITHEIMAUR2USA'
# awssecretkey = 'yourverysecretkeywordpassphraserighthere'
116

117
# If you want to force 'fdroid server' to use a non-standard serverwebroot
Daniel Martí's avatar
Daniel Martí committed
118
# nonstandardwebroot = False
119

Daniel Martí's avatar
Daniel Martí committed
120
# Wiki details
Ciaran Gultnieks's avatar
Ciaran Gultnieks committed
121
wiki_protocol = "http"
Ciaran Gultnieks's avatar
Ciaran Gultnieks committed
122 123 124 125 126
wiki_server = "server"
wiki_path = "/wiki/"
wiki_user = "login"
wiki_password = "1234"

Daniel Martí's avatar
Daniel Martí committed
127 128 129
# Only set this to true when running a repository where you want to generate
# stats, and only then on the master build servers, not a development
# machine.
130 131
update_stats = False

Daniel Martí's avatar
Daniel Martí committed
132
# Use the following to push stats to a Carbon instance:
133 134 135 136
stats_to_carbon = False
carbon_host = '0.0.0.0'
carbon_port = 2003

Daniel Martí's avatar
Daniel Martí committed
137 138
# Set this to true to always use a build server. This saves specifying the
# --server option on dedicated secure build server hosts.
139
build_server_always = False
140 141 142

# Limit in number of characters that fields can take up
# Only the fields listed here are supported, defaults shown
143
char_limits = {
144 145
    'Summary': 50,
    'Description': 1500
146
}