SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,32 @@
Fix sed(1), grep(1) usage (i.e. !GNU).
Index: scripts/xdg-open.in
--- scripts/xdg-open.in.orig
+++ scripts/xdg-open.in
@@ -84,7 +84,7 @@ is_file_url_or_path()
file_url_to_path()
{
local file="$1"
- if echo "$file" | grep -q '^file://\(localhost\)\?/'; then
+ if echo "$file" | grep -Eq '^file://(localhost)?/'; then
file=${file#file://localhost}
file=${file#file://}
file=${file%%#*}
@@ -354,7 +354,7 @@ DEBUG 3 "$xdg_user_dir:$xdg_system_dirs"
open_generic_xdg_file_mime()
{
- filetype=`xdg-mime query filetype "$1" | sed "s/;.*//"`
+ filetype=`xdg-mime query filetype "$1" | sed "s/[ ;].*//"`
open_generic_xdg_mime "$1" "$filetype"
}
@@ -439,7 +439,7 @@ open_generic()
if [ x"$BROWSER" = x"" ]; then
BROWSER=www-browser:links2:elinks:links:lynx:w3m
if has_display; then
- BROWSER=x-www-browser:firefox:iceweasel:seamonkey:mozilla:epiphany:konqueror:chromium:chromium-browser:google-chrome:$BROWSER
+ BROWSER=x-www-browser:firefox:chrome:iceweasel:seamonkey:mozilla:epiphany:midori:konqueror:chromium-browser:google-chrome:$BROWSER
fi
fi