firmware: add aux repository for #9275

Not a toggle yet but also only on development for now.
This commit is contained in:
Franco Fichtner 2026-02-12 08:36:59 +01:00
parent 0b5f585113
commit 2a90becd2e
5 changed files with 15 additions and 3 deletions

View file

@ -1,4 +1,4 @@
# Copyright (c) 2014-2025 Franco Fichtner <franco@opnsense.org>
# Copyright (c) 2014-2026 Franco Fichtner <franco@opnsense.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
@ -116,7 +116,7 @@ CORE_MAINTAINER?= project@opnsense.org
CORE_ORIGIN?= opnsense/${CORE_NAME}
CORE_PACKAGESITE?= https://pkg.opnsense.org
CORE_PRODUCT?= OPNsense
CORE_REPOSITORY?= ${CORE_ABI}/latest
CORE_REPOSITORY?= latest
CORE_WWW?= https://opnsense.org/
CORE_USER?= wwwonly
CORE_UID?= 789

1
plist
View file

@ -2553,4 +2553,5 @@
@sample /usr/local/etc/bogonsv6.sample
@sample /usr/local/etc/config.xml.sample
@shadow /usr/local/etc/pkg/repos/FreeBSD.conf.sample
@shadow /usr/local/etc/pkg/repos/OPNsense-aux.conf.sample
@shadow /usr/local/etc/pkg/repos/OPNsense.conf.sample

View file

@ -0,0 +1,7 @@
OPNsense-aux: {
fingerprints: "/usr/local/etc/pkg/fingerprints/OPNsense",
url: "%%CORE_PACKAGESITE%%/${ABI}/%%CORE_ABI%%/aux",
signature_type: "fingerprints",
priority: 11,
enabled: yes
}

View file

@ -1,6 +1,6 @@
OPNsense: {
fingerprints: "/usr/local/etc/pkg/fingerprints/OPNsense",
url: "%%CORE_PACKAGESITE%%/${ABI}/%%CORE_REPOSITORY%%",
url: "%%CORE_PACKAGESITE%%/${ABI}/%%CORE_ABI%%/%%CORE_REPOSITORY%%",
signature_type: "fingerprints",
priority: 11,
enabled: yes

View file

@ -62,3 +62,7 @@ if (!empty($config->system->firmware->flavour)) {
/* rewrite the config via the defaults and possible arguments */
shell_safe($frmt, $args);
/* overwrite the aux configuration for consistency */
$conf = '/usr/local/etc/pkg/repos/OPNsense-aux.conf';
@copy($conf . '.sample', $conf);