Browse Source

add isDistro and homepage fields

master
Chris Mahoney 5 months ago
parent
commit
5a4e28aaff
  1. 13
      src/mirrors.json
  2. 26
      src/mirrors.schema.json

13
src/mirrors.json

@ -3,6 +3,7 @@
"mirrors": [
{
"name": "Alpine Linux",
"isDistro": true,
"rsync": {
"host": "rsync.alpinelinux.org",
"src": "alpine",
@ -11,10 +12,12 @@
"sync_file": "last-updated",
"syncs_per_day": 2
},
"official": true
"official": false,
"homepage": "https://www.alpinelinux.org/"
},
{
"name": "Blender",
"isDistro": false,
"rsync": {
"host": "downloads.blender.org",
"src": "blender",
@ -22,15 +25,17 @@
"options": "-avzrH --exclude \".~tmp~\" --bwlimit=50000",
"syncs_per_day": 6
},
"official": true
"official": true,
"homepage": " https://www.blender.org"
},
{
"name": "MS-DOS",
"isDistro": false,
"static": {
"homepage": "https://github.com/Microsoft/MS-DOS",
"location": "/storage/msdos"
},
"official": false
"official": false,
"homepage": "https://github.com/Microsoft/MS-DOS"
}
]
}

26
src/mirrors.schema.json

@ -3,7 +3,7 @@
"type": "object",
"properties": {
"mirrors": {
"description": "List of all mirrors",
"description": "List of mirrored linux distributions",
"type": "array",
"items": {
"type": "object",
@ -15,7 +15,7 @@
"type": "string"
},
"rsync": {
"description": "Upstream location to rsync from",
"description": "Instructions for how to run rsync",
"type": "object",
"properties": {
"options": {
@ -65,10 +65,6 @@
"description": "Host a repository that never changes",
"type": "object",
"properties": {
"homepage": {
"type": "string",
"description": "Remote location to learn more about a project"
},
"location": {
"type": "string",
"description": "Location on disk to serve files from"
@ -78,10 +74,21 @@
"official": {
"description": "Are we an official mirror for this software",
"type": "boolean"
},
"isDistro": {
"description": "True for 'distribution' False for 'software'",
"type": "boolean"
},
"homepage": {
"description": "URL to the homepage for the mirrored project",
"type": "string"
}
},
"required": [
"official"
"name",
"official",
"isDistro",
"homepage"
],
"oneOf":[
{
@ -93,8 +100,5 @@
]
}
}
},
"required": [
"mirrors"
]
}
}