# HG changeset patch # User Aleksej Bobylev # Date 1547292702 -7200 # Node ID 95afb7884ec0b11e556fc93cca95e02625569dde # Parent 0ed3f456a542868e54b5ffe3ada5e0a8abd6000b retawq: enable HTTPS support diff -r 0ed3f456a542 -r 95afb7884ec0 retawq/receipt --- a/retawq/receipt Fri Jan 11 14:45:46 2019 +0200 +++ b/retawq/receipt Sat Jan 12 13:31:42 2019 +0200 @@ -11,30 +11,39 @@ TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" -BUILD_DEPENDS="ncurses-dev" +BUILD_DEPENDS="ncurses-dev openssl-dev gettext-dev" +DEPENDS="ncurses openssl" + +TAGS="web-browser" compile_rules() { + # regenerate *.mo files (shipped ones are missed headers that lead to + # thousands of errors when compressor normalize catalogs) + for i in de es fr ja pt_BR; do + rm i18n/$i.mo + msgfmt -o i18n/$i.mo i18n/$i.po + done + ./configure \ + --path-prefix=/usr \ + --path-man=/usr/share/man \ + --path-doc=/usr/share/doc/retawq \ + --enable-i18n \ + --disable-news \ --enable-local-cgi \ - --path-prefix=/usr \ - --path-doc=/usr/share/doc/retawq \ - --path-man=/usr/share/man \ - --enable-i18n && + --enable-ipv6 \ + --set-tls=2 \ + && make && make install || return 1 - mkdir -p $install/usr/share/applications $install/etc - cp $stuff/retawq.desktop $install/usr/share/applications - cp -a $stuff/skel $install/etc + install -Dm644 $stuff/retawq.desktop $install/usr/share/applications/retawq.desktop + install -Dm644 $stuff/bookmarks.html $install/etc/skel/.retawq/bookmarks.html + install -Dm644 $stuff/config $install/etc/skel/.retawq/config + + find $install -type f -exec chmod u+w '{}' \; # 444->644 } -# The base web browser for ARM, so check testsuite() { readelf -h $src/retawq } - -genpkg_rules() { - copy bin/ skel/ - DEPENDS="ncurses" - TAGS="web-browser" -} diff -r 0ed3f456a542 -r 95afb7884ec0 retawq/stuff/bookmarks.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/retawq/stuff/bookmarks.html Sat Jan 12 13:31:42 2019 +0200 @@ -0,0 +1,26 @@ + + + SliTaz Retawq - Bookmarks + + + +

Bookmarks the web!

+
+ + + + + diff -r 0ed3f456a542 -r 95afb7884ec0 retawq/stuff/config --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/retawq/stuff/config Sat Jan 12 13:31:42 2019 +0200 @@ -0,0 +1,33 @@ +# This is a run-time configuration for the web browser +# retawq (). +# This file is part of SliTaz GNU/Linux +# (http://www.slitaz.org/). + +# A bookmarks document; we use a local file: +bookmarks local:~/.retawq/bookmarks.html + +# Set colors, if you want black-on-white colors, +# use colors reverse: +colors on + +# Our home page, you can set this value to off: +home http://www.slitaz.org/ + +# Our favorite search engine http://duckduckgo.com/?t=slitaz (needs SSL support) +search-engine http://www.google.com/ + +# When downloading something from an HTTP server, we prefer the French +# language, but would also accept English. +languages fr,en + +# Allow any ("*") CGI scripts in /var/www directory. +local-cgi + allow /var/www/cgi-bin/* + allow /home/tux/Public/cgi-bin/* + +# Maximum number of automatic redirections; we need to access a completely +# screwed server which requires more than 10 redirections. +redirections 15 + +# Tell HTTP servers about our operating system. +user-agent 1 diff -r 0ed3f456a542 -r 95afb7884ec0 retawq/stuff/patches/libressl.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/retawq/stuff/patches/libressl.patch Sat Jan 12 13:31:42 2019 +0200 @@ -0,0 +1,13 @@ +diff --git a/resource.c b/resource.c +index fe90825..faca9d4 100644 +--- a/resource.c ++++ b/resource.c +@@ -2271,7 +2271,7 @@ static one_caller tBoolean tls_initialize(void) + my_spf_cleanup(debugstrbuf, spfbuf); + } + #endif +- if (RAND_egd(seedfilename) >= 0) goto rand_finish; ++// if (RAND_egd(seedfilename) >= 0) goto rand_finish; + debugmsg("TLS: random D\n"); + (void) RAND_load_file(seedfilename, -1); + /* ("-1" is allowed for OpenSSL >= 0.9.5) */ diff -r 0ed3f456a542 -r 95afb7884ec0 retawq/stuff/patches/series --- a/retawq/stuff/patches/series Fri Jan 11 14:45:46 2019 +0200 +++ b/retawq/stuff/patches/series Sat Jan 12 13:31:42 2019 +0200 @@ -1,1 +1,4 @@ -p1|retawq.patch + +# from https://git.alpinelinux.org/aports/tree/community/retawq?h=master +libressl.patch diff -r 0ed3f456a542 -r 95afb7884ec0 retawq/stuff/skel/.retawq/bookmarks.html --- a/retawq/stuff/skel/.retawq/bookmarks.html Fri Jan 11 14:45:46 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ - - - SliTaz Retawq - Bookmarks - - - -

Bookmarks the web!

-
- - - - - diff -r 0ed3f456a542 -r 95afb7884ec0 retawq/stuff/skel/.retawq/config --- a/retawq/stuff/skel/.retawq/config Fri Jan 11 14:45:46 2019 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -# This is a run-time configuration for the web browser -# retawq (). -# This file is part of SliTaz GNU/Linux -# (http://www.slitaz.org/). - -# A bookmarks document; we use a local file: -bookmarks local:~/.retawq/bookmarks.html - -# Set colors, if you want black-on-white colors, -# use colors reverse: -colors on - -# Our home page, you can set this value to off: -home http://www.slitaz.org/ - -# Our favorite search engine http://duckduckgo.com/?t=slitaz (needs SSL support) -search-engine http://www.google.com/ - -# When downloading something from an HTTP server, we prefer the French -# language, but would also accept English. -languages fr,en - -# Allow any ("*") CGI scripts in /var/www directory. -local-cgi - allow /var/www/cgi-bin/* - allow /home/tux/Public/cgi-bin/* - -# Maximum number of automatic redirections; we need to access a completely -# screwed server which requires more than 10 redirections. -redirections 15 - -# Tell HTTP servers about our operating system. -user-agent 1