diff options
author | David Woodfall <dave@dawoodfall.net> | 2017-11-19 20:58:05 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-11-20 17:59:14 +0700 |
commit | d8546d90adcc0ec9965d3e3b1e88e415f7f024bc (patch) | |
tree | ace2c0a6c7d4f3802a329cc8bb3eaf3cee45851b /network | |
parent | 0e87b5e91725b09a8f0c0d8d5e0e86e4c78070a6 (diff) |
network/elinks: Add options to disable mouse and gpm.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/elinks/README | 6 | ||||
-rw-r--r-- | network/elinks/elinks.SlackBuild | 7 | ||||
-rw-r--r-- | network/elinks/elinks.info | 2 | ||||
-rw-r--r-- | network/elinks/gopher-html.patch | 18 |
4 files changed, 26 insertions, 7 deletions
diff --git a/network/elinks/README b/network/elinks/README index 4f3bea0bb783c..a938b69028527 100644 --- a/network/elinks/README +++ b/network/elinks/README @@ -18,3 +18,9 @@ experiementing with various $TERM variables, as well as look into the settings for terminal options. EG: TERM=rxvt-unicode elinks <URL> + +To disable the X windows mouse use the flag NOMOUSE=1 +To disable the gpm mouse use the flag NOGPM=1 +or combine them: + +NOMOUSE=1 NOGPM=1 ./elinks.SlackBuild diff --git a/network/elinks/elinks.SlackBuild b/network/elinks/elinks.SlackBuild index 9643bc9a6e080..4e01d232d48d6 100644 --- a/network/elinks/elinks.SlackBuild +++ b/network/elinks/elinks.SlackBuild @@ -26,7 +26,7 @@ PRGNAM=elinks VERSION=${VERSION:-git20131231} -BUILD=${BUILD:-3} +BUILD=${BUILD:-4} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -73,6 +73,9 @@ find -L . \ patch --verbose -p1 < $CWD/gopher-html.patch +[ -n "$NOMOUSE" ] && mouse="--disable-mouse" +[ -n "$NOGPM" ] && gpm="--without-gpm" + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -97,6 +100,8 @@ CXXFLAGS="$SLKCFLAGS" \ --enable-html-highlight \ --enable-bittorrent \ --enable-fastmem \ + $mouse \ + $gpm \ --build=$ARCH-slackware-linux make diff --git a/network/elinks/elinks.info b/network/elinks/elinks.info index 08d80ec74a8a1..d6e1a90a235e3 100644 --- a/network/elinks/elinks.info +++ b/network/elinks/elinks.info @@ -1,6 +1,6 @@ PRGNAM="elinks" VERSION="git20131231" -HOMEPAGE="http://elinks.or.cz/" +HOMEPAGE="http://elinks.or.cz" DOWNLOAD="http://www.unrealize.co.uk/source/elinks-git20131231.tar.xz" MD5SUM="3b3b57ac6b9bafe123d046f342272d17" DOWNLOAD_x86_64="" diff --git a/network/elinks/gopher-html.patch b/network/elinks/gopher-html.patch index 3537d47678223..350f577721399 100644 --- a/network/elinks/gopher-html.patch +++ b/network/elinks/gopher-html.patch @@ -1,16 +1,18 @@ diff -Naur a/src/protocol/gopher/gopher.c b/src/protocol/gopher/gopher.c --- a/src/protocol/gopher/gopher.c 2013-12-18 15:38:57.000000000 +0000 -+++ b/src/protocol/gopher/gopher.c 2017-11-15 18:36:43.630034028 +0000 -@@ -277,6 +277,8 @@ ++++ b/src/protocol/gopher/gopher.c 2017-11-15 23:10:19.758394411 +0000 +@@ -277,6 +277,10 @@ struct string command; enum gopher_entity entity = DEFAULT_GOPHER_ENTITY; unsigned char *selector = conn->uri->data; -+ unsigned char *URI = "hURI"; -+ unsigned char *URL = "hURL"; ++ unsigned char *URI = "hURI%3"; ++ unsigned char *URL = "hURL%3"; ++ unsigned char *CURI = "HURI%3"; ++ unsigned char *CURL = "HURL%3"; int selectorlen = conn->uri->datalen; struct gopher_entity_info *entity_info; size_t size; -@@ -288,6 +290,12 @@ +@@ -288,6 +292,18 @@ selectorlen--; } @@ -20,6 +22,12 @@ diff -Naur a/src/protocol/gopher/gopher.c b/src/protocol/gopher/gopher.c + selectorlen--; + } + ++ if(strstr(selector, CURL) != NULL || strstr(selector, CURI) != NULL) { ++ entity = GOPHER_CHTML; ++ *selector++; ++ selectorlen--; ++ } ++ /* This is probably a hack. It serves as a work around when no entity is * available in the Gopher URI. Instead of segfaulting later the content * will be served as application/octet-stream. However, it could |