lang/libhx: the port had been updated (+)

- Update libHX to version 4.2
- Sadly, the author no longer hosts the project on SourceForge
  but on his own site instead, this affects MASTER_SITES and
  WWW line in the port description
- Disable getsockopt(SO_BINDTODEVICE) call for now as FreeBSD
  does not implement this socket option (patches welcome)
- While here, assume maintainership of the port
This commit is contained in:
Alexey Dokuchaev 2021-10-20 02:47:18 +00:00
parent e90b0843c3
commit 441a956e5f
5 changed files with 29 additions and 10 deletions

View file

@ -1,17 +1,16 @@
# Created by: Sylvio Cesar <sylvio@FreeBSD.org>
PORTNAME= libHX
PORTVERSION= 3.25
PORTVERSION= 4.2
CATEGORIES= lang
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME}
MASTER_SITES= https://inai.de/files/libhx/
MAINTAINER= ports@FreeBSD.org
MAINTAINER= danfe@FreeBSD.org
COMMENT= C/C++ library with common data structures and functions
LICENSE= LGPL21+
USES= cpe libtool localbase tar:xz
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-pkgconfigdir=${PREFIX}/libdata/pkgconfig

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1589449721
SHA256 (libHX-3.25.tar.xz) = 72ddc565dc9a5bab55438cb782ea01cec07cb6069f5e6930030b2be44cb05b89
SIZE (libHX-3.25.tar.xz) = 890576
TIMESTAMP = 1634477831
SHA256 (libHX-4.2.tar.xz) = 5216b765f73c36ff91e999fd5eabc1dbc13801d140b8238fc80ba9c263d723e6
SIZE (libHX-4.2.tar.xz) = 365120

View file

@ -0,0 +1,18 @@
--- src/socket.c.orig 2021-10-17 13:36:53 UTC
+++ src/socket.c
@@ -54,6 +54,7 @@ static int try_sk_from_env(int fd, const struct addrin
return -1;
if (intf == nullptr)
return fd;
+#ifdef SO_BINDTODEVICE
char ifname[32];
optlen = sizeof(ifname);
ret = getsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, ifname, &optlen);
@@ -65,6 +66,7 @@ static int try_sk_from_env(int fd, const struct addrin
ifname[sizeof(ifname)-1] = '\0';
if (strcmp(intf, ifname) != 0)
return -1;
+#endif
return fd;
}

View file

@ -11,4 +11,4 @@ secondarily, the amount of code) a developer has to spend for otherwise
implementing such. Subsequently, proficient coders can use this to
code as fast as for a scripting language.
WWW: http://libhx.sourceforge.net/
WWW: https://inai.de/projects/libhx/

View file

@ -3,6 +3,7 @@ include/libHX/ctype_helper.h
include/libHX/defs.h
include/libHX/deque.h
include/libHX/init.h
include/libHX/intdiff.hpp
include/libHX/io.h
include/libHX/libxml_helper.h
include/libHX/list.h
@ -10,10 +11,11 @@ include/libHX/map.h
include/libHX/misc.h
include/libHX/option.h
include/libHX/proc.h
include/libHX/socket.h
include/libHX/string.h
include/libHX/wx_helper.hpp
lib/libHX_rtcheck.so
lib/libHX.so
lib/libHX.so.32
lib/libHX.so.32.0.0
lib/libHX.so.32.2.0
lib/libHX_rtcheck.so
libdata/pkgconfig/libHX.pc