summaryrefslogtreecommitdiff
path: root/misc/libuuid
diff options
context:
space:
mode:
Diffstat (limited to 'misc/libuuid')
-rw-r--r--misc/libuuid/Makefile32
-rw-r--r--misc/libuuid/distinfo3
-rw-r--r--misc/libuuid/files/patch-tools_poman-translate.sh11
-rw-r--r--misc/libuuid/pkg-descr11
-rw-r--r--misc/libuuid/pkg-plist22
5 files changed, 79 insertions, 0 deletions
diff --git a/misc/libuuid/Makefile b/misc/libuuid/Makefile
new file mode 100644
index 000000000000..7c779d8ae994
--- /dev/null
+++ b/misc/libuuid/Makefile
@@ -0,0 +1,32 @@
+PORTNAME= libuuid
+DISTVERSIONPREFIX= v
+DISTVERSION= 2.41.1
+CATEGORIES= misc
+
+MAINTAINER= arrowd@FreeBSD.org
+COMMENT= Library to generate or parse 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
+# disable all Meson features because the project has gazillion of them and we only need one
+MESON_ARGS= --auto-features=disabled \
+ -Dallow-32bit-time=true \
+ -Dbuild-libuuid=enabled \
+ -Ddefault_library=both \
+ -Dprogram-tests=false
+
+OPTIONS_DEFINE= MANPAGES
+OPTIONS_DEFAULT= MANPAGES
+OPTIONS_SUB= yes
+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..2a7cfb2e2feb
--- /dev/null
+++ b/misc/libuuid/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1751103251
+SHA256 (util-linux-util-linux-v2.41.1_GH0.tar.gz) = 61a9785cbf04091286ec2bbfb78e87c35e6380f084f38115a4677b90b9ad4437
+SIZE (util-linux-util-linux-v2.41.1_GH0.tar.gz) = 16084246
diff --git a/misc/libuuid/files/patch-tools_poman-translate.sh b/misc/libuuid/files/patch-tools_poman-translate.sh
new file mode 100644
index 000000000000..ed558d9f2d9a
--- /dev/null
+++ b/misc/libuuid/files/patch-tools_poman-translate.sh
@@ -0,0 +1,11 @@
+--- tools/poman-translate.sh.orig 2025-03-18 12:50:51 UTC
++++ tools/poman-translate.sh
+@@ -82,7 +82,7 @@ mapfile -t PO4ACFG_TRANSLATIONS < <( awk '/\[type:asci
+ mapfile -t LOCALES < <( awk '/\[po4a_langs\]/ {for (i=2; i<=NF; i++) print $i}' "$PO4ACFG" )
+ mapfile -t PO4ACFG_TRANSLATIONS < <( awk '/\[type:asciidoc\]/ {print $2;}' "$PO4ACFG" )
+
+-mkdir --parents "$DESTDIR"
++mkdir -p "$DESTDIR"
+
+ DESTDIR=$( OLDPWD=- CDPATH='' cd -P -- "$DESTDIR" && pwd )
+
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