chiark / gitweb /
Add ndk r11c
[fdroidserver.git] / examples / config.py
1 #!/usr/bin/env python3
2
3 # Copy this file to config.py, then amend the settings below according to
4 # your system configuration.
5
6 # Custom path to the Android SDK, defaults to $ANDROID_HOME
7 # sdk_path = "$ANDROID_HOME"
8
9 # Custom paths to various versions of the Android NDK, defaults to 'r12b' set
10 # to $ANDROID_NDK. Most users will have the latest at $ANDROID_NDK, which is
11 # used by default. If a version is missing or assigned to None, it is assumed
12 # not installed.
13 # ndk_paths = {
14 #     'r9b': None,
15 #     'r10e': None,
16 #     'r11c': None,
17 #     'r12b': "$ANDROID_NDK",
18 # }
19
20 # java_paths = {
21 #     '1.8': "/usr/lib/jvm/java-8-openjdk",
22 # }
23
24 # Build tools version to be used
25 # build_tools = "24.0.1"
26
27 # Force all build to use the above version of build -tools, good for testing
28 # builds without having all of the possible build-tools installed.
29 # force_build_tools = True
30
31 # Command or path to binary for running Ant
32 # ant = "ant"
33
34 # Command or path to binary for running maven 3
35 # mvn3 = "mvn"
36
37 # Command or path to binary for running Gradle
38 # gradle = "gradle"
39
40 # Set the maximum age (in days) of an index that a client should accept from
41 # this repo. Setting it to 0 or not setting it at all disables this
42 # functionality. If you do set this to a non-zero value, you need to ensure
43 # that your index is updated much more frequently than the specified interval.
44 # The same policy is applied to the archive repo, if there is one.
45 # repo_maxage = 0
46
47 repo_url = "https://MyFirstFDroidRepo.org/fdroid/repo"
48 repo_name = "My First F-Droid Repo Demo"
49 repo_icon = "fdroid-icon.png"
50 repo_description = """
51 This is a repository of apps to be used with F-Droid. Applications in this
52 repository are either official binaries built by the original application
53 developers, or are binaries built from source by the admin of f-droid.org
54 using the tools on https://gitlab.com/u/fdroid.
55 """
56
57 # As above, but for the archive repo.
58 # archive_older sets the number of versions kept in the main repo, with all
59 # older ones going to the archive. Set it to 0, and there will be no archive
60 # repository, and no need to define the other archive_ values.
61 archive_older = 3
62 archive_url = "https://f-droid.org/archive"
63 archive_name = "My First F-Droid Archive Demo"
64 archive_icon = "fdroid-icon.png"
65 archive_description = """
66 The repository of older versions of applications from the main demo repository.
67 """
68
69 # Normally, all apps are collected into a single app repository, like on
70 # https://f-droid.org. For certain situations, it is better to make a repo
71 # that is made up of APKs only from a single app. For example, an automated
72 # build server that publishes nightly builds.
73 # per_app_repos = True
74
75 # `fdroid update` will create a link to the current version of a given app.
76 # This provides a static path to the current APK. To disable the creation of
77 # this link, uncomment this:
78 # make_current_version_link = False
79
80 # By default, the "current version" link will be based on the "Name" of the
81 # app from the metadata. You can change it to use a different field from the
82 # metadata here:
83 # current_version_name_source = 'id'
84
85 # Optionally, override home directory for gpg
86 # gpghome = /home/fdroid/somewhere/else/.gnupg
87
88 # The ID of a GPG key for making detached signatures for apks. Optional.
89 # gpgkey = '1DBA2E89'
90
91 # The key (from the keystore defined below) to be used for signing the
92 # repository itself. This is the same name you would give to keytool or
93 # jarsigner using -alias. (Not needed in an unsigned repository).
94 # repo_keyalias = "fdroidrepo"
95
96 # Optionally, the public key for the key defined by repo_keyalias above can
97 # be specified here. There is no need to do this, as the public key can and
98 # will be retrieved from the keystore when needed. However, specifying it
99 # manually can allow some processing to take place without access to the
100 # keystore.
101 # repo_pubkey = "..."
102
103 # The keystore to use for release keys when building. This needs to be
104 # somewhere safe and secure, and backed up!  The best way to manage these
105 # sensitive keys is to use a "smartcard" (aka Hardware Security Module). To
106 # configure F-Droid to use a smartcard, set the keystore file using the keyword
107 # "NONE" (i.e. keystore = "NONE"). That makes Java find the keystore on the
108 # smartcard based on 'smartcardoptions' below.
109 # keystore = "~/.local/share/fdroidserver/keystore.jks"
110
111 # You should not need to change these at all, unless you have a very
112 # customized setup for using smartcards in Java with keytool/jarsigner
113 # smartcardoptions = "-storetype PKCS11 -providerName SunPKCS11-OpenSC \
114 #    -providerClass sun.security.pkcs11.SunPKCS11 \
115 #    -providerArg opensc-fdroid.cfg"
116
117 # The password for the keystore (at least 6 characters). If this password is
118 # different than the keypass below, it can be OK to store the password in this
119 # file for real use. But in general, sensitive passwords should not be stored
120 # in text files!
121 # keystorepass = "password1"
122
123 # The password for keys - the same is used for each auto-generated key as well
124 # as for the repository key. You should not normally store this password in a
125 # file since it is a sensitive password.
126 # keypass = "password2"
127
128 # The distinguished name used for all keys.
129 # keydname = "CN=Birdman, OU=Cell, O=Alcatraz, L=Alcatraz, S=California, C=US"
130
131 # Use this to override the auto-generated key aliases with specific ones
132 # for particular applications. Normally, just leave it empty.
133 # keyaliases = {}
134 # keyaliases['com.example.app'] = 'example'
135 # You can also force an app to use the same key alias as another one, using
136 # the @ prefix.
137 # keyaliases['com.example.another.plugin'] = '@com.example.another'
138
139
140 # The full path to the root of the repository. It must be specified in
141 # rsync/ssh format for a remote host/path. This is used for syncing a locally
142 # generated repo to the server that is it hosted on. It must end in the
143 # standard public repo name of "/fdroid", but can be in up to three levels of
144 # sub-directories (i.e. /var/www/packagerepos/fdroid). You can include
145 # multiple servers to sync to by wrapping the whole thing in {} or [], and
146 # including the serverwebroot strings in a comma-separated list.
147 #
148 # serverwebroot = 'user@example:/var/www/fdroid'
149 # serverwebroot = {
150 #     'foo.com:/usr/share/nginx/www/fdroid',
151 #     'bar.info:/var/www/fdroid',
152 #     }
153
154 # Any mirrors of this repo, for example all of the servers declared in
155 # serverwebroot, will automatically be used by the client.  If one
156 # mirror is not working, then the client will try another.  If the
157 # client has Tor enabled, then the client will prefer mirrors with
158 # .onion addresses. This base URL will be used for both the main repo
159 # and the archive, if it is enabled.  So these URLs should end in the
160 # 'fdroid' base of the F-Droid part of the web server like serverwebroot.
161 #
162 # mirrors = {
163 #     'https://foo.bar/fdroid',
164 #     'http://foobarfoobarfoobar.onion/fdroid',
165 # }
166
167 # optionally specific which identity file to use when using rsync over SSH
168 #
169 # identity_file = '~/.ssh/fdroid_id_rsa'
170
171
172 # If you are running the repo signing process on a completely offline machine,
173 # which provides the best security, then you can specify a folder to sync the
174 # repo to when running `fdroid server update`. This is most likely going to
175 # be a USB thumb drive, SD Card, or some other kind of removable media. Make
176 # sure it is mounted before running `fdroid server update`. Using the
177 # standard folder called 'fdroid' as the specified folder is recommended, like
178 # with serverwebroot.
179 #
180 # local_copy_dir = '/media/MyUSBThumbDrive/fdroid'
181
182
183 # If you are using local_copy_dir on an offline build/signing server, once the
184 # thumb drive has been plugged into the online machine, it will need to be
185 # synced to the copy on the online machine. To make that happen
186 # automatically, set sync_from_local_copy_dir to True:
187 #
188 # sync_from_local_copy_dir = True
189
190
191 # To upload the repo to an Amazon S3 bucket using `fdroid server update`.
192 # Warning, this deletes and recreates the whole fdroid/ directory each
193 # time. This is based on apache-libcloud, which supports basically all cloud
194 # storage services, so it should be easy to port the fdroid server tools to
195 # any of them.
196 #
197 # awsbucket = 'myawsfdroid'
198 # awsaccesskeyid = 'SEE0CHAITHEIMAUR2USA'
199 # awssecretkey = 'yourverysecretkeywordpassphraserighthere'
200
201
202 # If you want to force 'fdroid server' to use a non-standard serverwebroot
203 #
204 # nonstandardwebroot = False
205
206
207 # The build logs can be posted to a mediawiki instance, like on f-droid.org.
208 # wiki_protocol = "http"
209 # wiki_server = "server"
210 # wiki_path = "/wiki/"
211 # wiki_user = "login"
212 # wiki_password = "1234"
213
214 # Only set this to true when running a repository where you want to generate
215 # stats, and only then on the master build servers, not a development
216 # machine.
217 # update_stats = True
218
219 # When used with stats, this is a list of IP addresses that are ignored for
220 # calculation purposes.
221 # stats_ignore = []
222
223 # Server stats logs are retrieved from. Required when update_stats is True.
224 # stats_server = "example.com"
225
226 # User stats logs are retrieved from. Required when update_stats is True.
227 # stats_user = "bob"
228
229 # Use the following to push stats to a Carbon instance:
230 # stats_to_carbon = False
231 # carbon_host = '0.0.0.0'
232 # carbon_port = 2003
233
234 # Set this to true to always use a build server. This saves specifying the
235 # --server option on dedicated secure build server hosts.
236 # build_server_always = True
237
238 # By default, fdroid will use YAML .yml and the custom .txt metadata formats. It
239 # is also possible to have metadata in JSON and XML by adding 'json' and
240 # 'xml'.
241 # accepted_formats = ['txt', 'yml']
242
243 # Limit in number of characters that fields can take up
244 # Only the fields listed here are supported, defaults shown
245 # char_limits = {
246 #     'Summary': 80,
247 #     'Description': 4000,
248 # }