aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2025-08-07 16:18:05 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2025-08-07 16:21:55 +0000
commit5ec6f80846aed0928fed2d8a71406cd5b0713cc0 (patch)
treeb52fa99ee55ffefaf2132421833849d1be460c48
parent77a476493376b14869a08715561f1b3545f85710 (diff)
devel/bstring: add new port
Bstring is a "better string library" forked from Paul Hsieh. It offers mitigation over common buffer overflow conditions and easier string manipulation. This fork brings easier build and testing systems.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/bstring/Makefile17
-rw-r--r--devel/bstring/distinfo3
-rw-r--r--devel/bstring/pkg-descr10
-rw-r--r--devel/bstring/pkg-plist7
5 files changed, 38 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 9cf9aaf398b0..c18ecdae6243 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -339,6 +339,7 @@
SUBDIR += bsdcflow
SUBDIR += bsddialog
SUBDIR += bsdowl
+ SUBDIR += bstring
SUBDIR += buf
SUBDIR += bugzilla50
SUBDIR += bugzilla52
diff --git a/devel/bstring/Makefile b/devel/bstring/Makefile
new file mode 100644
index 000000000000..7d5eecbb343b
--- /dev/null
+++ b/devel/bstring/Makefile
@@ -0,0 +1,17 @@
+PORTNAME= bstring
+DISTVERSION= 1.0.1
+CATEGORIES= devel
+MASTER_SITES= https://github.com/msteinert/${PORTNAME}/releases/download/v${PORTVERSION}/
+
+MAINTAINER= marcus@FreeBSD.org
+COMMENT= Fork of Paul Hsieh's Better String Library
+WWW= https://mike.steinert.ca/bstring/
+
+LICENSE= BSD3CLAUSE
+
+USES= autoreconf gmake libtool pathfix pkgconfig tar:xz
+USE_LDCONFIG= yes
+
+GNU_CONFIGURE= yes
+
+.include <bsd.port.mk>
diff --git a/devel/bstring/distinfo b/devel/bstring/distinfo
new file mode 100644
index 000000000000..337c5a4d1c3b
--- /dev/null
+++ b/devel/bstring/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1754582069
+SHA256 (bstring-1.0.1.tar.xz) = a86b6b30f4ad2496784cc7f53eb449c994178b516935384c6707f381b9fe6056
+SIZE (bstring-1.0.1.tar.xz) = 93096
diff --git a/devel/bstring/pkg-descr b/devel/bstring/pkg-descr
new file mode 100644
index 000000000000..ad04fb4c5f60
--- /dev/null
+++ b/devel/bstring/pkg-descr
@@ -0,0 +1,10 @@
+Better String Library
+
+This is a fork of Paul Hsieh's Better String Library. The following features (or mis-features, depending on your point of view) are included:
+
+ Autotools build system
+ Updated test suite based on Check
+ Add Valgrind to the workflow
+ Add continuous integration via Travis-CI
+ Remove C++ code
+ Other various improvements
diff --git a/devel/bstring/pkg-plist b/devel/bstring/pkg-plist
new file mode 100644
index 000000000000..9449fef0013d
--- /dev/null
+++ b/devel/bstring/pkg-plist
@@ -0,0 +1,7 @@
+include/bstring/bstraux.h
+include/bstring/bstrlib.h
+lib/libbstring.a
+lib/libbstring.so
+lib/libbstring.so.0
+lib/libbstring.so.0.1.0
+libdata/pkgconfig/bstring.pc