mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
links: delete old recipes, fix clipboard bug reported by bbjimmy.
This commit is contained in:
@@ -1,88 +0,0 @@
|
||||
SUMMARY="A graphics and text mode web browser"
|
||||
DESCRIPTION="Links is a multi-platform web browser you can run in Terminal."
|
||||
HOMEPAGE="http://links.twibright.com/"
|
||||
COPYRIGHT="1999-2013 Mikulas Patocka
|
||||
2000-2011 Petr Kulhavy, Karel Kulhavy, Martin Pergel"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://links.twibright.com/download/links-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="677f594b58dc532e63913cd61b85cc1aa6f0385e333b88766eb3415b41b3a375"
|
||||
PATCHES="links-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="?x86_gcc2 ?x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
links = $portVersion
|
||||
cmd:links = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libbrotlicommon
|
||||
lib:libbz2
|
||||
lib:libcrypto
|
||||
lib:libgomp
|
||||
lib:libjpeg
|
||||
lib:liblzma
|
||||
lib:libpng16
|
||||
lib:libssl
|
||||
lib:libtiff
|
||||
lib:libz
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
devel:libbrotlicommon
|
||||
devel:libbz2
|
||||
devel:libcrypto
|
||||
# devel:libGL
|
||||
devel:libglu
|
||||
devel:libjpeg
|
||||
devel:liblzma
|
||||
devel:libpng16
|
||||
devel:libssl
|
||||
devel:libtiff
|
||||
devel:libz >= 1.2.8
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:libtool
|
||||
cmd:make
|
||||
cmd:pkg_config
|
||||
"
|
||||
|
||||
defineDebugInfoPackage links \
|
||||
"$binDir"/links
|
||||
|
||||
BUILD()
|
||||
{
|
||||
STDCPPLIBS=-lstdc++
|
||||
if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then
|
||||
STDCPPLIBS=-lstdc++.r4
|
||||
fi
|
||||
|
||||
export CPPFLAGS="-fpermissive"
|
||||
|
||||
aclocal
|
||||
automake --add-missing
|
||||
autoheader
|
||||
automake
|
||||
autoconf
|
||||
runConfigure ./configure \
|
||||
--without-x \
|
||||
--enable-graphics
|
||||
make STDCPPLIBS=$STDCPPLIBS
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
addAppDeskbarSymlink $binDir/links Links
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
@@ -4,13 +4,13 @@ HOMEPAGE="http://links.twibright.com/"
|
||||
COPYRIGHT="1999-2019 Mikulas Patocka
|
||||
2000-2011 Petr Kulhavy, Karel Kulhavy, Martin Pergel"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="http://links.twibright.com/download/links-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="37299f804f22c945bf63e22a7bc4418bbb8144b410c0ced70b82ebe6f9e3c82b"
|
||||
PATCHES="links-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir=$binDir
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
SUMMARY="A graphics and text mode web browser"
|
||||
DESCRIPTION="Links is a multi-platform web browser you can run in Terminal."
|
||||
HOMEPAGE="http://links.twibright.com/"
|
||||
COPYRIGHT="1999 - 2011 Mikulas Patocka
|
||||
2000 - 2011 Petr Kulhavy, Karel Kulhavy, Martin Pergel"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://links.twibright.com/download/links-2.3pre2.tar.gz"
|
||||
CHECKSUM_SHA256="a9c6b8d9e783dc0caaa32f5acf1e3163a5d41b2ba395c93af8587b325b51bac0"
|
||||
PATCHES="links-2.3pre2.patch"
|
||||
|
||||
ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86"
|
||||
|
||||
PROVIDES="
|
||||
links$secondaryArchSuffix = $portVersion
|
||||
cmd:links$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
openssl >= 1.0.0
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libpng$secondaryArchSuffix
|
||||
# lib:libtiff$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
openssl_devel >= 1.0.0
|
||||
# devel:libGL$secondaryArchSuffix
|
||||
devel:libglu$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libpng$secondaryArchSuffix
|
||||
# devel:libtiff$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix >= 1.2.8
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtool
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoconf
|
||||
runConfigure ./configure \
|
||||
--without-x \
|
||||
--enable-utf-8 \
|
||||
--enable-graphics
|
||||
rc links-beos.rdef
|
||||
make
|
||||
xres -o links links-beos.rsrc
|
||||
mimeset links
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
}
|
||||
@@ -1,75 +0,0 @@
|
||||
SUMMARY="A graphics and text mode web browser"
|
||||
DESCRIPTION="Links is a multi-platform web browser you can run in Terminal."
|
||||
HOMEPAGE="http://links.twibright.com/"
|
||||
COPYRIGHT="1999-2013 Mikulas Patocka
|
||||
2000-2011 Petr Kulhavy, Karel Kulhavy, Martin Pergel"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="4"
|
||||
SOURCE_URI="http://links.twibright.com/download/links-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="5070a759af7f107ca4f9572833b8f086cd9f7c21ef5e1fce8482a2883a743c7a"
|
||||
PATCHES="links-$portVersion.patch"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
|
||||
PROVIDES="
|
||||
links = $portVersion
|
||||
cmd:links = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
lib:libcrypto
|
||||
lib:libjpeg
|
||||
lib:libpng16
|
||||
lib:libssl
|
||||
# lib:libtiff
|
||||
lib:libz
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
devel:libcrypto
|
||||
# devel:libGL
|
||||
devel:libglu
|
||||
devel:libjpeg
|
||||
devel:libpng16
|
||||
devel:libssl
|
||||
# devel:libtiff
|
||||
devel:libz >= 1.2.8
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:libtool
|
||||
cmd:make
|
||||
cmd:pkg_config
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
STDCPPLIBS=-lstdc++
|
||||
if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then
|
||||
STDCPPLIBS=-lstdc++.r4
|
||||
fi
|
||||
aclocal
|
||||
automake --add-missing
|
||||
autoheader
|
||||
automake
|
||||
autoconf
|
||||
runConfigure ./configure \
|
||||
--without-x \
|
||||
--enable-graphics
|
||||
make STDCPPLIBS=$STDCPPLIBS
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
addAppDeskbarSymlink $binDir/links Links
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
From 685dac2b4113680d870bf15a07ed02855d868bec Mon Sep 17 00:00:00 2001
|
||||
From 773ef759e2ff519eabf1e76dda51d7d738f90e3a Mon Sep 17 00:00:00 2001
|
||||
From: Leorize <leorize+oss@disroot.org>
|
||||
Date: Wed, 17 Apr 2019 15:41:54 +0700
|
||||
Subject: Add Haiku support
|
||||
@@ -1462,3 +1462,70 @@ index c8f9db2..2fe6aa7 100644
|
||||
--
|
||||
2.21.0
|
||||
|
||||
|
||||
From 1ab7f56fde57de5bd19b58a72ce282b145da678b Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Thu, 18 Jul 2019 19:19:14 +0200
|
||||
Subject: Fix buffer overrun when pasting.
|
||||
|
||||
Strings coming from clipboard may not be NULL terminated, so handle the
|
||||
given length.
|
||||
|
||||
diff --git a/haiku.cpp b/haiku.cpp
|
||||
index 50eacdc..7362c0a 100644
|
||||
--- a/haiku.cpp
|
||||
+++ b/haiku.cpp
|
||||
@@ -242,11 +242,14 @@ int be_loop_select(int n, fd_set *r, fd_set *w, fd_set *e, struct timeval *t)
|
||||
return v;
|
||||
}
|
||||
|
||||
-void be_paste_string(struct graphics_device *dev, const char *str)
|
||||
+void be_paste_string(struct graphics_device *dev, const char *str, size_t len)
|
||||
{
|
||||
unsigned char *s = (unsigned char *)str;
|
||||
int c, i;
|
||||
- while (s && *s) {
|
||||
+ if (len == 0) {
|
||||
+ len = strlen(str);
|
||||
+ }
|
||||
+ while (s && (s < (unsigned char*)str + len) && *s) {
|
||||
GET_UTF_8(s, c);
|
||||
if (dev) dev->keyboard_handler(dev, c, 0);
|
||||
}
|
||||
@@ -439,7 +442,7 @@ void be_get_event(void *dummy)
|
||||
ssize_t len;
|
||||
//data->PrintToStream();
|
||||
if (data->FindData("text/plain", B_MIME_TYPE, (const void **)&text_plain, &len) == B_OK) {
|
||||
- be_paste_string(dev, text_plain);
|
||||
+ be_paste_string(dev, text_plain, len);
|
||||
}
|
||||
}
|
||||
be_clipboard->Unlock();
|
||||
@@ -447,7 +450,7 @@ void be_get_event(void *dummy)
|
||||
break;
|
||||
case B_REFS_RECEIVED:
|
||||
if (dev)
|
||||
- be_paste_string(dev, "\033\ng");
|
||||
+ be_paste_string(dev, "\033\ng", 0);
|
||||
/* FALLTHROUGH */
|
||||
case B_SIMPLE_DATA:
|
||||
{
|
||||
@@ -463,12 +466,12 @@ void be_get_event(void *dummy)
|
||||
BFile f(path.Path(), B_READ_ONLY);
|
||||
BString url;
|
||||
if (f.InitCheck() == B_OK && f.ReadAttrString("META:url", &url) >= B_OK) {
|
||||
- be_paste_string(dev, url.String());
|
||||
+ be_paste_string(dev, url.String(), 0);
|
||||
} else
|
||||
- be_paste_string(dev, path.Path());
|
||||
+ be_paste_string(dev, path.Path(), 0);
|
||||
}
|
||||
} else if (msg->FindData("text/plain", B_MIME_TYPE, (const void **)&text_plain, &len) == B_OK) {
|
||||
- be_paste_string(dev, text_plain);
|
||||
+ be_paste_string(dev, text_plain, len);
|
||||
}
|
||||
}
|
||||
break;
|
||||
--
|
||||
2.21.0
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user