summaryrefslogtreecommitdiff
path: root/mdbp/build_schema.json
diff options
context:
space:
mode:
Diffstat (limited to 'mdbp/build_schema.json')
-rw-r--r--mdbp/build_schema.json29
1 files changed, 29 insertions, 0 deletions
diff --git a/mdbp/build_schema.json b/mdbp/build_schema.json
index e083654..be90d7b 100644
--- a/mdbp/build_schema.json
+++ b/mdbp/build_schema.json
@@ -139,6 +139,35 @@
"enum": [ "enable", "disable", "try-disable", "try-enable" ],
"description": "Decide whether the build should be able to access the internet. Without this property, the backend picks its own default. A try-prefixed value does not cause a failure when the request cannot be fulfilled."
},
+ "hooks": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "required": [ "type", "command" ],
+ "additionalProperties": false,
+ "properties": {
+ "type": {
+ "enum": [ "prebuild", "postbuildsuccess", "postbuildfailure" ],
+ "description": "Specifies when the hook is run. prebuild means before running dpkg-buildpackage and postbuild means after."
+ },
+ "command": {
+ "type": "string",
+ "description": "this script is executed using /bin/sh"
+ },
+ "user": {
+ "enum": [ "root", "builder" ],
+ "default": "root",
+ "description": "whether to run the hook as root or as the user performing the build"
+ },
+ "cwd": {
+ "enum": [ "root", "sourcetree" ],
+ "default": "root",
+ "description": "whether to run the hook in the root directory or inside the unpacked source tree"
+ }
+ }
+ },
+ "description": "customization hooks for influencing the build using shell scripts"
+ },
"output": {
"type": "object",
"required": [ "directory" ],