summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2003-05-12 01:23:21 +0000
committerPete Fritchman <petef@FreeBSD.org>2003-05-12 01:23:21 +0000
commit888316de1440f6cfdf7143af233f2405fca65653 (patch)
tree2dcdaa694b0606566976a0b1a2db223c4b22c5a0 /net
parentAdd libdjbdns 1.05, public domain DNS client library. (diff)
Add ipsvd 0.4.0, internet protocol service daemons.
PR: 51814 Submitted by: Sergei Kolobov <sergei@kolobov.com>
Notes
Notes: svn path=/head/; revision=80716
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/ipsvd/Makefile45
-rw-r--r--net/ipsvd/distinfo1
-rw-r--r--net/ipsvd/files/patch-src::tcpsvd.c7
-rw-r--r--net/ipsvd/pkg-descr22
-rw-r--r--net/ipsvd/pkg-plist16
6 files changed, 92 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index cb2b21af09ae..bf7d3d6f5f28 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -232,6 +232,7 @@
SUBDIR += ipfw-graph
SUBDIR += iplog
SUBDIR += ipsorc
+ SUBDIR += ipsvd
SUBDIR += ipv6calc
SUBDIR += ipv6socket_scrub
SUBDIR += ipw
diff --git a/net/ipsvd/Makefile b/net/ipsvd/Makefile
new file mode 100644
index 000000000000..02821caa378d
--- /dev/null
+++ b/net/ipsvd/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: ipsvd
+# Date created: 01 Apr 2002
+# Whom: Sergei Kolobov <sergei@kolobov.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ipsvd
+PORTVERSION= 0.4.0
+CATEGORIES= net
+MASTER_SITES= http://smarden.org/ipsvd/
+
+MAINTAINER= sergei@kolobov.com
+COMMENT= Internet protocol service daemons
+
+BUILD_DEPENDS= ${LOCALBASE}/lib/libdjbdns.a:${PORTSDIR}/devel/libdjbdns
+
+WRKSRC= ${WRKDIR}/net/${DISTNAME}
+ALL_TARGET= default
+
+MAN5= ipsvd-instruct.5
+MAN7= ipsvd.7
+MAN8= ipsvd-cdb.8 tcpsvd.8 udpsvd.8
+DOCS= package/CHANGES package/COPYING package/README doc/*.html
+
+do-configure:
+ @${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/src/conf-cc
+ @${ECHO_CMD} "${LOCALBASE}/include/libdjbdns" \
+ > ${WRKSRC}/src/conf-djbdnsinc
+ @${ECHO_CMD} "${LOCALBASE}/lib" > ${WRKSRC}/src/conf-djbdnslib
+
+do-build:
+ cd ${WRKSRC} && package/compile
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/command/* ${PREFIX}/sbin
+.for n in 5 7 8
+ ${INSTALL_MAN} ${WRKSRC}/man/*.${n} ${MANPREFIX}/man/man${n}
+.endfor
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/net/ipsvd/distinfo b/net/ipsvd/distinfo
new file mode 100644
index 000000000000..2f6472aacd50
--- /dev/null
+++ b/net/ipsvd/distinfo
@@ -0,0 +1 @@
+MD5 (ipsvd-0.4.0.tar.gz) = 219ea77de14a5b059b8dfce83bf08cc4
diff --git a/net/ipsvd/files/patch-src::tcpsvd.c b/net/ipsvd/files/patch-src::tcpsvd.c
new file mode 100644
index 000000000000..8c8f2846d10c
--- /dev/null
+++ b/net/ipsvd/files/patch-src::tcpsvd.c
@@ -0,0 +1,7 @@
+--- src/tcpsvd.c.orig Tue May 6 00:58:40 2003
++++ src/tcpsvd.c Tue May 6 00:58:59 2003
+@@ -1,3 +1,4 @@
++#include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <unistd.h>
diff --git a/net/ipsvd/pkg-descr b/net/ipsvd/pkg-descr
new file mode 100644
index 000000000000..3dbba038c7c6
--- /dev/null
+++ b/net/ipsvd/pkg-descr
@@ -0,0 +1,22 @@
+ipsvd is a set of internet protocol service daemons.
+It currently includes a TCP/IP service daemon, and a UDP/IP service daemon.
+
+An internet protocol service (ipsv) daemon waits for incoming connections
+on a local socket. On incoming connections, the ipsv daemon conditionally
+runs an arbitrary program with standard input reading from the socket, and
+standard output writing to the socket, that handles the connection.
+Standard error is used for logging.
+
+ipsv daemons can be told to read and follow pre-defined instructions on
+how to handle incoming connections. It's possible to run different
+programs, or to set a different environment, or to deny a connection, or
+to set a per host concurrency limit, depending on the client's address or
+hostname.
+
+Normally the ipsv daemons are run by a supervisor process, such as runsv
+from the runit package, or supervise from the daemontools package.
+
+ipsvd can be used to run services normally run by inetd, xinetd, or tcpserver.
+
+Author: Gerrit Pape <pape@smarden.org>
+WWW: http://smarden.org/ipsvd/
diff --git a/net/ipsvd/pkg-plist b/net/ipsvd/pkg-plist
new file mode 100644
index 000000000000..6c71d8e68e32
--- /dev/null
+++ b/net/ipsvd/pkg-plist
@@ -0,0 +1,16 @@
+sbin/ipsvd-cdb
+sbin/tcpsvd
+sbin/udpsvd
+%%PORTDOCS%%%%DOCSDIR%%/CHANGES
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/examples.html
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%%%DOCSDIR%%/install.html
+%%PORTDOCS%%%%DOCSDIR%%/ipsvd-cdb.8.html
+%%PORTDOCS%%%%DOCSDIR%%/ipsvd-instruct.5.html
+%%PORTDOCS%%%%DOCSDIR%%/ipsvd.7.html
+%%PORTDOCS%%%%DOCSDIR%%/tcpsvd.8.html
+%%PORTDOCS%%%%DOCSDIR%%/udpsvd.8.html
+%%PORTDOCS%%%%DOCSDIR%%/usedietlibc.html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%