pkgsrc-WIP-changes archive

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

New package libbsd-solaris10



Module Name:	pkgsrc-wip
Committed By:	Aleksey Cheusov <vle%gmx.net@localhost>
Pushed By:	cheusov
Date:		Sat May 4 17:03:08 2024 +0400
Changeset:	a2c98e77b1b108fbaa2bf15d77f0163e49b4eff4

Added Files:
	libbsd-solaris10/COMMIT_MSG
	libbsd-solaris10/DESCR
	libbsd-solaris10/Makefile
	libbsd-solaris10/PLIST.Linux
	libbsd-solaris10/PLIST.common
	libbsd-solaris10/buildlink3.mk
	libbsd-solaris10/builtin.mk
	libbsd-solaris10/distinfo
	libbsd-solaris10/patches/patch-configure.ac

Log Message:
New package libbsd-solaris10

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

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

diffstat:
 libbsd-solaris10/COMMIT_MSG                 |   1 +
 libbsd-solaris10/DESCR                      |   4 +
 libbsd-solaris10/Makefile                   |  37 +++++
 libbsd-solaris10/PLIST.Linux                |  25 +++
 libbsd-solaris10/PLIST.common               | 246 ++++++++++++++++++++++++++++
 libbsd-solaris10/buildlink3.mk              |  23 +++
 libbsd-solaris10/builtin.mk                 |  47 ++++++
 libbsd-solaris10/distinfo                   |   3 +
 libbsd-solaris10/patches/patch-configure.ac |  15 ++
 9 files changed, 401 insertions(+)

diffs:
diff --git a/libbsd-solaris10/COMMIT_MSG b/libbsd-solaris10/COMMIT_MSG
new file mode 100644
index 0000000000..7d055aa85f
--- /dev/null
+++ b/libbsd-solaris10/COMMIT_MSG
@@ -0,0 +1 @@
+libbsd ported to Solaris-10
diff --git a/libbsd-solaris10/DESCR b/libbsd-solaris10/DESCR
new file mode 100644
index 0000000000..ef2fd317cc
--- /dev/null
+++ b/libbsd-solaris10/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-solaris10/Makefile b/libbsd-solaris10/Makefile
new file mode 100644
index 0000000000..f2239650e4
--- /dev/null
+++ b/libbsd-solaris10/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.8 2024/03/05 19:44:36 vins Exp $
+
+DISTNAME=	libbsd-0.13.0
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=cheusov/}
+EXTRACT_SUFX=	.tar.xz
+
+MAINTAINER=	cheusov%NetBSD.org@localhost
+HOMEPAGE=	https://libbsd.freedesktop.org/
+COMMENT=	Adapted for Solaris-10 libbsd
+LICENSE=	modified-bsd AND 2-clause-bsd AND isc AND mit AND beer-ware
+
+GIT_REPOSITORIES=	libbsd
+GIT_REPO.libbsd=	https://github.com/cheusov/libbsd.git
+GIT_BRANCH.libbsd=	main
+.include "../../wip/mk/git-package.mk"
+
+WRKSRC=		${WRKDIR}/libbsd
+
+NOT_FOR_PLATFORM=	NetBSD-*-* FreeBSD-*-*
+NOT_FOR_PLATFORM+=	OpenBSD-*-* DragonFly-*
+
+GNU_CONFIGURE=	yes
+USE_LIBTOOL=	yes
+USE_TOOLS+=	pkg-config autoconf automake autoreconf gmake
+
+TEST_TARGET=	check
+
+pre-configure:
+	set -e; cd ${WRKSRC}; ./autogen
+
+PKGCONFIG_OVERRIDE+=	src/libbsd-ctor.pc.in
+PKGCONFIG_OVERRIDE+=	src/libbsd-overlay.pc.in
+PKGCONFIG_OVERRIDE+=	src/libbsd.pc.in
+
+.include "../../devel/libmd/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libbsd-solaris10/PLIST.Linux b/libbsd-solaris10/PLIST.Linux
new file mode 100644
index 0000000000..fd1f31cd95
--- /dev/null
+++ b/libbsd-solaris10/PLIST.Linux
@@ -0,0 +1,25 @@
+@comment $NetBSD: PLIST.Linux,v 1.1 2024/03/10 07:07:48 vins Exp $
+include/bsd/md5.h
+include/bsd/nlist.h
+lib/libbsd-ctor.a
+lib/pkgconfig/libbsd-ctor.pc
+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/closefrom.3bsd
+man/man3/fmtcheck.3bsd
+man/man3/funopen.3bsd
+man/man3/getprogname.3bsd
+man/man3/md5.3bsd
+man/man3/nlist.3bsd
+man/man3/reallocf.3bsd
+man/man3/setprogname.3bsd
+man/man3/strlcat.3bsd
+man/man3/strlcpy.3bsd
+man/man3/strnstr.3bsd
+man/man3/strtonum.3bsd
+man/man3/verrc.3bsd
+man/man3/vwarnc.3bsd
+man/man3/warnc.3bsd
diff --git a/libbsd-solaris10/PLIST.common b/libbsd-solaris10/PLIST.common
new file mode 100644
index 0000000000..7aa4b297bb
--- /dev/null
+++ b/libbsd-solaris10/PLIST.common
@@ -0,0 +1,246 @@
+@comment $NetBSD: PLIST.common,v 1.1 2024/03/10 07:07:48 vins Exp $
+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/netinet/ip_icmp.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.la
+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/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/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/fparseln.3bsd
+man/man3/fpurge.3bsd
+man/man3/freezero.3bsd
+man/man3/getbsize.3bsd
+man/man3/getmode.3bsd
+man/man3/getpeereid.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/mergesort.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/recallocarray.3bsd
+man/man3/setmode.3bsd
+man/man3/setproctitle.3bsd
+man/man3/setproctitle_init.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/strmode.3bsd
+man/man3/strnunvis.3bsd
+man/man3/strnvis.3bsd
+man/man3/strtoi.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/timespecadd.3bsd
+man/man3/timespecclear.3bsd
+man/man3/timespeccmp.3bsd
+man/man3/timespecisset.3bsd
+man/man3/timespecsub.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-solaris10/buildlink3.mk b/libbsd-solaris10/buildlink3.mk
new file mode 100644
index 0000000000..59bc111242
--- /dev/null
+++ b/libbsd-solaris10/buildlink3.mk
@@ -0,0 +1,23 @@
+# $NetBSD: buildlink3.mk,v 1.4 2024/03/05 19:44:36 vins Exp $
+
+BUILDLINK_TREE+=	libbsd
+
+.if !defined(LIBBSD_BUILDLINK3_MK)
+LIBBSD_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libbsd+=	libbsd>=0.13.0
+BUILDLINK_ABI_DEPENDS.libbsd+=	libbsd>=0.13.0
+BUILDLINK_PKGSRCDIR.libbsd?=	../../wip/libbsd
+
+#BUILDLINK_INCDIRS.libbsd?=	include/bsd
+BUILDLINK_CFLAGS.libbsd+=	-isystem${BUILDLINK_PREFIX.libbsd}/include/bsd -DLIBBSD_OVERLAY
+BUILDLINK_LIBNAME.libbsd=	bsd
+BUILDLINK_LDADD.libbsd=		${BUILDLINK_LIBNAME.libbsd:S/^/-l/:S/^-l$//}
+
+.include "../../devel/libmd/buildlink3.mk"
+BUILDLINK_LDADD.libbsd+=	${BUILDLINK_LDADD.libmd}
+BUILDLINK_LDFLAGS.libbsd+=	${BUILDLINK_LDADD.libbsd}
+
+.endif	# LIBBSD_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libbsd
diff --git a/libbsd-solaris10/builtin.mk b/libbsd-solaris10/builtin.mk
new file mode 100644
index 0000000000..8b47055ea4
--- /dev/null
+++ b/libbsd-solaris10/builtin.mk
@@ -0,0 +1,47 @@
+# $NetBSD: builtin.mk,v 1.3 2023/08/29 16:25:59 vins 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) && \
+        ${IS_BUILTIN.libbsd:tl} == yes
+USE_BUILTIN.libbsd=	yes
+.      for _dep_ in ${BUILDLINK_API_DEPENDS.libbsd}
+.        if ${USE_BUILTIN.libbsd:tl} == yes
+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-solaris10/distinfo b/libbsd-solaris10/distinfo
new file mode 100644
index 0000000000..a448beda02
--- /dev/null
+++ b/libbsd-solaris10/distinfo
@@ -0,0 +1,3 @@
+$NetBSD$
+
+SHA1 (patch-configure.ac) = e3be7b1ace7ff4fd4afe58471fd08c6df2d21b84
diff --git a/libbsd-solaris10/patches/patch-configure.ac b/libbsd-solaris10/patches/patch-configure.ac
new file mode 100644
index 0000000000..252bbd500f
--- /dev/null
+++ b/libbsd-solaris10/patches/patch-configure.ac
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Set version to 0.13.0
+
+--- configure.ac.orig	2024-05-04 12:44:45.303011102 +0000
++++ configure.ac
+@@ -1,7 +1,7 @@
+ # Process this file with autoconf to produce a configure script.
+ 
+ AC_PREREQ([2.67])
+-AC_INIT([libbsd], m4_esyscmd([./get-version]), [libbsd%lists.freedesktop.org@localhost])
++AC_INIT([libbsd], [0.13.0], [libbsd%lists.freedesktop.org@localhost])
+ AC_CONFIG_SRCDIR([src/strlcpy.c])
+ AC_CONFIG_AUX_DIR([build-aux])
+ AC_CONFIG_MACRO_DIR([m4])


Home | Main Index | Thread Index | Old Index