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:
Murat
2019-09-18 07:07:42 +02:00
committed by Franco Fichtner
parent 871c18c985
commit 6940d0c894
3 changed files with 21 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
rm -f /usr/local/etc/pkg/repos/SunnyValley.conf
+16
View File
@@ -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
@@ -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
}