diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index 561b70e384..a7e1967958 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -177,10 +177,15 @@ func_defined() { PATH= command -V "$1" > /dev/null 2>&1 } +func_defined pre_fetch || pre_fetch() { + : +} func_defined post_fetch || post_fetch() { : } fetch() { + pre_fetch + if [ "$auth_type" = "sig" ] && [ ! -z "${auth_import_key}" ]; then # import gpg key if not existing locally # The default keyserver keys.openpgp.org prints "new key but contains no user ID - skipped" diff --git a/Ports/README.md b/Ports/README.md index 2b21d1b286..8b3e2106c4 100644 --- a/Ports/README.md +++ b/Ports/README.md @@ -261,6 +261,7 @@ build() { The following can be overridden, the names should be self-explanatory as they mostly match the [available options](#options): +- `pre_fetch` - `post_fetch` - `pre_configure` - `configure`.