SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
44
www/httrack/patches/patch-src_webhttrack
Normal file
44
www/httrack/patches/patch-src_webhttrack
Normal file
|
@ -0,0 +1,44 @@
|
|||
1. Make it recognize SeaMonkey as a browser, too.
|
||||
2. Get rid of some unnecessary bashisms.
|
||||
3. Add a hack based on xmessage to avoid stopping WebHTTrack
|
||||
right after starting in case of browser already running.
|
||||
--- src/webhttrack.ports.orig Sun Mar 15 16:42:09 2015
|
||||
+++ src/webhttrack Sat May 9 13:55:56 2015
|
||||
@@ -4,7 +4,7 @@
|
||||
# Initializes the htsserver GUI frontend and launch the default browser
|
||||
|
||||
BROWSEREXE=
|
||||
-SRCHBROWSEREXE="x-www-browser www-browser iceape mozilla firefox icecat iceweasel abrowser firebird galeon konqueror opera google-chrome chrome chromium chromium-browser netscape"
|
||||
+SRCHBROWSEREXE="x-www-browser www-browser iceape seamonkey mozilla firefox icecat iceweasel abrowser firebird galeon konqueror opera google-chrome chrome chromium chromium-browser netscape"
|
||||
if test -n "${BROWSER}"; then
|
||||
# sensible-browser will f up if BROWSER is not set
|
||||
SRCHBROWSEREXE="xdg-open sensible-browser ${SRCHBROWSEREXE}"
|
||||
@@ -103,7 +103,7 @@ TMPSRVFILE="$(mktemp ${TMPDIR:-/tmp}/.webhttrack.XXXXX
|
||||
SRVURL=
|
||||
MAXCOUNT=60
|
||||
while ! test -n "$SRVURL"; do
|
||||
-MAXCOUNT=$[$MAXCOUNT - 1]
|
||||
+MAXCOUNT=$((MAXCOUNT - 1))
|
||||
test $MAXCOUNT -gt 0 || exit 1
|
||||
test $MAXCOUNT -lt 50 && echo "waiting for server to reply.."
|
||||
SRVURL=`grep -E URL= ${TMPSRVFILE} | cut -f2- -d=`
|
||||
@@ -126,7 +126,18 @@ return 0
|
||||
trap "cleanup now; exit" 1 2 3 4 5 6 7 8 9 11 13 14 15 16 19 24 25
|
||||
|
||||
# Got SRVURL, launch browser
|
||||
-launch_browser "${BROWSEREXE}" "${SRVURL}"
|
||||
+SRVURL="http://127.0.0.1:8080/"
|
||||
+launch_browser "${BROWSEREXE}" "$SRVURL"
|
||||
+
|
||||
+MSG="Happy browsing!
|
||||
+
|
||||
+The WebHTTrack is started on $SRVURL
|
||||
+
|
||||
+If you accidentally close browser window, just open a
|
||||
+new one and point it to the same URL.
|
||||
+
|
||||
+Return to this window when you're done with WebHTTrack."
|
||||
+xmessage -buttons "Stop WebHTTrack" "$MSG"
|
||||
|
||||
# That's all, folks!
|
||||
trap "" 1 2 3 4 5 6 7 8 9 11 13 14 15 16 19 24 25
|
Loading…
Add table
Add a link
Reference in a new issue