pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

devel/libbsd: import libbsd-0.11.5 as wip/libbsd



Module Name:	pkgsrc-wip
Committed By:	Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By:	vms
Date:		Thu Jun 30 15:36:07 2022 +0200
Changeset:	715d7d67c5eeb99d820694334da604caf47999ca

Added Files:
	libbsd/DESCR
	libbsd/Makefile
	libbsd/PLIST
	libbsd/buildlink3.mk
	libbsd/builtin.mk
	libbsd/distinfo

Log Message:
devel/libbsd: import libbsd-0.11.5 as wip/libbsd

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=715d7d67c5eeb99d820694334da604caf47999ca

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 libbsd/DESCR         |   4 +
 libbsd/Makefile      |  24 +++++
 libbsd/PLIST         | 271 +++++++++++++++++++++++++++++++++++++++++++++++++++
 libbsd/buildlink3.mk |  12 +++
 libbsd/builtin.mk    |  47 +++++++++
 libbsd/distinfo      |   5 +
 6 files changed, 363 insertions(+)

diffs:
diff --git a/libbsd/DESCR b/libbsd/DESCR
new file mode 100644
index 0000000000..ef2fd317cc
--- /dev/null
+++ b/libbsd/DESCR
@@ -0,0 +1,4 @@
+This library provides useful functions commonly found on BSD systems,
+and lacking on others like GNU systems, thus making it easier to port
+projects with strong BSD origins, without needing to embed the same code
+over and over again on each project.
diff --git a/libbsd/Makefile b/libbsd/Makefile
new file mode 100644
index 0000000000..2ee6c40396
--- /dev/null
+++ b/libbsd/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD$
+
+DISTNAME=	libbsd-0.11.5
+CATEGORIES=	devel
+MASTER_SITES=	https://libbsd.freedesktop.org/releases/
+EXTRACT_SUFX=	.tar.xz
+
+
+MAINTAINER=	vms%retrobsd.ddns.net@localhost
+HOMEPAGE=	https://libbsd.freedesktop.org/
+COMMENT=	Compatibility library for BSD functions under other systems
+LICENSE=	original-bsd
+
+GNU_CONFIGURE=	yes
+USE_LIBTOOL=	yes
+USE_TOOLS+=	pkg-config
+
+INSTALL=	${LIBTOOL} --mode=install ${INSTALL}
+
+PKGCONFIG_OVERRIDE+=	src/libbsd-ctor.pc.in
+PKGCONFIG_OVERRIDE+=	src/libbsd-overlay.pc.in
+PKGCONFIG_OVERRIDE+=	src/libbsd.pc.in
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/libbsd/PLIST b/libbsd/PLIST
new file mode 100644
index 0000000000..b6a327d728
--- /dev/null
+++ b/libbsd/PLIST
@@ -0,0 +1,271 @@
+@comment $NetBSD$
+include/bsd/bitstring.h
+include/bsd/bsd.h
+include/bsd/err.h
+include/bsd/getopt.h
+include/bsd/grp.h
+include/bsd/inttypes.h
+include/bsd/libutil.h
+include/bsd/md5.h
+include/bsd/netinet/ip_icmp.h
+include/bsd/nlist.h
+include/bsd/pwd.h
+include/bsd/readpassphrase.h
+include/bsd/stdio.h
+include/bsd/stdlib.h
+include/bsd/string.h
+include/bsd/stringlist.h
+include/bsd/sys/bitstring.h
+include/bsd/sys/cdefs.h
+include/bsd/sys/endian.h
+include/bsd/sys/param.h
+include/bsd/sys/poll.h
+include/bsd/sys/queue.h
+include/bsd/sys/time.h
+include/bsd/sys/tree.h
+include/bsd/timeconv.h
+include/bsd/unistd.h
+include/bsd/vis.h
+include/bsd/wchar.h
+lib/libbsd-ctor.a
+lib/libbsd.la
+lib/pkgconfig/libbsd-ctor.pc
+lib/pkgconfig/libbsd-overlay.pc
+lib/pkgconfig/libbsd.pc
+man/man3/LIST_CLASS_ENTRY.3bsd
+man/man3/LIST_CLASS_HEAD.3bsd
+man/man3/LIST_EMPTY.3bsd
+man/man3/LIST_ENTRY.3bsd
+man/man3/LIST_FIRST.3bsd
+man/man3/LIST_FOREACH.3bsd
+man/man3/LIST_FOREACH_FROM.3bsd
+man/man3/LIST_FOREACH_FROM_SAFE.3bsd
+man/man3/LIST_FOREACH_SAFE.3bsd
+man/man3/LIST_HEAD.3bsd
+man/man3/LIST_HEAD_INITIALIZER.3bsd
+man/man3/LIST_INIT.3bsd
+man/man3/LIST_INSERT_AFTER.3bsd
+man/man3/LIST_INSERT_BEFORE.3bsd
+man/man3/LIST_INSERT_HEAD.3bsd
+man/man3/LIST_NEXT.3bsd
+man/man3/LIST_PREV.3bsd
+man/man3/LIST_REMOVE.3bsd
+man/man3/LIST_SWAP.3bsd
+man/man3/RB_EMPTY.3bsd
+man/man3/RB_ENTRY.3bsd
+man/man3/RB_FIND.3bsd
+man/man3/RB_FOREACH.3bsd
+man/man3/RB_FOREACH_REVERSE.3bsd
+man/man3/RB_GENERATE.3bsd
+man/man3/RB_GENERATE_STATIC.3bsd
+man/man3/RB_HEAD.3bsd
+man/man3/RB_INIT.3bsd
+man/man3/RB_INITIALIZER.3bsd
+man/man3/RB_INSERT.3bsd
+man/man3/RB_LEFT.3bsd
+man/man3/RB_MAX.3bsd
+man/man3/RB_MIN.3bsd
+man/man3/RB_NEXT.3bsd
+man/man3/RB_NFIND.3bsd
+man/man3/RB_PARENT.3bsd
+man/man3/RB_PREV.3bsd
+man/man3/RB_PROTOTYPE.3bsd
+man/man3/RB_PROTOTYPE_STATIC.3bsd
+man/man3/RB_REMOVE.3bsd
+man/man3/RB_RIGHT.3bsd
+man/man3/RB_ROOT.3bsd
+man/man3/SLIST_CLASS_ENTRY.3bsd
+man/man3/SLIST_CLASS_HEAD.3bsd
+man/man3/SLIST_EMPTY.3bsd
+man/man3/SLIST_ENTRY.3bsd
+man/man3/SLIST_FIRST.3bsd
+man/man3/SLIST_FOREACH.3bsd
+man/man3/SLIST_FOREACH_FROM.3bsd
+man/man3/SLIST_FOREACH_FROM_SAFE.3bsd
+man/man3/SLIST_FOREACH_SAFE.3bsd
+man/man3/SLIST_HEAD.3bsd
+man/man3/SLIST_HEAD_INITIALIZER.3bsd
+man/man3/SLIST_INIT.3bsd
+man/man3/SLIST_INSERT_AFTER.3bsd
+man/man3/SLIST_INSERT_HEAD.3bsd
+man/man3/SLIST_NEXT.3bsd
+man/man3/SLIST_REMOVE.3bsd
+man/man3/SLIST_REMOVE_AFTER.3bsd
+man/man3/SLIST_REMOVE_HEAD.3bsd
+man/man3/SLIST_REMOVE_PREVPTR.3bsd
+man/man3/SLIST_SWAP.3bsd
+man/man3/SPLAY_EMPTY.3bsd
+man/man3/SPLAY_ENTRY.3bsd
+man/man3/SPLAY_FIND.3bsd
+man/man3/SPLAY_FOREACH.3bsd
+man/man3/SPLAY_GENERATE.3bsd
+man/man3/SPLAY_HEAD.3bsd
+man/man3/SPLAY_INIT.3bsd
+man/man3/SPLAY_INITIALIZER.3bsd
+man/man3/SPLAY_INSERT.3bsd
+man/man3/SPLAY_LEFT.3bsd
+man/man3/SPLAY_MAX.3bsd
+man/man3/SPLAY_MIN.3bsd
+man/man3/SPLAY_NEXT.3bsd
+man/man3/SPLAY_PROTOTYPE.3bsd
+man/man3/SPLAY_REMOVE.3bsd
+man/man3/SPLAY_RIGHT.3bsd
+man/man3/SPLAY_ROOT.3bsd
+man/man3/STAILQ_CLASS_ENTRY.3bsd
+man/man3/STAILQ_CLASS_HEAD.3bsd
+man/man3/STAILQ_CONCAT.3bsd
+man/man3/STAILQ_EMPTY.3bsd
+man/man3/STAILQ_ENTRY.3bsd
+man/man3/STAILQ_FIRST.3bsd
+man/man3/STAILQ_FOREACH.3bsd
+man/man3/STAILQ_FOREACH_FROM.3bsd
+man/man3/STAILQ_FOREACH_FROM_SAFE.3bsd
+man/man3/STAILQ_FOREACH_SAFE.3bsd
+man/man3/STAILQ_HEAD.3bsd
+man/man3/STAILQ_HEAD_INITIALIZER.3bsd
+man/man3/STAILQ_INIT.3bsd
+man/man3/STAILQ_INSERT_AFTER.3bsd
+man/man3/STAILQ_INSERT_HEAD.3bsd
+man/man3/STAILQ_INSERT_TAIL.3bsd
+man/man3/STAILQ_LAST.3bsd
+man/man3/STAILQ_NEXT.3bsd
+man/man3/STAILQ_REMOVE.3bsd
+man/man3/STAILQ_REMOVE_AFTER.3bsd
+man/man3/STAILQ_REMOVE_HEAD.3bsd
+man/man3/STAILQ_SWAP.3bsd
+man/man3/TAILQ_CLASS_ENTRY.3bsd
+man/man3/TAILQ_CLASS_HEAD.3bsd
+man/man3/TAILQ_CONCAT.3bsd
+man/man3/TAILQ_EMPTY.3bsd
+man/man3/TAILQ_ENTRY.3bsd
+man/man3/TAILQ_FIRST.3bsd
+man/man3/TAILQ_FOREACH.3bsd
+man/man3/TAILQ_FOREACH_FROM.3bsd
+man/man3/TAILQ_FOREACH_FROM_SAFE.3bsd
+man/man3/TAILQ_FOREACH_REVERSE.3bsd
+man/man3/TAILQ_FOREACH_REVERSE_FROM.3bsd
+man/man3/TAILQ_FOREACH_REVERSE_FROM_SAFE.3bsd
+man/man3/TAILQ_FOREACH_REVERSE_SAFE.3bsd
+man/man3/TAILQ_FOREACH_SAFE.3bsd
+man/man3/TAILQ_HEAD.3bsd
+man/man3/TAILQ_HEAD_INITIALIZER.3bsd
+man/man3/TAILQ_INIT.3bsd
+man/man3/TAILQ_INSERT_AFTER.3bsd
+man/man3/TAILQ_INSERT_BEFORE.3bsd
+man/man3/TAILQ_INSERT_HEAD.3bsd
+man/man3/TAILQ_INSERT_TAIL.3bsd
+man/man3/TAILQ_LAST.3bsd
+man/man3/TAILQ_NEXT.3bsd
+man/man3/TAILQ_PREV.3bsd
+man/man3/TAILQ_REMOVE.3bsd
+man/man3/TAILQ_SWAP.3bsd
+man/man3/TIMESPEC_TO_TIMEVAL.3bsd
+man/man3/TIMEVAL_TO_TIMESPEC.3bsd
+man/man3/arc4random.3bsd
+man/man3/arc4random_addrandom.3bsd
+man/man3/arc4random_buf.3bsd
+man/man3/arc4random_stir.3bsd
+man/man3/arc4random_uniform.3bsd
+man/man3/be16dec.3bsd
+man/man3/be16enc.3bsd
+man/man3/be32dec.3bsd
+man/man3/be32enc.3bsd
+man/man3/be64dec.3bsd
+man/man3/be64enc.3bsd
+man/man3/bit_alloc.3bsd
+man/man3/bit_clear.3bsd
+man/man3/bit_decl.3bsd
+man/man3/bit_ffc.3bsd
+man/man3/bit_ffs.3bsd
+man/man3/bit_nclear.3bsd
+man/man3/bit_nset.3bsd
+man/man3/bit_set.3bsd
+man/man3/bit_test.3bsd
+man/man3/bitstr_size.3bsd
+man/man3/bitstring.3bsd
+man/man3/byteorder.3bsd
+man/man3/closefrom.3bsd
+man/man3/dehumanize_number.3bsd
+man/man3/errc.3bsd
+man/man3/expand_number.3bsd
+man/man3/explicit_bzero.3bsd
+man/man3/fgetln.3bsd
+man/man3/fgetwln.3bsd
+man/man3/flopen.3bsd
+man/man3/fmtcheck.3bsd
+man/man3/fparseln.3bsd
+man/man3/fpurge.3bsd
+man/man3/freezero.3bsd
+man/man3/funopen.3bsd
+man/man3/getbsize.3bsd
+man/man3/getmode.3bsd
+man/man3/getpeereid.3bsd
+man/man3/getprogname.3bsd
+man/man3/gid_from_group.3bsd
+man/man3/group_from_gid.3bsd
+man/man3/heapsort.3bsd
+man/man3/humanize_number.3bsd
+man/man3/le16dec.3bsd
+man/man3/le16enc.3bsd
+man/man3/le32dec.3bsd
+man/man3/le32enc.3bsd
+man/man3/le64dec.3bsd
+man/man3/le64enc.3bsd
+man/man3/md5.3bsd
+man/man3/mergesort.3bsd
+man/man3/nlist.3bsd
+man/man3/pidfile.3bsd
+man/man3/pidfile_close.3bsd
+man/man3/pidfile_open.3bsd
+man/man3/pidfile_remove.3bsd
+man/man3/pidfile_write.3bsd
+man/man3/pwcache.3bsd
+man/man3/queue.3bsd
+man/man3/radixsort.3bsd
+man/man3/readpassphrase.3bsd
+man/man3/reallocarray.3bsd
+man/man3/reallocf.3bsd
+man/man3/recallocarray.3bsd
+man/man3/setmode.3bsd
+man/man3/setproctitle.3bsd
+man/man3/setproctitle_init.3bsd
+man/man3/setprogname.3bsd
+man/man3/sl_add.3bsd
+man/man3/sl_delete.3bsd
+man/man3/sl_find.3bsd
+man/man3/sl_free.3bsd
+man/man3/sl_init.3bsd
+man/man3/sradixsort.3bsd
+man/man3/stringlist.3bsd
+man/man3/strlcat.3bsd
+man/man3/strlcpy.3bsd
+man/man3/strmode.3bsd
+man/man3/strnstr.3bsd
+man/man3/strnunvis.3bsd
+man/man3/strnvis.3bsd
+man/man3/strtoi.3bsd
+man/man3/strtonum.3bsd
+man/man3/strtou.3bsd
+man/man3/strunvis.3bsd
+man/man3/strvis.3bsd
+man/man3/strvisx.3bsd
+man/man3/timeradd.3bsd
+man/man3/timerclear.3bsd
+man/man3/timercmp.3bsd
+man/man3/timerisset.3bsd
+man/man3/timersub.3bsd
+man/man3/timespec.3bsd
+man/man3/timespecadd.3bsd
+man/man3/timespecclear.3bsd
+man/man3/timespeccmp.3bsd
+man/man3/timespecisset.3bsd
+man/man3/timespecsub.3bsd
+man/man3/timeval.3bsd
+man/man3/tree.3bsd
+man/man3/uid_from_user.3bsd
+man/man3/unvis.3bsd
+man/man3/user_from_uid.3bsd
+man/man3/vis.3bsd
+man/man3/wcslcat.3bsd
+man/man3/wcslcpy.3bsd
+man/man7/libbsd.7
diff --git a/libbsd/buildlink3.mk b/libbsd/buildlink3.mk
new file mode 100644
index 0000000000..5dd907dba6
--- /dev/null
+++ b/libbsd/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	libbsd
+
+.if !defined(LIBBSD_BUILDLINK3_MK)
+LIBBSD_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libbsd+=	libbsd>=0.11.5
+BUILDLINK_PKGSRCDIR.libbsd?=	../../wip/libbsd
+.endif	# LIBBSD_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libbsd
diff --git a/libbsd/builtin.mk b/libbsd/builtin.mk
new file mode 100644
index 0000000000..b8f5625c5a
--- /dev/null
+++ b/libbsd/builtin.mk
@@ -0,0 +1,47 @@
+# $NetBSD: builtin.mk,v 1.1 2020/12/09 11:21:46 cheusov Exp $
+
+BUILTIN_PKG:=	libbsd
+
+BUILTIN_FIND_HEADERS_VAR:=	H_LIBBSD
+BUILTIN_FIND_HEADERS.H_LIBBSD=	bsd/bsd.h
+
+.include "../../mk/buildlink3/bsd.builtin.mk"
+
+###
+### Determine if there is a built-in implementation of the package and
+### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
+###
+.if !defined(IS_BUILTIN.libbsd)
+IS_BUILTIN.libbsd=	no
+.  if empty(H_LIBBSD:M__nonexistent__) && empty(H_LIBBSD:M${LOCALBASE}/*)
+IS_BUILTIN.libbsd=	yes
+.  endif
+.endif
+MAKEVARS+=		IS_BUILTIN.libbsd
+
+###
+### Determine whether we should use the built-in implementation if it
+### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
+###
+.if !defined(USE_BUILTIN.libbsd)
+.  if ${PREFER.libbsd} == "pkgsrc"
+USE_BUILTIN.libbsd=	no
+.  else
+USE_BUILTIN.libbsd=	${IS_BUILTIN.libbsd}
+.    if defined(BUILTIN_PKG.libbsd) && \
+        !empty(IS_BUILTIN.libbsd:M[yY][eE][sS])
+USE_BUILTIN.libbsd=	yes
+.      for _dep_ in ${BUILDLINK_API_DEPENDS.libbsd}
+.        if !empty(USE_BUILTIN.libbsd:M[yY][eE][sS])
+USE_BUILTIN.libbsd!=							\
+	if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.libbsd:Q}; then	\
+		${ECHO} yes;						\
+	else								\
+		${ECHO} no;						\
+	fi
+.        endif
+.      endfor
+.    endif
+.  endif  # PREFER.libbsd
+.endif
+MAKEVARS+=		USE_BUILTIN.libbsd
diff --git a/libbsd/distinfo b/libbsd/distinfo
new file mode 100644
index 0000000000..339c92439f
--- /dev/null
+++ b/libbsd/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (libbsd-0.11.5.tar.xz) = e6851a670bd5d97c749b8bce0e5eeecb558ddfd73e1e43dca4c16be5fa32dc25
+SHA512 (libbsd-0.11.5.tar.xz) = c52c19eddd53630aca14f9f6221f7b84aa9cc798b4bb91e867822b161793313aab872ac1c0350d29312a72fee6e2061f3910ff918b724ec171d8c9de5837c841
+Size (libbsd-0.11.5.tar.xz) = 409972 bytes


Home | Main Index | Thread Index | Old Index