git: 0ab84eeb0ee4 - main - misc/libuuid: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Jun 2025 15:03:06 UTC
The branch main has been updated by mandree:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0ab84eeb0ee4b93c3e94f3408a990cec9d03afa2
commit 0ab84eeb0ee4b93c3e94f3408a990cec9d03afa2
Author: Alexander Shursha <kekek2@ya.ru>
AuthorDate: 2024-12-19 07:32:58 +0000
Commit: Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2025-06-30 14:48:22 +0000
misc/libuuid: Add new port
---
misc/Makefile | 1 +
misc/libuuid/Makefile | 31 +++++++++++++++++++++++++++++++
misc/libuuid/distinfo | 3 +++
misc/libuuid/pkg-descr | 11 +++++++++++
misc/libuuid/pkg-plist | 22 ++++++++++++++++++++++
5 files changed, 68 insertions(+)
diff --git a/misc/Makefile b/misc/Makefile
index a572f232ad7b..9517f2c7561c 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -249,6 +249,7 @@
SUBDIR += libsupertone
SUBDIR += libsweep-lidar
SUBDIR += libutf
+ SUBDIR += libuuid
SUBDIR += libxdf
SUBDIR += lifelines
SUBDIR += lightgbm
diff --git a/misc/libuuid/Makefile b/misc/libuuid/Makefile
new file mode 100644
index 000000000000..5eb883649987
--- /dev/null
+++ b/misc/libuuid/Makefile
@@ -0,0 +1,31 @@
+PORTNAME= libuuid
+DISTVERSIONPREFIX= v
+DISTVERSION= 2.41
+CATEGORIES= misc
+
+MAINTAINER= arrowd@FreeBSD.org
+COMMENT= Library that generates and parses 128-bit Universally Unique IDs (UUIDs)
+WWW= https://github.com/util-linux/util-linux
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/Documentation/licenses/COPYING.BSD-3-Clause
+
+USES= bison meson pkgconfig tar:xz
+
+USE_GITHUB= yes
+GH_ACCOUNT= util-linux
+GH_PROJECT= util-linux
+
+USE_LDCONFIG= yes
+OPTIONS_SUB= yes
+# disable all Meson features because the project has gazillion of them and we only need one
+MESON_ARGS= --auto-features=disabled \
+ -Ddefault_library=both \
+ -Dbuild-libuuid=enabled \
+ -Dallow-32bit-time=true \
+ -Dprogram-tests=false
+
+OPTIONS_DEFINE= MANPAGES
+MANPAGES_BUILD_DEPENDS= asciidoctor:textproc/rubygem-asciidoctor
+
+.include <bsd.port.mk>
diff --git a/misc/libuuid/distinfo b/misc/libuuid/distinfo
new file mode 100644
index 000000000000..99f2929b0528
--- /dev/null
+++ b/misc/libuuid/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1742552083
+SHA256 (util-linux-util-linux-v2.41_GH0.tar.gz) = 277407acf21815006eb4bb2ee9c2fa2ea6f4f84bfc57486c460c6bc8c77a4445
+SIZE (util-linux-util-linux-v2.41_GH0.tar.gz) = 16079500
diff --git a/misc/libuuid/pkg-descr b/misc/libuuid/pkg-descr
new file mode 100644
index 000000000000..1e2b112133b3
--- /dev/null
+++ b/misc/libuuid/pkg-descr
@@ -0,0 +1,11 @@
+The UUID library is used to generate unique identifiers for objects
+that may be accessible beyond the local system. This library
+generates UUIDs compatible with those created by the Open Software
+Foundation (OSF) Distributed Computing Environment (DCE) utility
+uuidgen.
+
+The UUIDs generated by this library can be reasonably expected to be
+unique within a system, and unique across all systems. They could
+be used, for instance, to generate unique HTTP cookies across multiple
+web servers without communication between the servers, and without fear
+of a name clash.
diff --git a/misc/libuuid/pkg-plist b/misc/libuuid/pkg-plist
new file mode 100644
index 000000000000..76ddef06807c
--- /dev/null
+++ b/misc/libuuid/pkg-plist
@@ -0,0 +1,22 @@
+bin/uuidgen
+include/uuid/uuid.h
+lib/libuuid.a
+lib/libuuid.so
+lib/libuuid.so.1
+lib/libuuid.so.1.3.0
+libdata/pkgconfig/uuid.pc
+%%MANPAGES%%share/man/man1/uuidgen.1.gz
+%%MANPAGES%%share/man/man3/uuid.3.gz
+%%MANPAGES%%share/man/man3/uuid_clear.3.gz
+%%MANPAGES%%share/man/man3/uuid_compare.3.gz
+%%MANPAGES%%share/man/man3/uuid_copy.3.gz
+%%MANPAGES%%share/man/man3/uuid_generate.3.gz
+%%MANPAGES%%share/man/man3/uuid_generate_random.3.gz
+%%MANPAGES%%share/man/man3/uuid_generate_time.3.gz
+%%MANPAGES%%share/man/man3/uuid_generate_time_safe.3.gz
+%%MANPAGES%%share/man/man3/uuid_is_null.3.gz
+%%MANPAGES%%share/man/man3/uuid_parse.3.gz
+%%MANPAGES%%share/man/man3/uuid_time.3.gz
+%%MANPAGES%%share/man/man3/uuid_unparse.3.gz
+%%MANPAGES%%share/man/man5/terminal-colors.d.5.gz
+%%MANPAGES%%share/man/man8/uuidd.8.gz