mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
retawq: new recipe (#8888)
* retawq: new recipe * update per suggestions * update 32-bit build
This commit is contained in:
22
www-client/retawq/patches/retawq-0.2.6c.patchset
Normal file
22
www-client/retawq/patches/retawq-0.2.6c.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From 8f6c95fdbceb74688cae88aa2b4ce00a392db55f Mon Sep 17 00:00:00 2001
|
||||
From: Al Hoang <13622+hoanga@users.noreply.github.com>
|
||||
Date: Sat, 24 Jun 2023 06:38:41 +0000
|
||||
Subject: use RAND_bytes
|
||||
|
||||
|
||||
diff --git a/resource.c b/resource.c
|
||||
index fe90825..b835040 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_bytes(seedfilename, 255) >= 0) goto rand_finish;
|
||||
debugmsg("TLS: random D\n");
|
||||
(void) RAND_load_file(seedfilename, -1);
|
||||
/* ("-1" is allowed for OpenSSL >= 0.9.5) */
|
||||
--
|
||||
2.37.3
|
||||
|
||||
46
www-client/retawq/retawq-0.2.6c.recipe
Normal file
46
www-client/retawq/retawq-0.2.6c.recipe
Normal file
@@ -0,0 +1,46 @@
|
||||
SUMMARY="A multi-threaded text-based web browser"
|
||||
DESCRIPTION="An interactive, multi-threaded network client (web browser) for text \
|
||||
terminals on computers with Unix-like operating systems."
|
||||
HOMEPAGE="https://retawq.sourceforge.net/"
|
||||
COPYRIGHT="2006 Arne Thomassen"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://prdownloads.sourceforge.net/retawq/retawq-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="a42e82494f00e054c2de1b065bbc8fb439d93eb69f9b97cc4868e71e48a9eae0"
|
||||
PATCHES="retawq-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
retawq$secondaryArchSuffix = $portVersion
|
||||
cmd:retawq = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libncurses$secondaryArchSuffix
|
||||
lib:libssl$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libncurses${secondaryArchSuffix}
|
||||
devel:libssl$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
LDFLAGS="-lnetwork -lssl" ./configure --set-tls=2
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $binDir
|
||||
cp -pv retawq $binDir/
|
||||
}
|
||||
Reference in New Issue
Block a user