@cbnventures/nova 0.38.0 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/package.json +1 -1
- package/build/scaffold-versions.json +10 -9
- package/build/src/api/app-store-connect.d.ts +17 -2
- package/build/src/api/app-store-connect.d.ts.map +1 -1
- package/build/src/api/app-store-connect.js +654 -171
- package/build/src/api/app-store-connect.js.map +1 -1
- package/build/src/api/docker-hub.d.ts +14 -0
- package/build/src/api/docker-hub.d.ts.map +1 -0
- package/build/src/api/docker-hub.js +275 -0
- package/build/src/api/docker-hub.js.map +1 -0
- package/build/src/api/github-runner-images.d.ts +13 -0
- package/build/src/api/github-runner-images.d.ts.map +1 -0
- package/build/src/api/github-runner-images.js +238 -0
- package/build/src/api/github-runner-images.js.map +1 -0
- package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts +2 -2
- package/build/src/cli/generate/github/workflows-blueprint-validate.d.ts.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint-validate.js +260 -50
- package/build/src/cli/generate/github/workflows-blueprint-validate.js.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint.d.ts +6 -4
- package/build/src/cli/generate/github/workflows-blueprint.d.ts.map +1 -1
- package/build/src/cli/generate/github/workflows-blueprint.js +632 -74
- package/build/src/cli/generate/github/workflows-blueprint.js.map +1 -1
- package/build/src/cli/generate/must-haves/agent-conventions.d.ts.map +1 -1
- package/build/src/cli/generate/must-haves/agent-conventions.js +1 -0
- package/build/src/cli/generate/must-haves/agent-conventions.js.map +1 -1
- package/build/src/cli/index.js +41 -1
- package/build/src/cli/index.js.map +1 -1
- package/build/src/cli/integration/app-store-connect.d.ts +10 -0
- package/build/src/cli/integration/app-store-connect.d.ts.map +1 -1
- package/build/src/cli/integration/app-store-connect.js +701 -80
- package/build/src/cli/integration/app-store-connect.js.map +1 -1
- package/build/src/cli/recipe/docker-hub/docker-hub-precheck.d.ts +3 -0
- package/build/src/cli/recipe/docker-hub/docker-hub-precheck.d.ts.map +1 -0
- package/build/src/cli/recipe/docker-hub/docker-hub-precheck.js +72 -0
- package/build/src/cli/recipe/docker-hub/docker-hub-precheck.js.map +1 -0
- package/build/src/cli/recipe/docker-hub/sync-identity.d.ts +5 -0
- package/build/src/cli/recipe/docker-hub/sync-identity.d.ts.map +1 -0
- package/build/src/cli/recipe/docker-hub/sync-identity.js +124 -0
- package/build/src/cli/recipe/docker-hub/sync-identity.js.map +1 -0
- package/build/src/cli/recipe/docker-hub/sync-policies.d.ts +5 -0
- package/build/src/cli/recipe/docker-hub/sync-policies.d.ts.map +1 -0
- package/build/src/cli/recipe/docker-hub/sync-policies.js +63 -0
- package/build/src/cli/recipe/docker-hub/sync-policies.js.map +1 -0
- package/build/src/cli/recipe/index.d.ts.map +1 -1
- package/build/src/cli/recipe/index.js +12 -0
- package/build/src/cli/recipe/index.js.map +1 -1
- package/build/src/cli/recipe/nova-config/normalize-order.js +3 -3
- package/build/src/cli/recipe/nova-config/normalize-order.js.map +1 -1
- package/build/src/cli/scaffold/package/pfsense.d.ts +3 -0
- package/build/src/cli/scaffold/package/pfsense.d.ts.map +1 -1
- package/build/src/cli/scaffold/package/pfsense.js +140 -6
- package/build/src/cli/scaffold/package/pfsense.js.map +1 -1
- package/build/src/cli/scaffold/tool/serverless.d.ts +2 -0
- package/build/src/cli/scaffold/tool/serverless.d.ts.map +1 -1
- package/build/src/cli/scaffold/tool/serverless.js +35 -1
- package/build/src/cli/scaffold/tool/serverless.js.map +1 -1
- package/build/src/cli/utility/changelog.d.ts +7 -0
- package/build/src/cli/utility/changelog.d.ts.map +1 -1
- package/build/src/cli/utility/changelog.js +800 -7
- package/build/src/cli/utility/changelog.js.map +1 -1
- package/build/src/cli/utility/configure.d.ts +4 -1
- package/build/src/cli/utility/configure.d.ts.map +1 -1
- package/build/src/cli/utility/configure.js +396 -24
- package/build/src/cli/utility/configure.js.map +1 -1
- package/build/src/lib/docker-packaging.d.ts +1 -0
- package/build/src/lib/docker-packaging.d.ts.map +1 -1
- package/build/src/lib/docker-packaging.js +39 -2
- package/build/src/lib/docker-packaging.js.map +1 -1
- package/build/src/lib/env-namespace.d.ts.map +1 -1
- package/build/src/lib/env-namespace.js +2 -1
- package/build/src/lib/env-namespace.js.map +1 -1
- package/build/src/lib/item.d.ts +2 -1
- package/build/src/lib/item.d.ts.map +1 -1
- package/build/src/lib/item.js +23 -0
- package/build/src/lib/item.js.map +1 -1
- package/build/src/lib/nova-config-order.d.ts.map +1 -1
- package/build/src/lib/nova-config-order.js +35 -1
- package/build/src/lib/nova-config-order.js.map +1 -1
- package/build/src/lib/nova-config.d.ts +1 -0
- package/build/src/lib/nova-config.d.ts.map +1 -1
- package/build/src/lib/nova-config.js +178 -3
- package/build/src/lib/nova-config.js.map +1 -1
- package/build/src/lib/regex.d.ts +16 -0
- package/build/src/lib/regex.d.ts.map +1 -1
- package/build/src/lib/regex.js +16 -0
- package/build/src/lib/regex.js.map +1 -1
- package/build/src/lib/scaffold.d.ts +3 -3
- package/build/src/lib/scaffold.d.ts.map +1 -1
- package/build/src/lib/scaffold.js +111 -8
- package/build/src/lib/scaffold.js.map +1 -1
- package/build/src/lib/schema.d.ts +34 -0
- package/build/src/lib/schema.d.ts.map +1 -1
- package/build/src/lib/schema.js +31 -0
- package/build/src/lib/schema.js.map +1 -1
- package/build/src/lib/workflow-templates.d.ts +4 -1
- package/build/src/lib/workflow-templates.d.ts.map +1 -1
- package/build/src/lib/workflow-templates.js +46 -16
- package/build/src/lib/workflow-templates.js.map +1 -1
- package/build/src/types/api/app-store-connect.d.ts +476 -33
- package/build/src/types/api/docker-hub.d.ts +237 -0
- package/build/src/types/api/github-runner-images.d.ts +199 -0
- package/build/src/types/cli/generate/github/workflows-blueprint-validate.d.ts +79 -17
- package/build/src/types/cli/generate/github/workflows-blueprint.d.ts +131 -9
- package/build/src/types/cli/index.d.ts +2 -0
- package/build/src/types/cli/integration/app-store-connect.d.ts +470 -6
- package/build/src/types/cli/recipe/docker-hub/docker-hub-precheck.d.ts +78 -0
- package/build/src/types/cli/recipe/docker-hub/sync-identity.d.ts +80 -0
- package/build/src/types/cli/recipe/docker-hub/sync-policies.d.ts +57 -0
- package/build/src/types/cli/recipe/index.d.ts +3 -1
- package/build/src/types/cli/scaffold/package/pfsense.d.ts +83 -0
- package/build/src/types/cli/scaffold/tool/serverless.d.ts +30 -0
- package/build/src/types/cli/utility/changelog.d.ts +327 -1
- package/build/src/types/cli/utility/configure.d.ts +199 -4
- package/build/src/types/lib/docker-packaging.d.ts +25 -1
- package/build/src/types/lib/env-namespace.d.ts +4 -1
- package/build/src/types/lib/item.d.ts +11 -0
- package/build/src/types/lib/nova-config-order.d.ts +34 -1
- package/build/src/types/lib/nova-config.d.ts +100 -0
- package/build/src/types/lib/regex.d.ts +91 -0
- package/build/src/types/lib/scaffold.d.ts +48 -4
- package/build/src/types/lib/workflow-templates.d.ts +26 -0
- package/build/src/types/shared.d.ts +353 -3
- package/build/src/types/tests/api/app-store-connect.test.d.ts +162 -0
- package/build/src/types/tests/api/docker-hub.test.d.ts +84 -0
- package/build/src/types/tests/api/github-runner-images.test.d.ts +113 -0
- package/build/src/types/tests/cli/generate/github/workflows-blueprint-generate.test.d.ts +19 -0
- package/build/src/types/tests/cli/generate/github/workflows-blueprint-parity.test.d.ts +0 -9
- package/build/src/types/tests/cli/generate/github/workflows-blueprint-publish-parity.test.d.ts +108 -25
- package/build/src/types/tests/cli/generate/github/workflows-blueprint-validate.test.d.ts +139 -30
- package/build/src/types/tests/cli/generate/github/workflows-blueprint.test.d.ts +45 -0
- package/build/src/types/tests/cli/generate/github/workflows-version-contract.test.d.ts +2 -2
- package/build/src/types/tests/cli/generate/must-haves/agent-conventions.test.d.ts +2 -0
- package/build/src/types/tests/cli/integration/app-store-connect.test.d.ts +876 -0
- package/build/src/types/tests/cli/recipe/nova-config/normalize-order.test.d.ts +4 -0
- package/build/src/types/tests/cli/scaffold/tool/serverless.test.d.ts +21 -0
- package/build/src/types/tests/cli/utility/changelog-android.test.d.ts +14 -0
- package/build/src/types/tests/cli/utility/changelog-apple.test.d.ts +21 -0
- package/build/src/types/tests/cli/utility/changelog-fold.test.d.ts +350 -0
- package/build/src/types/tests/cli/utility/changelog.test.d.ts +50 -0
- package/build/src/types/tests/cli/utility/configure.test.d.ts +90 -0
- package/build/src/types/tests/lib/nova-config.test.d.ts +29 -1
- package/build/src/types/tests/lib/scaffold.test.d.ts +59 -2
- package/build/src/types/tests/scaffold-output-contract.test.d.ts +136 -0
- package/build/templates/generators/must-haves/agent-conventions/AGENTS.md +1 -0
- package/build/templates/generators/must-haves/agent-conventions/CLAUDE.md +1 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/nova.md +6 -0
- package/build/templates/generators/must-haves/agent-conventions/conventions/pfsense.md +311 -0
- package/build/templates/scaffold/app/android/package.json +1 -1
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-ios-1024.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-128.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-128@2x.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-16.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-16@2x.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-256.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-256@2x.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-32.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-32@2x.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-512.png +0 -0
- package/build/templates/scaffold/app/apple/Sources/Assets.xcassets/AppIcon.appiconset/AppIcon-mac-512@2x.png +0 -0
- package/build/templates/scaffold/app/apple/package.json +1 -1
- package/build/templates/scaffold/app/astro/package.json +1 -1
- package/build/templates/scaffold/app/discord-bot/package.json +1 -1
- package/build/templates/scaffold/app/express/package.json +1 -1
- package/build/templates/scaffold/app/nextjs/package.json +1 -1
- package/build/templates/scaffold/app/vite/package.json +1 -1
- package/build/templates/scaffold/docs/docusaurus/package.json +2 -2
- package/build/templates/scaffold/package/github-action/package.json +1 -1
- package/build/templates/scaffold/package/homebridge/package.json +1 -1
- package/build/templates/scaffold/package/pfsense/package.json +2 -2
- package/build/templates/scaffold/package/pfsense/port/Makefile.template +16 -1
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__]/FileLock.php +93 -0
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__]/PackagePaths.php +40 -0
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__]/UpdateManager.php +1667 -0
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__].inc +161 -13
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__].xml +37 -0
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/sbin/[__WORKSPACE_NAME__] +203 -8
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/share/pfSense-pkg-[__WORKSPACE_IDENTIFIER__]/logo.svg +12 -0
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/share/pfSense-pkg-[__WORKSPACE_IDENTIFIER__]/release-signing.pub +9 -0
- package/build/templates/scaffold/package/pfsense/port/files/usr/local/www/[__WORKSPACE_NAME__]-about.php +437 -0
- package/build/templates/scaffold/package/pfsense/port/pkg-plist +6 -0
- package/build/templates/scaffold/package/pfsense/scripts/build-package.sh +61 -0
- package/build/templates/scaffold/package/pfsense/scripts/check-package.mjs +114 -1
- package/build/templates/scaffold/package/pfsense/scripts/regex.mjs +10 -0
- package/build/templates/scaffold/package/pfsense/scripts/stage-package.mjs +48 -2
- package/build/templates/scaffold/package/pfsense/tests/updates.php +695 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/drawable/ic_launcher_background.xml +1 -1
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
- package/build/templates/scaffold-options/app/android-native/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- package/build/templates/scaffold-options/docker-image/common/Dockerfile +7 -0
- package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/package.json +1 -1
- package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/src/types/worker/index.test.d.ts +40 -2
- package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/src/types/worker/landing-page.d.ts +23 -0
- package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/src/worker/index.test.ts +119 -4
- package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/src/worker/index.ts +25 -3
- package/build/templates/scaffold-options/tool/serverless/cloudflare-workers/src/worker/landing-page.ts +278 -0
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/api/index.test.ts +121 -6
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/api/index.ts +49 -12
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/package.json +3 -1
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/src/function/landing-page.ts +278 -0
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/src/types/api/index.d.ts +17 -2
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/src/types/api/index.test.d.ts +40 -2
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/src/types/function/landing-page.d.ts +23 -0
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/tsconfig.functions.json +3 -1
- package/build/templates/scaffold-options/tool/serverless/vercel-functions/vercel.json +7 -1
- package/package.json +1 -1
- package/build/templates/scaffold/package/pfsense-root/.github/workflows/pfsense-[__WORKSPACE_NAME__].yml +0 -62
package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__].inc
CHANGED
|
@@ -2,9 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
declare(strict_types=1);
|
|
4
4
|
|
|
5
|
+
use PfSense\[__WORKSPACE_IDENTIFIER__]\Runtime\FileLock;
|
|
6
|
+
use PfSense\[__WORKSPACE_IDENTIFIER__]\Runtime\PackagePaths;
|
|
7
|
+
use PfSense\[__WORKSPACE_IDENTIFIER__]\Runtime\UpdateManager;
|
|
8
|
+
|
|
5
9
|
require_once('config.inc');
|
|
10
|
+
require_once('notices.inc');
|
|
6
11
|
require_once('pfsense-utils.inc');
|
|
7
12
|
require_once('services.inc');
|
|
13
|
+
require_once(__DIR__ . '/[__WORKSPACE_NAME__]/FileLock.php');
|
|
14
|
+
require_once(__DIR__ . '/[__WORKSPACE_NAME__]/PackagePaths.php');
|
|
15
|
+
require_once(__DIR__ . '/[__WORKSPACE_NAME__]/UpdateManager.php');
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Returns the package tabs shared by settings and custom pages.
|
|
19
|
+
*
|
|
20
|
+
* @param string $active Active tab: settings or about.
|
|
21
|
+
*
|
|
22
|
+
* @return list<array{0: string, 1: bool, 2: string}> Package tabs.
|
|
23
|
+
*
|
|
24
|
+
* @since UNRELEASED
|
|
25
|
+
*/
|
|
26
|
+
function pfsensePackage[__WORKSPACE_IDENTIFIER__]Tabs(string $active): array
|
|
27
|
+
{
|
|
28
|
+
return [
|
|
29
|
+
[
|
|
30
|
+
gettext('Settings'),
|
|
31
|
+
$active === 'settings',
|
|
32
|
+
'/pkg_edit.php?xml=[__WORKSPACE_NAME__].xml&id=0',
|
|
33
|
+
],
|
|
34
|
+
[
|
|
35
|
+
gettext('About'),
|
|
36
|
+
$active === 'about',
|
|
37
|
+
'/[__WORKSPACE_NAME__]-about.php',
|
|
38
|
+
],
|
|
39
|
+
];
|
|
40
|
+
}
|
|
8
41
|
|
|
9
42
|
/**
|
|
10
43
|
* Returns the saved package settings.
|
|
@@ -21,7 +54,7 @@ function pfsensePackage[__WORKSPACE_IDENTIFIER__]GetSettings(): array
|
|
|
21
54
|
}
|
|
22
55
|
|
|
23
56
|
/**
|
|
24
|
-
* Maps the
|
|
57
|
+
* Maps the starter task frequency to cron fields.
|
|
25
58
|
*
|
|
26
59
|
* @param string $frequency Selected frequency.
|
|
27
60
|
*
|
|
@@ -40,41 +73,142 @@ function pfsensePackage[__WORKSPACE_IDENTIFIER__]GetCronFields(string $frequency
|
|
|
40
73
|
}
|
|
41
74
|
|
|
42
75
|
/**
|
|
43
|
-
*
|
|
76
|
+
* Returns the stable randomized schedule for GitHub release checks.
|
|
77
|
+
*
|
|
78
|
+
* Invalid or missing values are generated once, saved beside the package settings,
|
|
79
|
+
* and reused across frequency changes, reinstalls, and resynchronization.
|
|
80
|
+
*
|
|
81
|
+
* @return array{minute: int, hour: int, weekday: int, monthday: int}
|
|
44
82
|
*
|
|
45
83
|
* @since UNRELEASED
|
|
46
84
|
*/
|
|
47
|
-
function pfsensePackage[__WORKSPACE_IDENTIFIER__]
|
|
85
|
+
function pfsensePackage[__WORKSPACE_IDENTIFIER__]GetUpdateSchedule(): array
|
|
86
|
+
{
|
|
87
|
+
$storedSchedule = config_get_path(PackagePaths::UPDATE_SCHEDULE_PATH, []);
|
|
88
|
+
$storedSchedule = is_array($storedSchedule) ? $storedSchedule : [];
|
|
89
|
+
$schedule = UpdateManager::stableCronSchedule($storedSchedule);
|
|
90
|
+
$normalizedStoredSchedule = [];
|
|
91
|
+
|
|
92
|
+
foreach (array_keys($schedule) as $key) {
|
|
93
|
+
$storedValue = $storedSchedule[$key] ?? null;
|
|
94
|
+
|
|
95
|
+
if (is_int($storedValue) || (is_string($storedValue) && ctype_digit($storedValue))) {
|
|
96
|
+
$normalizedStoredSchedule[$key] = (int) $storedValue;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if ($normalizedStoredSchedule !== $schedule) {
|
|
101
|
+
config_set_path(PackagePaths::UPDATE_SCHEDULE_PATH, $schedule);
|
|
102
|
+
write_config(gettext('Saved the stable package update-check schedule.'));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return $schedule;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Synchronizes the independent GitHub release-check cron job.
|
|
110
|
+
*
|
|
111
|
+
* Existing entries are removed first. Selecting Never leaves manual checks enabled
|
|
112
|
+
* while ensuring no scheduled outbound GitHub request remains.
|
|
113
|
+
*
|
|
114
|
+
* @since UNRELEASED
|
|
115
|
+
*/
|
|
116
|
+
function pfsensePackage[__WORKSPACE_IDENTIFIER__]InstallUpdateCron(): void
|
|
48
117
|
{
|
|
49
|
-
$command =
|
|
118
|
+
$command = PackagePaths::UPDATE_CHECK_COMMAND;
|
|
50
119
|
|
|
51
120
|
install_cron_job($command, false);
|
|
52
121
|
|
|
122
|
+
if (UpdateManager::isAvailable() === false) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
|
|
53
126
|
$settings = pfsensePackage[__WORKSPACE_IDENTIFIER__]GetSettings();
|
|
127
|
+
$frequency = (string) ($settings['update_check_frequency'] ?? '[__PFSENSE_UPDATE_DEFAULT_FREQUENCY__]');
|
|
54
128
|
|
|
55
|
-
if (
|
|
129
|
+
if ($frequency === 'never') {
|
|
56
130
|
return;
|
|
57
131
|
}
|
|
58
132
|
|
|
59
|
-
$
|
|
133
|
+
$fields = UpdateManager::cronFields(
|
|
134
|
+
$frequency,
|
|
135
|
+
pfsensePackage[__WORKSPACE_IDENTIFIER__]GetUpdateSchedule(),
|
|
136
|
+
);
|
|
60
137
|
|
|
61
|
-
if (
|
|
62
|
-
|
|
138
|
+
if ($fields === null) {
|
|
139
|
+
return;
|
|
63
140
|
}
|
|
64
141
|
|
|
65
|
-
[$minute, $hour, $dayOfMonth, $month, $dayOfWeek] =
|
|
142
|
+
[$minute, $hour, $dayOfMonth, $month, $dayOfWeek] = $fields;
|
|
143
|
+
|
|
144
|
+
install_cron_job(
|
|
145
|
+
$command,
|
|
146
|
+
true,
|
|
147
|
+
$minute,
|
|
148
|
+
$hour,
|
|
149
|
+
$dayOfMonth,
|
|
150
|
+
$month,
|
|
151
|
+
$dayOfWeek,
|
|
152
|
+
'root',
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Synchronizes the package cron jobs with the saved WebGUI settings.
|
|
158
|
+
*
|
|
159
|
+
* @since UNRELEASED
|
|
160
|
+
*/
|
|
161
|
+
function pfsensePackage[__WORKSPACE_IDENTIFIER__]Sync(): void
|
|
162
|
+
{
|
|
163
|
+
$command = PackagePaths::COMMAND;
|
|
164
|
+
|
|
165
|
+
install_cron_job($command, false);
|
|
166
|
+
|
|
167
|
+
$settings = pfsensePackage[__WORKSPACE_IDENTIFIER__]GetSettings();
|
|
168
|
+
|
|
169
|
+
if (($settings['enabled'] ?? '') === 'on') {
|
|
170
|
+
$taskFrequency = $settings['task_frequency'] ?? 'hourly';
|
|
171
|
+
|
|
172
|
+
if (is_array($taskFrequency)) {
|
|
173
|
+
$taskFrequency = $taskFrequency[0] ?? 'hourly';
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
[$minute, $hour, $dayOfMonth, $month, $dayOfWeek] = pfsensePackage[__WORKSPACE_IDENTIFIER__]GetCronFields((string) $taskFrequency);
|
|
66
177
|
|
|
67
|
-
|
|
178
|
+
install_cron_job($command, true, $minute, $hour, $dayOfMonth, $month, $dayOfWeek, 'root');
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
pfsensePackage[__WORKSPACE_IDENTIFIER__]InstallUpdateCron();
|
|
68
182
|
}
|
|
69
183
|
|
|
70
184
|
/**
|
|
71
|
-
* Removes
|
|
185
|
+
* Removes package cron jobs, the available-update notice, and the idle lock file.
|
|
186
|
+
*
|
|
187
|
+
* Persistent release state is retained across pfSense's remove-and-reinstall upgrade
|
|
188
|
+
* lifecycle so notice de-duplication and the last successful check survive upgrades.
|
|
72
189
|
*
|
|
73
190
|
* @since UNRELEASED
|
|
74
191
|
*/
|
|
75
192
|
function pfsensePackage[__WORKSPACE_IDENTIFIER__]Remove(): void
|
|
76
193
|
{
|
|
77
|
-
install_cron_job(
|
|
194
|
+
install_cron_job(PackagePaths::COMMAND, false);
|
|
195
|
+
install_cron_job(PackagePaths::UPDATE_CHECK_COMMAND, false);
|
|
196
|
+
|
|
197
|
+
if (function_exists('close_notice')) {
|
|
198
|
+
close_notice(UpdateManager::NOTICE_ID);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
$fileLock = new FileLock(PackagePaths::LOCK_FILE);
|
|
202
|
+
|
|
203
|
+
try {
|
|
204
|
+
if ($fileLock->acquire()) {
|
|
205
|
+
@unlink(PackagePaths::LOCK_FILE);
|
|
206
|
+
}
|
|
207
|
+
} catch (Throwable) {
|
|
208
|
+
// Removal must not fail when an active run or filesystem owns the lock.
|
|
209
|
+
} finally {
|
|
210
|
+
$fileLock->release();
|
|
211
|
+
}
|
|
78
212
|
}
|
|
79
213
|
|
|
80
214
|
/**
|
|
@@ -90,6 +224,20 @@ function pfsensePackage[__WORKSPACE_IDENTIFIER__]Validate(array $post, array &$i
|
|
|
90
224
|
$message = trim((string) ($post['message'] ?? ''));
|
|
91
225
|
|
|
92
226
|
if ($message === '') {
|
|
93
|
-
$inputErrors[] = 'The example log message cannot be empty.';
|
|
227
|
+
$inputErrors[] = gettext('The example log message cannot be empty.');
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
$validUpdateCheckFrequencies = [
|
|
231
|
+
'daily',
|
|
232
|
+
'weekly',
|
|
233
|
+
'monthly',
|
|
234
|
+
'never',
|
|
235
|
+
];
|
|
236
|
+
$updateCheckFrequency = (string) ($post['update_check_frequency'] ?? '[__PFSENSE_UPDATE_DEFAULT_FREQUENCY__]');
|
|
237
|
+
|
|
238
|
+
if (in_array($updateCheckFrequency, $validUpdateCheckFrequencies, true) === false) {
|
|
239
|
+
$inputErrors[] = gettext('Select Daily, Weekly, Monthly, or Never for update checks.');
|
|
240
|
+
} elseif (UpdateManager::isAvailable() === false && $updateCheckFrequency !== 'never') {
|
|
241
|
+
$inputErrors[] = gettext('Update checks are unavailable because the project repository URL is not a github.com repository.');
|
|
94
242
|
}
|
|
95
243
|
}
|
package/build/templates/scaffold/package/pfsense/port/files/usr/local/pkg/[__WORKSPACE_NAME__].xml
CHANGED
|
@@ -21,6 +21,17 @@
|
|
|
21
21
|
<configfile>[__WORKSPACE_NAME__].xml</configfile>
|
|
22
22
|
<url>/pkg_edit.php?xml=[__WORKSPACE_NAME__].xml&id=0</url>
|
|
23
23
|
</menu>
|
|
24
|
+
<tabs>
|
|
25
|
+
<tab>
|
|
26
|
+
<text>Settings</text>
|
|
27
|
+
<url>/pkg_edit.php?xml=[__WORKSPACE_NAME__].xml&id=0</url>
|
|
28
|
+
<active/>
|
|
29
|
+
</tab>
|
|
30
|
+
<tab>
|
|
31
|
+
<text>About</text>
|
|
32
|
+
<url>/[__WORKSPACE_NAME__]-about.php</url>
|
|
33
|
+
</tab>
|
|
34
|
+
</tabs>
|
|
24
35
|
<fields>
|
|
25
36
|
<field>
|
|
26
37
|
<type>listtopic</type>
|
|
@@ -63,6 +74,29 @@
|
|
|
63
74
|
<description>Starter text written to the pfSense system log. Replace this behavior with the package's actual background work.</description>
|
|
64
75
|
<required/>
|
|
65
76
|
</field>
|
|
77
|
+
<field>
|
|
78
|
+
<type>listtopic</type>
|
|
79
|
+
<name>Package Updates</name>
|
|
80
|
+
</field>
|
|
81
|
+
<field>
|
|
82
|
+
<fielddescr>Update Checks</fielddescr>
|
|
83
|
+
<fieldname>update_check_frequency</fieldname>
|
|
84
|
+
<type>select</type>
|
|
85
|
+
<options>
|
|
86
|
+
<option><name>Daily</name><value>daily</value></option>
|
|
87
|
+
<option><name>Weekly</name><value>weekly</value></option>
|
|
88
|
+
<option><name>Monthly</name><value>monthly</value></option>
|
|
89
|
+
<option><name>Never</name><value>never</value></option>
|
|
90
|
+
</options>
|
|
91
|
+
<default_value>[__PFSENSE_UPDATE_DEFAULT_FREQUENCY__]</default_value>
|
|
92
|
+
<description>[__PFSENSE_UPDATE_SETTINGS_DESCRIPTION__]</description>
|
|
93
|
+
</field>
|
|
94
|
+
<field>
|
|
95
|
+
<fielddescr>Remote Notifications</fielddescr>
|
|
96
|
+
<fieldname>update_remote_notifications</fieldname>
|
|
97
|
+
<type>checkbox</type>
|
|
98
|
+
<description>Also send each new-version notice through configured pfSense email, Telegram, Pushover, or other remote notification channels.</description>
|
|
99
|
+
</field>
|
|
66
100
|
</fields>
|
|
67
101
|
<custom_php_install_command>
|
|
68
102
|
pfsensePackage[__WORKSPACE_IDENTIFIER__]Sync();
|
|
@@ -73,6 +107,9 @@
|
|
|
73
107
|
<custom_delete_php_command>
|
|
74
108
|
pfsensePackage[__WORKSPACE_IDENTIFIER__]Remove();
|
|
75
109
|
</custom_delete_php_command>
|
|
110
|
+
<custom_php_deinstall_command>
|
|
111
|
+
pfsensePackage[__WORKSPACE_IDENTIFIER__]Remove();
|
|
112
|
+
</custom_php_deinstall_command>
|
|
76
113
|
<custom_php_validation_command>
|
|
77
114
|
pfsensePackage[__WORKSPACE_IDENTIFIER__]Validate($_POST, $input_errors);
|
|
78
115
|
</custom_php_validation_command>
|
package/build/templates/scaffold/package/pfsense/port/files/usr/local/sbin/[__WORKSPACE_NAME__]
CHANGED
|
@@ -1,21 +1,216 @@
|
|
|
1
|
-
#!/usr/local/bin/php
|
|
1
|
+
#!/usr/local/bin/php
|
|
2
2
|
<?php
|
|
3
3
|
|
|
4
4
|
declare(strict_types=1);
|
|
5
5
|
|
|
6
|
+
use PfSense\[__WORKSPACE_IDENTIFIER__]\Runtime\FileLock;
|
|
7
|
+
use PfSense\[__WORKSPACE_IDENTIFIER__]\Runtime\PackagePaths;
|
|
8
|
+
use PfSense\[__WORKSPACE_IDENTIFIER__]\Runtime\UpdateManager;
|
|
9
|
+
|
|
6
10
|
require_once('/etc/inc/config.inc');
|
|
7
11
|
require_once('/etc/inc/util.inc');
|
|
12
|
+
require_once('/usr/local/pkg/[__WORKSPACE_NAME__]/FileLock.php');
|
|
13
|
+
require_once('/usr/local/pkg/[__WORKSPACE_NAME__]/PackagePaths.php');
|
|
14
|
+
require_once('/usr/local/pkg/[__WORKSPACE_NAME__]/UpdateManager.php');
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Returns one test-only update endpoint override from the CLI environment.
|
|
18
|
+
*
|
|
19
|
+
* No configuration or WebGUI path reads these values. An empty variable falls back
|
|
20
|
+
* to the generated production constant.
|
|
21
|
+
*
|
|
22
|
+
* @param string $name Environment variable name.
|
|
23
|
+
* @param string $fallback Production value.
|
|
24
|
+
*
|
|
25
|
+
* @return string Endpoint value.
|
|
26
|
+
*
|
|
27
|
+
* @since UNRELEASED
|
|
28
|
+
*/
|
|
29
|
+
function pfsensePackage[__WORKSPACE_IDENTIFIER__]EnvironmentOverride(string $name, string $fallback): string
|
|
30
|
+
{
|
|
31
|
+
$value = getenv($name);
|
|
32
|
+
|
|
33
|
+
return is_string($value) && $value !== '' ? $value : $fallback;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Runs a release check or verified self-update under the package lock.
|
|
38
|
+
*
|
|
39
|
+
* @param bool $selfUpdate Whether to install instead of only checking.
|
|
40
|
+
*
|
|
41
|
+
* @return int Process exit code.
|
|
42
|
+
*
|
|
43
|
+
* @since UNRELEASED
|
|
44
|
+
*/
|
|
45
|
+
function pfsensePackage[__WORKSPACE_IDENTIFIER__]RunUpdateCommand(bool $selfUpdate): int
|
|
46
|
+
{
|
|
47
|
+
$fileLock = new FileLock(PackagePaths::LOCK_FILE);
|
|
48
|
+
|
|
49
|
+
try {
|
|
50
|
+
UpdateManager::assertEnvironment();
|
|
51
|
+
|
|
52
|
+
$installedVersion = UpdateManager::installedVersion();
|
|
53
|
+
|
|
54
|
+
if ($installedVersion === null) {
|
|
55
|
+
throw new RuntimeException(gettext('The installed package version could not be determined.'));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if ($fileLock->acquire() === false) {
|
|
59
|
+
$message = gettext('Another package operation is already running.');
|
|
8
60
|
|
|
9
|
-
|
|
61
|
+
if ($selfUpdate) {
|
|
62
|
+
UpdateManager::failQueuedSelfUpdate($message);
|
|
63
|
+
}
|
|
10
64
|
|
|
11
|
-
|
|
12
|
-
|
|
65
|
+
fwrite(STDOUT, $message . PHP_EOL);
|
|
66
|
+
|
|
67
|
+
return 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
$settings = config_get_path('installedpackages/[__PFSENSE_CONFIG_NAME__]/config/0', []);
|
|
71
|
+
$settings = is_array($settings) ? $settings : [];
|
|
72
|
+
$remoteNotifications = ($settings['update_remote_notifications'] ?? '') === 'on';
|
|
73
|
+
$updateManager = new UpdateManager(
|
|
74
|
+
$installedVersion,
|
|
75
|
+
pfsensePackage[__WORKSPACE_IDENTIFIER__]EnvironmentOverride(
|
|
76
|
+
'NOVA_PFSENSE_UPDATE_RELEASES_API',
|
|
77
|
+
UpdateManager::RELEASES_API,
|
|
78
|
+
),
|
|
79
|
+
pfsensePackage[__WORKSPACE_IDENTIFIER__]EnvironmentOverride(
|
|
80
|
+
'NOVA_PFSENSE_UPDATE_DOWNLOAD_PREFIX',
|
|
81
|
+
UpdateManager::DOWNLOAD_PREFIX,
|
|
82
|
+
),
|
|
83
|
+
);
|
|
84
|
+
$state = $selfUpdate
|
|
85
|
+
? $updateManager->selfUpdate($remoteNotifications)
|
|
86
|
+
: $updateManager->check($remoteNotifications);
|
|
87
|
+
|
|
88
|
+
if ($selfUpdate === false) {
|
|
89
|
+
fwrite(
|
|
90
|
+
STDOUT,
|
|
91
|
+
sprintf(
|
|
92
|
+
gettext('The latest available version is %1$s.'),
|
|
93
|
+
(string) ($state['latest_version'] ?? ''),
|
|
94
|
+
) . PHP_EOL,
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return 0;
|
|
99
|
+
} catch (Throwable $throwable) {
|
|
100
|
+
if ($selfUpdate) {
|
|
101
|
+
try {
|
|
102
|
+
UpdateManager::failQueuedSelfUpdate($throwable->getMessage());
|
|
103
|
+
} catch (Throwable) {
|
|
104
|
+
// Preserve the original update failure for CLI output.
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
fwrite(STDERR, sprintf(gettext('[__WORKSPACE_TITLE__] failed: %1$s'), $throwable->getMessage()) . PHP_EOL);
|
|
109
|
+
|
|
110
|
+
return 1;
|
|
111
|
+
} finally {
|
|
112
|
+
$fileLock->release();
|
|
113
|
+
}
|
|
13
114
|
}
|
|
14
115
|
|
|
15
|
-
|
|
116
|
+
/**
|
|
117
|
+
* Runs the replaceable starter background task under the package lock.
|
|
118
|
+
*
|
|
119
|
+
* @return int Process exit code.
|
|
120
|
+
*
|
|
121
|
+
* @since UNRELEASED
|
|
122
|
+
*/
|
|
123
|
+
function pfsensePackage[__WORKSPACE_IDENTIFIER__]RunTask(): int
|
|
124
|
+
{
|
|
125
|
+
$fileLock = new FileLock(PackagePaths::LOCK_FILE);
|
|
126
|
+
|
|
127
|
+
try {
|
|
128
|
+
if ($fileLock->acquire() === false) {
|
|
129
|
+
fwrite(STDOUT, gettext('Another package operation is already running.') . PHP_EOL);
|
|
130
|
+
|
|
131
|
+
return 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
$settings = config_get_path('installedpackages/[__PFSENSE_CONFIG_NAME__]/config/0', []);
|
|
135
|
+
|
|
136
|
+
if (!is_array($settings) || ($settings['enabled'] ?? '') !== 'on') {
|
|
137
|
+
return 0;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
$message = trim((string) ($settings['message'] ?? ''));
|
|
141
|
+
|
|
142
|
+
if ($message === '') {
|
|
143
|
+
$message = 'Example [__WORKSPACE_TITLE__] background task completed.';
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// PHP's syslog() exists on every supported pfSense release; pfSense's own
|
|
147
|
+
// logger() helper is missing from CE 2.8.
|
|
148
|
+
syslog(LOG_NOTICE, sprintf('[__WORKSPACE_TITLE__]: %s', $message));
|
|
149
|
+
|
|
150
|
+
return 0;
|
|
151
|
+
} catch (Throwable $throwable) {
|
|
152
|
+
fwrite(STDERR, sprintf(gettext('[__WORKSPACE_TITLE__] failed: %1$s'), $throwable->getMessage()) . PHP_EOL);
|
|
153
|
+
|
|
154
|
+
return 1;
|
|
155
|
+
} finally {
|
|
156
|
+
$fileLock->release();
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Runs the package command-line entry point.
|
|
162
|
+
*
|
|
163
|
+
* @param list<string> $arguments Command-line arguments.
|
|
164
|
+
*
|
|
165
|
+
* @return int Process exit code.
|
|
166
|
+
*
|
|
167
|
+
* @since UNRELEASED
|
|
168
|
+
*/
|
|
169
|
+
function pfsensePackage[__WORKSPACE_IDENTIFIER__]Main(array $arguments): int
|
|
170
|
+
{
|
|
171
|
+
$checkUpdates = false;
|
|
172
|
+
$selfUpdate = false;
|
|
173
|
+
|
|
174
|
+
foreach (array_slice($arguments, 1) as $argument) {
|
|
175
|
+
switch ($argument) {
|
|
176
|
+
case '--check-updates': {
|
|
177
|
+
$checkUpdates = true;
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
case '--self-update': {
|
|
182
|
+
$selfUpdate = true;
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
case '--help': {
|
|
187
|
+
fwrite(STDOUT, implode(PHP_EOL, [
|
|
188
|
+
gettext('Usage: [__WORKSPACE_NAME__] [--check-updates | --self-update | --help]'),
|
|
189
|
+
gettext('Without an option, the configured background task runs.'),
|
|
190
|
+
]) . PHP_EOL);
|
|
191
|
+
|
|
192
|
+
return 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
default: {
|
|
196
|
+
fwrite(STDERR, sprintf(gettext('Unknown option: %1$s'), $argument) . PHP_EOL);
|
|
197
|
+
|
|
198
|
+
return 64;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if ($checkUpdates && $selfUpdate) {
|
|
204
|
+
fwrite(STDERR, gettext('Update commands cannot be combined.') . PHP_EOL);
|
|
205
|
+
|
|
206
|
+
return 64;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
if ($checkUpdates || $selfUpdate) {
|
|
210
|
+
return pfsensePackage[__WORKSPACE_IDENTIFIER__]RunUpdateCommand($selfUpdate);
|
|
211
|
+
}
|
|
16
212
|
|
|
17
|
-
|
|
18
|
-
$message = 'Example [__WORKSPACE_TITLE__] background task completed.';
|
|
213
|
+
return pfsensePackage[__WORKSPACE_IDENTIFIER__]RunTask();
|
|
19
214
|
}
|
|
20
215
|
|
|
21
|
-
|
|
216
|
+
exit(pfsensePackage[__WORKSPACE_IDENTIFIER__]Main($argv));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="1024px" height="1024px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>nova-logo-bg</title>
|
|
4
|
+
<g id="nova-logo-bg" stroke="none" fill="none" fill-rule="nonzero">
|
|
5
|
+
<polygon id="Background" fill="#FFFFFF" points="0 0 1024 0 1024 1024 0 1024"></polygon>
|
|
6
|
+
<path d="M511.99794,318.398421 C520.31921,318.398421 528.606393,320.855346 536.859488,325.769195 L621.309619,374.250297 L821.876116,488.916688 L824.786914,490.473474 C830.602139,493.597283 836.368022,496.798228 841.884469,500.359068 L843.441641,501.269678 C851.996001,506.320613 860.228957,512.289035 862.418141,523.45581 C863.01989,527.279733 863.224238,530.852108 863.052339,534.201677 L863.012949,534.868629 C862.224122,549.60875 854.767892,560.098985 840.834243,568.031915 C739.346297,625.812903 637.959403,683.774601 536.859488,742.230805 C528.366889,747.141229 520.433474,749.554585 512.536662,749.601216 L511.998293,749.601216 C503.923316,749.663168 495.822321,747.253012 487.136393,742.230805 C386.036478,683.774601 284.649583,625.812903 183.161637,568.031915 C168.30746,559.574895 160.792129,548.260921 160.88404,531.954701 C160.88404,529.947646 161.00805,527.862416 161.26735,525.693888 C161.342613,525.026371 161.428623,524.351234 161.525681,523.668394 L161.550873,523.632299 L161.577739,523.45581 C163.89967,511.611906 173.020559,505.615903 182.112662,500.360012 C188.547266,496.204754 195.322631,492.540298 202.126236,488.912791 L402.689223,374.248912 L487.136393,325.769195 C495.389488,320.855346 503.67667,318.398421 511.99794,318.398421 Z" id="Path" fill="#E25050"></path>
|
|
7
|
+
<path d="M861.89435,521.242559 L861.889244,521.201199 L861.901917,521.257809 L861.876352,521.201199 C863.069837,523.730258 863.354632,528.803246 863.379906,532.399766 L863.422066,547.935897 C863.506135,575.836804 863.647993,604.1761 863.900759,632.007122 L864,640.968372 C864,641.826369 863.991794,642.669309 863.954552,643.497365 C863.455102,655.787926 857.852702,664.956134 847.661013,671.095659 C825.034545,684.726095 802.300016,698.176447 779.547798,711.597424 L760.043672,723.09744 C750.29155,728.847366 740.540922,734.599805 730.798901,740.366622 L713.90357,750.374021 C697.906226,759.92893 681.906512,769.479812 665.876466,778.979349 C649.478795,788.69674 633.067786,798.391559 616.652933,808.079874 L612.679907,810.452297 L597.504049,819.53313 C577.455787,831.531395 557.394844,843.507083 537.137603,855.136266 L532.069097,858.036156 C531.759375,858.214806 531.450553,858.391036 531.141274,858.563296 L529.973513,859.229195 C524.17296,862.526529 518.111375,864.072779 511.999854,864.002452 C505.888366,864.072713 499.826916,862.526459 494.026487,859.229195 L492.894858,858.585388 C492.574558,858.405359 492.25316,858.222131 491.93229,858.034625 C463.493532,841.822397 435.47176,824.875051 407.360167,808.085763 C390.940518,798.396464 374.525353,788.699198 358.123534,778.979349 C342.107627,769.48819 326.121997,759.945777 310.138758,750.399303 L293.201099,740.366622 C286.706418,736.522078 280.207912,732.683923 273.707688,728.848643 L244.452202,711.597424 C221.699983,698.176447 198.965455,684.726095 176.338987,671.095659 C166.154578,664.960519 160.552903,655.801022 160.046682,643.523577 C160.008515,642.687255 160,641.835503 160,640.968372 L160.099024,632.006487 C160.351974,604.176002 160.493859,575.836789 160.577933,547.935895 L160.618378,532.766388 C160.626526,529.276474 160.87181,524.171457 162.003398,521.471735 L162.098083,521.257809 L162.110756,521.201199 L162.104918,521.242559 L162.123647,521.201199 L162.110756,521.201199 C159.351562,541.836195 167.40333,557.269035 184.612545,568.091975 L209.951246,582.549328 C302.43389,635.051687 394.625535,688.072712 486.629464,741.412922 C495.459535,746.532233 503.714445,749.187525 511.99937,749.229726 C520.285094,749.187673 528.540219,746.532376 537.370535,741.412922 C629.374465,688.072712 721.566109,635.051687 814.048398,582.54868 L839.378367,568.096783 C856.249875,557.490245 864.323011,542.454903 862.041857,522.433249 L861.966403,521.798157 L861.876352,521.201199 L861.89435,521.242559 Z" id="Path" fill="#9B1F1F"></path>
|
|
8
|
+
<path d="M540.152549,330.772205 C540.18185,388.746963 540.071102,445.901908 540.004706,503.056932 C539.963182,538.817534 540.082257,574.578565 539.936604,610.338629 C539.880242,624.186546 532.339786,634.450161 520.115098,638.282836 C508.672503,641.870198 495.637514,638.090432 489.518366,627.425248 C486.089427,621.448944 484.283757,613.6781 484.256165,606.705717 C483.913165,519.943573 484.032987,433.179573 484.026369,346.416031 C484.026022,342.01976 483.95816,337.623515 483.838498,332.408825 C483.847438,283.521771 483.942734,235.45312 484.030265,187.384483 C484.060927,170.553055 494.610041,160.87127 512.934691,160.879994 C529.601673,160.887949 539.989655,171.09111 539.99542,187.487307 C540.012125,234.975694 540.019864,282.464082 540.152549,330.772205 Z" id="Path" fill="#FFBA33"></path>
|
|
9
|
+
<path d="M364.152537,395.888384 C364.177087,435.063957 364.158462,473.420305 363.942576,511.775551 C363.866656,525.264251 356.679325,535.398541 344.971983,539.436927 C333.554792,543.37514 320.655623,540.044096 314.064499,529.588603 C310.54818,524.010704 308.470905,516.607596 308.298303,509.961056 C307.622119,483.917504 307.962919,457.847177 307.84198,430.968609 C307.850067,385.004453 307.970125,339.858529 308.025177,294.712552 C308.069154,258.6496 308.017678,222.586557 308.041642,186.523579 C308.052209,170.64925 319.105998,160.871633 336.926821,160.879995 C353.144727,160.887625 363.98562,171.154297 363.991463,186.607263 C364.017668,256.094396 364.02047,325.581542 364.152537,395.888384 Z" id="Path" fill="#FFBA33"></path>
|
|
10
|
+
<path d="M709.107873,425.862361 C709.136345,454.200953 709.063569,481.719947 708.944195,509.238725 C708.862943,527.965384 697.672811,540.825478 681.354175,541.04259 C664.691335,541.253724 653.09814,528.220863 653.060179,509.066787 C652.984738,471.00461 652.975407,432.94227 652.855129,394.061862 C652.863445,324.944803 653.25718,256.643812 652.795842,188.348689 C652.70222,174.489919 662.178906,163.897291 672.365272,161.19004 C687.466026,157.176665 701.287747,163.553878 707.049424,176.711001 C708.481898,179.982066 708.872487,183.942937 708.877605,187.587966 C708.987808,266.739416 708.975546,345.891028 709.107873,425.862361 Z" id="Path" fill="#FFBA33"></path>
|
|
11
|
+
</g>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Release signing keys for pfSense-pkg-[__WORKSPACE_IDENTIFIER__].
|
|
2
|
+
#
|
|
3
|
+
# The publish workflow adds the public key of its release signing secret to the
|
|
4
|
+
# package it builds, so this file normally lists no key. Installed copies only
|
|
5
|
+
# install updates signed by a key listed in their copy of this file.
|
|
6
|
+
#
|
|
7
|
+
# To change keys, add the new "ssh-ed25519 ..." public key on its own line,
|
|
8
|
+
# publish one release while the old key is still the secret, then replace the
|
|
9
|
+
# secret with the new key.
|