pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/libtirpc



Module Name:    pkgsrc
Committed By:   vins
Date:           Tue Aug 29 11:28:40 UTC 2023

Added Files:
        pkgsrc/devel/libtirpc: DESCR Makefile PLIST buildlink3.mk builtin.mk
            distinfo
        pkgsrc/devel/libtirpc/patches: patch-doc-Makefile.am
            patch-src_svc__auth__gss.c

Log Message:
devel/libtirpc: import libtirpc-1.3.3.

Packaged in wip by @als with minor additions by @vins.

This package contains SunLib's implementation of transport-independent
RPC (TI-RPC) documentation.  This library forms a piece of the base of
Open Network Computing (ONC), and is derived directly from the Solaris
2.3 source.

TI-RPC is an enhanced version of TS-RPC that requires the UNIX System V
Transport Layer Interface (TLI) or an equivalent X/Open Transport Interface
(XTI).  TI-RPC is on-the-wire compatible with the TS-RPC, which is supported
by almost 70 vendors on all major operating systems.  TS-RPC source code
(RPCSRC 4.0) remains available from several internet sites.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libtirpc/DESCR \
    pkgsrc/devel/libtirpc/Makefile pkgsrc/devel/libtirpc/PLIST \
    pkgsrc/devel/libtirpc/buildlink3.mk pkgsrc/devel/libtirpc/builtin.mk \
    pkgsrc/devel/libtirpc/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libtirpc/patches/patch-doc-Makefile.am \
    pkgsrc/devel/libtirpc/patches/patch-src_svc__auth__gss.c

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

Added files:

Index: pkgsrc/devel/libtirpc/DESCR
diff -u /dev/null pkgsrc/devel/libtirpc/DESCR:1.1
--- /dev/null   Tue Aug 29 11:28:40 2023
+++ pkgsrc/devel/libtirpc/DESCR Tue Aug 29 11:28:40 2023
@@ -0,0 +1,10 @@
+This package contains SunLib's implementation of transport-independent
+RPC (TI-RPC) documentation.  This library forms a piece of the base of
+Open Network Computing (ONC), and is derived directly from the Solaris
+2.3 source.
+
+TI-RPC is an enhanced version of TS-RPC that requires the UNIX System V
+Transport Layer Interface (TLI) or an equivalent X/Open Transport Interface
+(XTI).  TI-RPC is on-the-wire compatible with the TS-RPC, which is supported
+by almost 70 vendors on all major operating systems.  TS-RPC source code
+(RPCSRC 4.0) remains available from several internet sites.
Index: pkgsrc/devel/libtirpc/Makefile
diff -u /dev/null pkgsrc/devel/libtirpc/Makefile:1.1
--- /dev/null   Tue Aug 29 11:28:40 2023
+++ pkgsrc/devel/libtirpc/Makefile      Tue Aug 29 11:28:40 2023
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1 2023/08/29 11:28:40 vins Exp $
+
+DISTNAME=      libtirpc-1.3.3
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=libtirpc/}
+EXTRACT_SUFX=  .tar.bz2
+
+MAINTAINER=    als%thangorodrim.ch@localhost
+HOMEPAGE=      https://sourceforge.net/projects/libtirpc/
+COMMENT=       Port of SUNs Transport-Independent RPC library
+LICENSE=       original-bsd
+
+ONLY_FOR_PLATFORM=     Linux-*-*
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL=   yes
+USE_TOOLS+=    pkg-config autoconf autoreconf automake
+
+CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+=       --datadir=${PREFIX}/share/examples/${PKGBASE}
+
+EGDIR=         ${PREFIX}/share/examples/${PKGBASE}
+CONF_FILES=    ${EGDIR}/bindresvport.blacklist \
+               ${PKG_SYSCONFDIR}/bindresvport.blacklist
+CONF_FILES+=   ${EGDIR}/netconfig ${PKG_SYSCONFDIR}/netconfig
+
+PKGCONFIG_OVERRIDE+=   libtirpc.pc.in
+
+pre-configure:
+       set -e; cd ${WRKSRC} && autoreconf -fiv
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/krb5.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/libtirpc/PLIST
diff -u /dev/null pkgsrc/devel/libtirpc/PLIST:1.1
--- /dev/null   Tue Aug 29 11:28:40 2023
+++ pkgsrc/devel/libtirpc/PLIST Tue Aug 29 11:28:40 2023
@@ -0,0 +1,75 @@
+@comment $NetBSD: PLIST,v 1.1 2023/08/29 11:28:40 vins Exp $
+include/tirpc/netconfig.h
+include/tirpc/rpc/auth.h
+include/tirpc/rpc/auth_des.h
+include/tirpc/rpc/auth_gss.h
+include/tirpc/rpc/auth_unix.h
+include/tirpc/rpc/clnt.h
+include/tirpc/rpc/clnt_soc.h
+include/tirpc/rpc/clnt_stat.h
+include/tirpc/rpc/des.h
+include/tirpc/rpc/des_crypt.h
+include/tirpc/rpc/key_prot.h
+include/tirpc/rpc/nettype.h
+include/tirpc/rpc/pmap_clnt.h
+include/tirpc/rpc/pmap_prot.h
+include/tirpc/rpc/pmap_rmt.h
+include/tirpc/rpc/raw.h
+include/tirpc/rpc/rpc.h
+include/tirpc/rpc/rpc_com.h
+include/tirpc/rpc/rpc_msg.h
+include/tirpc/rpc/rpcb_clnt.h
+include/tirpc/rpc/rpcb_prot.h
+include/tirpc/rpc/rpcb_prot.x
+include/tirpc/rpc/rpcent.h
+include/tirpc/rpc/rpcsec_gss.h
+include/tirpc/rpc/svc.h
+include/tirpc/rpc/svc_auth.h
+include/tirpc/rpc/svc_auth_gss.h
+include/tirpc/rpc/svc_dg.h
+include/tirpc/rpc/svc_mt.h
+include/tirpc/rpc/svc_soc.h
+include/tirpc/rpc/types.h
+include/tirpc/rpc/xdr.h
+include/tirpc/rpcsvc/crypt.h
+include/tirpc/rpcsvc/crypt.x
+lib/libtirpc.la
+lib/pkgconfig/libtirpc.pc
+man/man3/bindresvport.3t
+man/man3/des_crypt.3t
+man/man3/getnetconfig.3t
+man/man3/getnetpath.3t
+man/man3/getrpcent.3t
+man/man3/getrpcport.3t
+man/man3/rpc.3t
+man/man3/rpc_clnt_auth.3t
+man/man3/rpc_clnt_calls.3t
+man/man3/rpc_clnt_create.3t
+man/man3/rpc_gss_get_error.3t
+man/man3/rpc_gss_get_mech_info.3t
+man/man3/rpc_gss_get_mechanisms.3t
+man/man3/rpc_gss_get_principal_name.3t
+man/man3/rpc_gss_get_versions.3t
+man/man3/rpc_gss_getcred.3t
+man/man3/rpc_gss_is_installed.3t
+man/man3/rpc_gss_max_data_length.3t
+man/man3/rpc_gss_mech_to_oid.3t
+man/man3/rpc_gss_qop_to_num.3t
+man/man3/rpc_gss_seccreate.3t
+man/man3/rpc_gss_set_callback.3t
+man/man3/rpc_gss_set_defaults.3t
+man/man3/rpc_gss_set_svc_name.3t
+man/man3/rpc_gss_svc_max_data_length.3t
+man/man3/rpc_secure.3t
+man/man3/rpc_soc.3t
+man/man3/rpc_svc_calls.3t
+man/man3/rpc_svc_create.3t
+man/man3/rpc_svc_err.3t
+man/man3/rpc_svc_reg.3t
+man/man3/rpc_xdr.3t
+man/man3/rpcbind.3t
+man/man3/rpcsec_gss.3t
+man/man3/rtime.3t
+man/man5/netconfig.5
+share/examples/libtirpc/bindresvport.blacklist
+share/examples/libtirpc/netconfig
Index: pkgsrc/devel/libtirpc/buildlink3.mk
diff -u /dev/null pkgsrc/devel/libtirpc/buildlink3.mk:1.1
--- /dev/null   Tue Aug 29 11:28:40 2023
+++ pkgsrc/devel/libtirpc/buildlink3.mk Tue Aug 29 11:28:40 2023
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2023/08/29 11:28:40 vins Exp $
+
+BUILDLINK_TREE+=               libtirpc
+
+.if !defined(LIBTIRPC_BUILDLINK3_MK)
+LIBTIRPC_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libtirpc+=       libtirpc>=1.3.3
+BUILDLINK_PKGSRCDIR.libtirpc?=         ../../devel/libtirpc
+
+BUILDLINK_CFLAGS.libtirpc+=    -I${BUILDLINK_PREFIX.libtirpc}/include/tiprc
+BUILDLINK_LDFLAGS.libtirpc+=   -ltirpc
+
+.endif # LIBTIRPC_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libtirpc
Index: pkgsrc/devel/libtirpc/builtin.mk
diff -u /dev/null pkgsrc/devel/libtirpc/builtin.mk:1.1
--- /dev/null   Tue Aug 29 11:28:40 2023
+++ pkgsrc/devel/libtirpc/builtin.mk    Tue Aug 29 11:28:40 2023
@@ -0,0 +1,47 @@
+# $NetBSD: builtin.mk,v 1.1 2023/08/29 11:28:40 vins Exp $
+
+BUILTIN_PKG:=  libtirpc
+
+BUILTIN_FIND_HEADERS_VAR:=             H_LIBTIRPC
+BUILTIN_FIND_HEADERS.H_LIBTIRPC=       rpc/rpc.h
+BUILTIN_FIND_GREP.H_LIBTIRPC=          \#define[       ]*_TIRPC_RPC_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.libtirpc)
+IS_BUILTIN.libtirpc=   no
+.  if empty(H_LIBTIRPC:M__nonexistent__) && empty(H_LIBTIRPC:M${LOCALBASE}/*)
+IS_BUILTIN.libtirpc=   yes
+.  endif
+.endif
+MAKEVARS+=             IS_BUILTIN.libtirpc
+
+###
+### Determine whether we should use the built-in implementation.
+###
+.if !defined(USE_BUILTIN.libtirpc)
+.  if ${PREFER.libtirpc} == "pkgsrc"
+USE_BUILTIN.libtirpc=  no
+.  else
+USE_BUILTIN.libtirpc=  ${IS_BUILTIN.libtirpc}
+.    if defined(BUILTIN_PKG.libtirpc) && \
+        ${IS_BUILTIN.libtirpc:tl} == yes
+USE_BUILTIN.libtirpc=  yes
+.      for _dep_ in ${BUILDLINK_API_DEPENDS.libtirpc}
+.        if ${USE_BUILTIN.libtirpc:tl} == yes
+USE_BUILTIN.libtirpc!=                                                 \
+       if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.libtirpc:Q}; then \
+               ${ECHO} yes;                                            \
+       else                                                            \
+               ${ECHO} no;                                             \
+       fi
+.        endif
+.      endfor
+.    endif
+.  endif  # PREFER.libtirpc
+.endif
+MAKEVARS+=             USE_BUILTIN.libtirpc
Index: pkgsrc/devel/libtirpc/distinfo
diff -u /dev/null pkgsrc/devel/libtirpc/distinfo:1.1
--- /dev/null   Tue Aug 29 11:28:40 2023
+++ pkgsrc/devel/libtirpc/distinfo      Tue Aug 29 11:28:40 2023
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2023/08/29 11:28:40 vins Exp $
+
+BLAKE2s (libtirpc-1.3.3.tar.bz2) = 0e04d88695974121081c792bc227f87c305f63c182727d4c0855e30104a3b82a
+SHA512 (libtirpc-1.3.3.tar.bz2) = df0781a74ff9ded2d3c4f5eb7e05496b9f58eac8060c02c68331dc14c4a00304dcd19f46836f5756fe0d9d27095fd463d42dd696fcdff891516711b7d63deabe
+Size (libtirpc-1.3.3.tar.bz2) = 562812 bytes
+SHA1 (patch-doc-Makefile.am) = 641ce7aac7651486cf93049d494f016b72644865
+SHA1 (patch-src_svc__auth__gss.c) = 4cb968ac90d26302813ec6c8a36e9c673825a9ab

Index: pkgsrc/devel/libtirpc/patches/patch-doc-Makefile.am
diff -u /dev/null pkgsrc/devel/libtirpc/patches/patch-doc-Makefile.am:1.1
--- /dev/null   Tue Aug 29 11:28:40 2023
+++ pkgsrc/devel/libtirpc/patches/patch-doc-Makefile.am Tue Aug 29 11:28:40 2023
@@ -0,0 +1,13 @@
+$NetBSD: patch-doc-Makefile.am,v 1.1 2023/08/29 11:28:40 vins Exp $
+
+Move config files /etc and into share/examples
+(use CONF_FILES instead).
+
+--- doc/Makefile.am.orig       2023-03-16 21:19:58.827408077 +0100
++++ doc/Makefile.am    2023-03-16 21:20:56.494030533 +0100
+@@ -1,4 +1,4 @@
+-dist_sysconf_DATA     = netconfig bindresvport.blacklist 
++dist_data_DATA        = netconfig bindresvport.blacklist 
+ 
+ CLEANFILES           = cscope.* *~
+ DISTCLEANFILES               = Makefile.in
Index: pkgsrc/devel/libtirpc/patches/patch-src_svc__auth__gss.c
diff -u /dev/null pkgsrc/devel/libtirpc/patches/patch-src_svc__auth__gss.c:1.1
--- /dev/null   Tue Aug 29 11:28:40 2023
+++ pkgsrc/devel/libtirpc/patches/patch-src_svc__auth__gss.c    Tue Aug 29 11:28:40 2023
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_svc__auth__gss.c,v 1.1 2023/08/29 11:28:40 vins Exp $
+
+Replace deprecated gss_sign().
+
+--- src/svc_auth_gss.c.orig    2022-08-02 18:55:33.000000000 +0000
++++ src/svc_auth_gss.c
+@@ -349,7 +349,7 @@ svcauth_gss_accept_sec_context(struct sv
+               seqbuf.value = &seq;
+               seqbuf.length = sizeof(seq);
+ 
+-              maj_stat = gss_sign(&min_stat, gd->ctx, GSS_C_QOP_DEFAULT,
++              maj_stat = gss_get_mic(&min_stat, gd->ctx, GSS_C_QOP_DEFAULT,
+                                   &seqbuf, &checksum);
+ 
+               if (maj_stat != GSS_S_COMPLETE)



Home | Main Index | Thread Index | Old Index