mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
Introducing Sensei LibreSSL repository. (#1481)
* Introducing Sensei LibreSSL repository. At install time, package post-install script checks the OPNsense flavor and configures the proper repository according to that. * Updating the pull request as per @fitcher's comments. * Updating pull request as per @fitchner's comments: * Remove redundant repo.conf.LibreSSL * Configure repo path at package install time * * Rename shadow repo file as per OPNsense standard * Add $ABI variable and handle it gracefully * * Remve tragiling / from repo url
This commit is contained in:
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
|
||||
rm -f /usr/local/etc/pkg/repos/SunnyValley.conf
|
||||
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
|
||||
OPNSENSE_FLAVOR=$(/usr/local/sbin/opnsense-version -f)
|
||||
|
||||
if [ "${OPNSENSE_FLAVOR}" == "OpenSSL" ]; then
|
||||
echo "Configuring repository for OpenSSL flavor"
|
||||
elif [ "${OPNSENSE_FLAVOR}" == "LibreSSL" ]; then
|
||||
echo "Configuring repository for LibreSSL flavor"
|
||||
else
|
||||
echo "Unsupported OPNsense flavor, aborting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cat /usr/local/etc/pkg/repos/SunnyValley.conf.shadow.in | sed "s/%%FLAVOR%%/${OPNSENSE_FLAVOR}/g" > /usr/local/etc/pkg/repos/SunnyValley.conf
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
SunnyValley: {
|
||||
fingerprints: "/usr/local/etc/pkg/fingerprints/SunnyValley",
|
||||
url: "https://updates.sunnyvalley.io/opnsense/repo/",
|
||||
url: "https://updates.sunnyvalley.io/opnsense/${ABI}/%%FLAVOR%%/repo",
|
||||
signature_type: "fingerprints",
|
||||
priority: 101,
|
||||
priority: 7,
|
||||
enabled: yes
|
||||
}
|
||||
Reference in New Issue
Block a user