import snippets from gitlab

This commit is contained in:
Luiz Costa
2024-05-29 21:58:09 +01:00
commit cf401989d9
9 changed files with 524 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
--- /etc/inc/pkg-utils.orig.inc 2023-12-21 11:18:33.789690000 +0000
+++ /etc/inc/pkg-utils.inc 2023-12-21 11:21:02.4527712000 +0000
@@ -387,7 +387,7 @@
if ($base_packages) {
$repo_param = "";
} else {
- $repo_param = "-r {$g['product_name']}";
+ $repo_param = "";
}
/*
@@ -486,7 +486,7 @@
$err);
if (!$base_packages &&
rtrim($out) != g_get('product_name')) {
- continue;
+ //continue;
}
$pkg_info['installed'] = true;

6
squid-6x/readme.md Normal file
View File

@@ -0,0 +1,6 @@
#### Squid 6.x Repository
```
fetch -q -o - https://gitlab.labexposed.com/-/snippets/15/raw/main/repo-squid6x.sh | sh
```

23
squid-6x/rrepo-squid6x.sh Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
# Patch to list packages from other repositories
patch_tmp=$(mktemp)
fetch -q -o $patch_tmp https://gitlab.labexposed.com/-/snippets/15/raw/main/list_packages.patch
if patch --dry-run -p0 -d /etc/inc -f < "$patch_tmp" >/dev/null 2>&1; then
patch -b -p0 -d /etc/inc -f < "$patch_tmp"
fi
rm -f $patch_tmp
# Make repository
cat <<EOF > /usr/local/etc/pkg/repos/pf2ad.conf
pf2ad: {
url: "https://pkg.pf2ad.com/pfsense/2.7.2/amd64/",
mirror_type: "https",
enabled: yes,
priority: 100
}
EOF
pkg update
exit 0