pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/ucspi-ipc



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Wed Nov 18 15:18:39 UTC 2020

Added Files:
        pkgsrc/net/ucspi-ipc: DESCR Makefile PLIST distinfo options.mk

Log Message:
Initial import of ucspi-ipc, command-line tools for building
local-domain client-server applications. They conform to the UNIX
Client-Server Program Interface, UCSPI.

The ipcserver program listens for connections on a local-domain
stream socket, and runs a program for each connection it accepts. The
program environment includes variables that hold the local and remote
socket addresses, and the effective user and group IDs of the process
that called connect. ipcserver offers a concurrency limit on
acceptance of new connections, and selective handling of connections
based on client identity.

The ipcclient program requests a connection to a local-domain socket,
and runs a program. The program environment includes a variable that
holds the local socket address.

The ipcperl program is an example of an ipchandle server. It invokes a
perl subroutine for each request.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/net/ucspi-ipc/DESCR \
    pkgsrc/net/ucspi-ipc/Makefile pkgsrc/net/ucspi-ipc/PLIST \
    pkgsrc/net/ucspi-ipc/distinfo pkgsrc/net/ucspi-ipc/options.mk

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

Added files:

Index: pkgsrc/net/ucspi-ipc/DESCR
diff -u /dev/null pkgsrc/net/ucspi-ipc/DESCR:1.1
--- /dev/null   Wed Nov 18 15:18:39 2020
+++ pkgsrc/net/ucspi-ipc/DESCR  Wed Nov 18 15:18:39 2020
@@ -0,0 +1,18 @@
+The ipcserver and ipcclient programs are command-line tools for building
+local-domain client-server applications. They conform to the UNIX
+Client-Server Program Interface, UCSPI.
+
+The ipcserver program listens for connections on a local-domain
+stream socket, and runs a program for each connection it accepts. The
+program environment includes variables that hold the local and remote
+socket addresses, and the effective user and group IDs of the process
+that called connect. ipcserver offers a concurrency limit on
+acceptance of new connections, and selective handling of connections
+based on client identity.
+
+The ipcclient program requests a connection to a local-domain socket,
+and runs a program. The program environment includes a variable that
+holds the local socket address.
+
+The ipcperl program is an example of an ipchandle server. It invokes a
+perl subroutine for each request.
Index: pkgsrc/net/ucspi-ipc/Makefile
diff -u /dev/null pkgsrc/net/ucspi-ipc/Makefile:1.1
--- /dev/null   Wed Nov 18 15:18:39 2020
+++ pkgsrc/net/ucspi-ipc/Makefile       Wed Nov 18 15:18:39 2020
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1 2020/11/18 15:18:39 schmonz Exp $
+
+DISTNAME=              ucspi-ipc-0.67
+CATEGORIES=            net sysutils
+MASTER_SITES=          ${HOMEPAGE}
+
+MAINTAINER=            schmonz%NetBSD.org@localhost
+HOMEPAGE=              http://www.superscript.com/ucspi-ipc/
+COMMENT=               UCSPI local-domain client-server command-line tools
+
+WRKSRC=                        ${WRKDIR}/host/superscript.com/net/${DISTNAME}
+DJB_SLASHPACKAGE=      yes
+DJB_RESTRICTED=                no
+
+BUILD_DEFS+=           VARBASE
+
+DJB_CONFIG_CMDS=       \
+       ${ECHO} ${VARBASE}/service/ipcexec > conf-ipcexec;      \
+       ${ECHO} it-base > it=d;
+
+INSTALLATION_DIRS=     bin
+
+.include "options.mk"
+
+do-test:
+       cd ${WRKSRC}; \
+               ./package/rts
+
+do-install: do-install-ipcperl
+       for f in ipccat ipcconnect ipcdo ipcrun; do \
+           ${INSTALL_SCRIPT} ${WRKSRC}/command/$$f ${DESTDIR}${PREFIX}/bin; \
+       done
+       for f in ipcclient ipccommand ipcconnect-io ipcexec ipcexec-config \
+               ipcexecrules ipcexecrulescheck \
+               ipcrules ipcrulescheck ipcserver; do \
+           ${INSTALL_PROGRAM} ${WRKSRC}/command/$$f ${DESTDIR}${PREFIX}/bin; \
+       done
+
+.include "../../mk/djbware.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/net/ucspi-ipc/PLIST
diff -u /dev/null pkgsrc/net/ucspi-ipc/PLIST:1.1
--- /dev/null   Wed Nov 18 15:18:39 2020
+++ pkgsrc/net/ucspi-ipc/PLIST  Wed Nov 18 15:18:39 2020
@@ -0,0 +1,16 @@
+@comment $NetBSD: PLIST,v 1.1 2020/11/18 15:18:39 schmonz Exp $
+bin/ipccat
+bin/ipcclient
+bin/ipccommand
+bin/ipcconnect
+bin/ipcconnect-io
+bin/ipcdo
+bin/ipcexec
+bin/ipcexec-config
+bin/ipcexecrules
+bin/ipcexecrulescheck
+${PLIST.perl}bin/ipcperl
+bin/ipcrules
+bin/ipcrulescheck
+bin/ipcrun
+bin/ipcserver
Index: pkgsrc/net/ucspi-ipc/distinfo
diff -u /dev/null pkgsrc/net/ucspi-ipc/distinfo:1.1
--- /dev/null   Wed Nov 18 15:18:39 2020
+++ pkgsrc/net/ucspi-ipc/distinfo       Wed Nov 18 15:18:39 2020
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/11/18 15:18:39 schmonz Exp $
+
+SHA1 (ucspi-ipc-0.67.tar.gz) = 5f53c5fa487f4baa46eb071f40117454ee1eeef8
+RMD160 (ucspi-ipc-0.67.tar.gz) = a79b68dbfdf16cc15232f97e8339d0e874a6e1a6
+SHA512 (ucspi-ipc-0.67.tar.gz) = 4836d4e3fa7896bc218099c7b0092385a448ae6151cc277bc8bab140ab1447b155bd0673647aec147f4fd8b4d8e2c43042fd57e83df9a55fea06c0cb9cd104e4
+Size (ucspi-ipc-0.67.tar.gz) = 51281 bytes
Index: pkgsrc/net/ucspi-ipc/options.mk
diff -u /dev/null pkgsrc/net/ucspi-ipc/options.mk:1.1
--- /dev/null   Wed Nov 18 15:18:39 2020
+++ pkgsrc/net/ucspi-ipc/options.mk     Wed Nov 18 15:18:39 2020
@@ -0,0 +1,21 @@
+# $NetBSD: options.mk,v 1.1 2020/11/18 15:18:39 schmonz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.ucspi-ipc
+PKG_SUPPORTED_OPTIONS+=        perl
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=           perl
+.PHONY: do-install-ipcperl
+.if !empty(PKG_OPTIONS:Mperl)
+.include "../../lang/perl5/buildlink3.mk"
+USE_TOOLS+=            perl:run
+DJB_CONFIG_CMDS+=      ${ECHO} ${PERL5} > conf-perl; \
+                       ${ECHO} it-ipcperl >> it=d;
+PLIST.perl=            yes
+do-install-ipcperl:
+       ${INSTALL_PROGRAM} ${WRKSRC}/command/ipcperl ${DESTDIR}${PREFIX}/bin
+.else
+do-install-ipcperl:
+       ${DO_NADA}
+.endif



Home | Main Index | Thread Index | Old Index