diff options
author | David Woodfall <dave@dawoodfall.net> | 2017-11-16 00:28:08 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-11-18 12:40:28 +0700 |
commit | 28d7d9df06c3bba84710c6ff8ee9e1bbde2664d5 (patch) | |
tree | 2618f1b8e295f0b3b546a954ceb9357348d1c1d4 /network/elinks | |
parent | d4763b90449d5002cd8732288ab36d8010c56710 (diff) | |
download | slackbuilds-28d7d9df06c3bba84710c6ff8ee9e1bbde2664d5.tar.gz |
network/elinks: Patched to fix gopher html links.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/elinks')
-rw-r--r-- | network/elinks/elinks.SlackBuild | 15 | ||||
-rw-r--r-- | network/elinks/gopher-html.patch | 25 |
2 files changed, 35 insertions, 5 deletions
diff --git a/network/elinks/elinks.SlackBuild b/network/elinks/elinks.SlackBuild index f24e86d95b..9643bc9a6e 100644 --- a/network/elinks/elinks.SlackBuild +++ b/network/elinks/elinks.SlackBuild @@ -26,7 +26,7 @@ PRGNAM=elinks VERSION=${VERSION:-git20131231} -BUILD=${BUILD:-2} +BUILD=${BUILD:-3} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -71,6 +71,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch --verbose -p1 < $CWD/gopher-html.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -83,15 +85,18 @@ CXXFLAGS="$SLKCFLAGS" \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --with-guile \ --enable-cgi \ - --enable-nntp \ - --enable-html-highlight \ --enable-finger \ - --enable-bittorrent \ + --enable-fsp \ --enable-gopher \ - --enable-exmode \ + --enable-nntp \ + --enable-smb \ --enable-88-colors \ --enable-256-colors \ --enable-true-color \ + --enable-exmode \ + --enable-html-highlight \ + --enable-bittorrent \ + --enable-fastmem \ --build=$ARCH-slackware-linux make diff --git a/network/elinks/gopher-html.patch b/network/elinks/gopher-html.patch new file mode 100644 index 0000000000..3537d47678 --- /dev/null +++ b/network/elinks/gopher-html.patch @@ -0,0 +1,25 @@ +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 @@ + struct string command; + enum gopher_entity entity = DEFAULT_GOPHER_ENTITY; + unsigned char *selector = conn->uri->data; ++ unsigned char *URI = "hURI"; ++ unsigned char *URL = "hURL"; + int selectorlen = conn->uri->datalen; + struct gopher_entity_info *entity_info; + size_t size; +@@ -288,6 +290,12 @@ + selectorlen--; + } + ++ if(strstr(selector, URL) != NULL || strstr(selector, URI) != NULL) { ++ entity = GOPHER_HTML; ++ *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 |