pkgsrc-WIP-changes archive

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

Add libnsl version 2.0.1 to pkgsrc-wip



Module Name:	pkgsrc-wip
Committed By:	Niclas Rosenvik <nros%pkgsrc.org@localhost>
Pushed By:	nros
Date:		Thu Dec 7 14:50:56 2023 +0100
Changeset:	059187c72ba9146581dbf79aa9861148f243d520

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

Log Message:
Add libnsl version 2.0.1 to pkgsrc-wip

Library for NIS(YP) and NIS+ in an ipv6 Ready fashion

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

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

diffstat:
 Makefile             |  1 +
 libnsl/DESCR         |  1 +
 libnsl/Makefile      | 24 ++++++++++++++++++++++++
 libnsl/PLIST         | 10 ++++++++++
 libnsl/buildlink3.mk | 14 ++++++++++++++
 libnsl/builtin.mk    | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 libnsl/distinfo      |  5 +++++
 7 files changed, 108 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 827d0ce868..525c2c4a3e 100644
--- a/Makefile
+++ b/Makefile
@@ -1950,6 +1950,7 @@ SUBDIR+=	libnfc
 SUBDIR+=	libnfo
 SUBDIR+=	libnl
 SUBDIR+=	libnl1
+SUBDIR+=	libnls
 SUBDIR+=	libntfs
 SUBDIR+=	libode
 SUBDIR+=	liboglappth
diff --git a/libnsl/DESCR b/libnsl/DESCR
new file mode 100644
index 0000000000..4bd5458576
--- /dev/null
+++ b/libnsl/DESCR
@@ -0,0 +1 @@
+Library for NIS(YP) and NIS+ in an ipv6 Ready fashion
diff --git a/libnsl/Makefile b/libnsl/Makefile
new file mode 100644
index 0000000000..75e3fe7ca1
--- /dev/null
+++ b/libnsl/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD$
+
+DISTNAME=	libnsl-2.0.1
+CATEGORIES=	net
+MASTER_SITES=	${MASTER_SITE_GITHUB:=thkukuk/}
+GITHUB_RELEASE=	v${PKGVERSION_NOREV}
+EXTRACT_SUFX=	.tar.xz
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/thkukuk/libnsl/
+COMMENT=	Library for nis(yp) ans nis+
+LICENSE=	gnu-lgpl-v2.1
+
+GNU_CONFIGURE=	yes
+USE_LIBTOOL=	yes
+USE_TOOLS+=	gettext pkg-config
+
+ONLY_FOR_PLATFORM=	Linux-*-*
+
+PKGCONFIG_OVERRIDE=	libnsl.pc.in
+
+.include "../../devel/libtirpc/buildlink3.mk"
+.include "../../mk/krb5.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libnsl/PLIST b/libnsl/PLIST
new file mode 100644
index 0000000000..be5c3da41a
--- /dev/null
+++ b/libnsl/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD$
+include/rpcsvc/yp.h
+include/rpcsvc/yp.x
+include/rpcsvc/yp_prot.h
+include/rpcsvc/ypclnt.h
+include/rpcsvc/yppasswd.h
+include/rpcsvc/yppasswd.x
+include/rpcsvc/ypupd.h
+lib/libnsl.la
+lib/pkgconfig/libnsl.pc
diff --git a/libnsl/buildlink3.mk b/libnsl/buildlink3.mk
new file mode 100644
index 0000000000..3852fcbcd9
--- /dev/null
+++ b/libnsl/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	libnsl
+
+.if !defined(LIBNSL_BUILDLINK3_MK)
+LIBNSL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libnsl+=	libnsl>=2.0.1
+BUILDLINK_PKGSRCDIR.libnsl?=	../../wip/libnsl
+
+.include "../../devel/libtirpc/buildlink3.mk"
+.endif	# LIBNSL_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libnsl
diff --git a/libnsl/builtin.mk b/libnsl/builtin.mk
new file mode 100644
index 0000000000..6ce645d8ab
--- /dev/null
+++ b/libnsl/builtin.mk
@@ -0,0 +1,53 @@
+# $NetBSD$
+
+.if !defined(IS_BUILTIN.libnsl)
+
+BUILTIN_FIND_PKGCONFIG_FILES_VAR=	PC_LIBNSL
+BUILTIN_FIND_PKGCONFIG_FILES.PC_LIBNSL=	libnsl.pc
+
+.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").
+###
+
+IS_BUILTIN.libnsl=	no
+.  if empty(PC_LIBNSL:M__nonexistent__)
+IS_BUILTIN.libnsl=	yes
+.  endif
+.endif # IS_BUILTIN.libnsl
+MAKEVARS+=		IS_BUILTIN.libnsl
+
+###
+### Determine whether we should use the built-in implementation.
+###
+.if !defined(USE_BUILTIN.libnsl)
+.  if ${PREFER.libnsl} == "pkgsrc"
+USE_BUILTIN.libnsl=	no
+.  else
+USE_BUILTIN.libnsl=	${IS_BUILTIN.libnsl}
+.  endif  # PREFER.libnsl
+.endif
+MAKEVARS+=		USE_BUILTIN.libnsl
+
+CHECK_BUILTIN?=	no
+.if !empty(CHECK_BUILTIN.libnsl:M[nN][oO])
+.  if !empty(USE_BUILTIN.libnsl:M[yY][eE][sS])
+.    if !empty(USE_TOOLS:C/:.*//:Mpkg-config)
+do-configure-pre-hook: link-libnsl-pkgconfig
+
+BLKDIR_PKGCFG=	${BUILDLINK_DIR}/lib/pkgconfig
+
+.PHONY: link-libnsl-pkgconfig link-message-libnsl-pkgconfig
+link-libnsl-pkgconfig: link-message-libnsl-pkgconfig
+link-message-libnsl-pkgconfig:
+	@${STEP_MSG} "Linking ${PC_LIBNSL} file into ${BUILDLINK_DIR}."
+
+link-libnsl-pkgconfig:
+	${RUN}						\
+	${MKDIR} ${BLKDIR_PKGCFG};			\
+	${LN} -sf ${PC_LIBNSL} ${BLKDIR_PKGCFG}/${BUILTIN_FIND_PKGCONFIG_FILES.PC_LIBNSL}
+.    endif
+.  endif
+.endif # CHECK_BUILTIN.libnsl
diff --git a/libnsl/distinfo b/libnsl/distinfo
new file mode 100644
index 0000000000..db8aba5880
--- /dev/null
+++ b/libnsl/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (libnsl-2.0.1.tar.xz) = 810a995551643cb81410a718a0771ee27c4866d65c99267081183ef4b68e197b
+SHA512 (libnsl-2.0.1.tar.xz) = 0ffdf15b4380fc89bf11f4f64b74ed999099c0ab3ee39cafd52f933a5000f9b1ed3987c8c13533a7cd92474aadd4cc9909a2e1eabc9143f0cb11746385e5fc57
+Size (libnsl-2.0.1.tar.xz) = 281892 bytes


Home | Main Index | Thread Index | Old Index