pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/whoson Importwhoson-2.03



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0434405c3b38
branches:  trunk
changeset: 481733:0434405c3b38
user:      abs <abs%pkgsrc.org@localhost>
date:      Mon Oct 11 16:51:54 2004 +0000

description:
Importwhoson-2.03
Whoson ("WHO iS ONline") is a proposed Internet protocol that allows
Internet server programs know if a particular (dynamically allocated)
IP address is currently allocated to a known (trusted) user and,
optionally, the identity of the said user.

The protocol could be used by an SMTP Message Transfer System in
conjunction with anti-spam-relaying filters to implement a scheme
similar to the one described here to allow roaming customers use
their "home" SMTP server to submit email while connected from a
"foreign" network.

diffstat:

 net/whoson/DEINSTALL         |   9 ++++
 net/whoson/DESCR             |  10 +++++
 net/whoson/INSTALL           |  10 +++++
 net/whoson/Makefile          |  39 +++++++++++++++++++
 net/whoson/PLIST             |  13 ++++++
 net/whoson/buildlink3.mk     |  18 +++++++++
 net/whoson/distinfo          |   4 ++
 net/whoson/files/whoson.conf |  88 ++++++++++++++++++++++++++++++++++++++++++++
 net/whoson/files/whosond.sh  |  23 +++++++++++
 9 files changed, 214 insertions(+), 0 deletions(-)

diffs (250 lines):

diff -r d20035dc3b25 -r 0434405c3b38 net/whoson/DEINSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/whoson/DEINSTALL      Mon Oct 11 16:51:54 2004 +0000
@@ -0,0 +1,9 @@
+# $NetBSD: DEINSTALL,v 1.1.1.1 2004/10/11 16:51:54 abs Exp $
+
+CHROOTDIR="@CHROOTDIR@"
+
+case ${STAGE} in
+DEINSTALL)
+       ${RMDIR} ${CHROOTDIR}
+       ;;
+esac
diff -r d20035dc3b25 -r 0434405c3b38 net/whoson/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/whoson/DESCR  Mon Oct 11 16:51:54 2004 +0000
@@ -0,0 +1,10 @@
+Whoson ("WHO iS ONline") is a proposed Internet protocol that allows
+Internet server programs know if a particular (dynamically allocated)
+IP address is currently allocated to a known (trusted) user and,
+optionally, the identity of the said user.
+
+The protocol could be used by an SMTP Message Transfer System in
+conjunction with anti-spam-relaying filters to implement a scheme
+similar to the one described here to allow roaming customers use
+their "home" SMTP server to submit email while connected from a
+"foreign" network.
diff -r d20035dc3b25 -r 0434405c3b38 net/whoson/INSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/whoson/INSTALL        Mon Oct 11 16:51:54 2004 +0000
@@ -0,0 +1,10 @@
+# $NetBSD: INSTALL,v 1.1.1.1 2004/10/11 16:51:54 abs Exp $
+
+CHROOTDIR="@CHROOTDIR@"
+
+case ${STAGE} in
+POST-INSTALL)
+       ${MKDIR} ${CHROOTDIR}
+       ${CHMOD} 555 ${CHROOTDIR}
+       ;;
+esac
diff -r d20035dc3b25 -r 0434405c3b38 net/whoson/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/whoson/Makefile       Mon Oct 11 16:51:54 2004 +0000
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/11 16:51:54 abs Exp $
+#
+
+DISTNAME=              whoson-2.03
+CATEGORIES=            net security
+MASTER_SITES=          ${MASTER_SITE_SOURCEFORGE:=whoson/}
+
+MAINTAINER=            abs%NetBSD.org@localhost
+HOMEPAGE=              http://whoson.sf.net/
+COMMENT=               Check if (dynamic) IP address is connected
+
+EXDIR=                 ${PREFIX}/share/examples/whoson
+CONF_FILES=                    ${EXDIR}/whoson.conf ${PKG_SYSCONFDIR}/whoson.conf
+
+USE_BUILDLINK3=                yes
+USE_PKGLOCALEDIR=      yes
+USE_LIBTOOL=           yes
+LIBTOOL_OVERRIDE=      ${WRKSRC}/libtool
+GNU_CONFIGURE=         yes
+WHOSOND_CHROOT?=       ${VARBASE}/chroot/whosond
+CONFIGURE_ARGS+=       --with-config="${PKG_SYSCONFDIR}/whoson.conf"
+
+FILES_SUBST+=          CHROOTDIR=${WHOSOND_CHROOT}
+USE_PKGINSTALL=                yes
+DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
+INSTALL_EXTRA_TMPL+=   ${.CURDIR}/INSTALL
+
+RCD_SCRIPTS=           whosond
+
+# Run this here as whoson's 'install' target will install if not present
+pre-build:
+       ${SED} 's:@@CHROOTDIR@@:${WHOSOND_CHROOT}:g' < ${FILESDIR}/whoson.conf \
+                                               > ${WRKSRC}/whoson.conf
+
+post-install:
+       ${INSTALL_DATA_DIR} ${EXDIR}
+       ${INSTALL_DATA} ${WRKSRC}/whoson.conf ${EXDIR}/whoson.conf
+
+.include "../../mk/bsd.pkg.mk"
diff -r d20035dc3b25 -r 0434405c3b38 net/whoson/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/whoson/PLIST  Mon Oct 11 16:51:54 2004 +0000
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/10/11 16:51:54 abs Exp $
+include/whoson.h
+lib/libwhoson.la
+man/man3/whoson.3
+man/man3/wso_login.3
+man/man3/wso_logout.3
+man/man3/wso_query.3
+man/man3/wso_version.3
+man/man5/whoson.conf.5
+man/man8/whoson.8
+man/man8/whosond.8
+sbin/whoson
+sbin/whosond
diff -r d20035dc3b25 -r 0434405c3b38 net/whoson/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/whoson/buildlink3.mk  Mon Oct 11 16:51:54 2004 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/10/11 16:51:54 abs Exp $
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
+WHOSON_BUILDLINK3_MK:= ${WHOSON_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+=    whoson
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nwhoson}
+BUILDLINK_PACKAGES+=   whoson
+
+.if !empty(WHOSON_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.whoson+=     whoson>=2.03
+BUILDLINK_PKGSRCDIR.whoson?=   ../../net/whoson
+.endif # WHOSON_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}
diff -r d20035dc3b25 -r 0434405c3b38 net/whoson/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/whoson/distinfo       Mon Oct 11 16:51:54 2004 +0000
@@ -0,0 +1,4 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/10/11 16:51:54 abs Exp $
+
+SHA1 (whoson-2.03.tar.gz) = 72fbec1d85f9622028fe9d16be4b262da05ca8f1
+Size (whoson-2.03.tar.gz) = 238133 bytes
diff -r d20035dc3b25 -r 0434405c3b38 net/whoson/files/whoson.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/whoson/files/whoson.conf      Mon Oct 11 16:51:54 2004 +0000
@@ -0,0 +1,88 @@
+# $NetBSD: whoson.conf,v 1.1.1.1 2004/10/11 16:51:54 abs Exp $
+# whoson server and client sample configuration file
+
+# Configuration entry is: "client" or "server" starting from position 1,
+# entry type (protocol) (must be in the same line!), and arbitrary
+# protocol-specific parameters.  Lines starting with whitespace
+# are continuation lines.  There is no quoting, escaping etc.
+
+# ==================== CLIENT SECTION ==========================
+
+# API functions try these protocols/addresses in order:
+
+# Connect to the server running on the same machine via a unix domain
+# stream socket.  "port" is the name of the socket.
+
+client unix
+       port=/var/run/whoson.s
+
+# Connect to the server running on the same machine via a unix domain
+# datagram socket.  "port" is the name of the socket.
+
+# client       unixd
+#      port=/var/run/whoson.d
+#      maxtries=5
+#      inittimeout=100000
+
+# Connect to the server over UDP datagram protocol.  Recommended method.
+# "address" is the IP address of the server, "port" is the port number.
+# ATTENTION! No DNS names allowed.  This is intentional.
+# "maxtries" is number of retries to contact the server.
+# "inittimeout" is initial timeout to wait for responce, in microseconds.
+# Timeout is multiplied by 2 on every retry.  Default maxtries is 5,
+# default inittimeout is 100000.
+
+# client       udp address=127.0.0.1
+#      port=9876
+#      maxtries=5
+#      inittimeout=100000
+
+# Connect to the server over the TCP protocol.
+
+# client       tcp port=9876
+#      address=127.0.0.1
+
+# There may be any number of any type entries.
+# Stream protocols (tcp and unix) allow for persistent connections
+# (if the library is built not MT-safe, i.e. without -D_REENTRANT)
+
+# ==================== SERVER SECTION ==========================
+
+# Server listens on all of these ports:
+
+# tcp and unix "keepalive" paramter is the number of seconds to keep
+# connection established if the client does not drop it.  Default is
+# unlimited.  "port" is the number (or name for unix domain) of the
+# port.  "allow" and "deny" specify per-address access restriction
+# for Internet protocols.  By default, access is denied.  The value
+# of these keywords is <netpattern>/<bits>.  Of matching patterns,
+# one with greater value of bits is applied.  "listenq" is  maximum
+# listen backlog size
+
+server unix port=/var/run/whoson.s
+       listenq=5
+
+# server       tcp
+#      port=9876
+#      listenq=5
+#      keepalive=150
+#      allow=123.45.67.0/24            # Allow the the whole network
+#      deny=123.45.67.89/32            # except these ..
+#      deny=123.45.67.90/32            #               .. two machines
+# server       unix port=/var/run/whoson.s keepalive=150
+#      listenq=5
+# server       unixd port=/var/run/whoson.d
+# server       udp port=9876
+#      allow=0.0.0.0/0                 # open to the world.  Don't do that!
+
+# "global" pseudo server that does not listen; it is only used to set
+# global configuration parameters.  "ttl" - how many seconds
+# inserted entries will live in the database if not deleted explicitly.
+
+server global ttl=1800                 # 30 minutes
+       chroot=@@CHROOTDIR@@            # chdir and chroot here
+       group=nobody                    # change group id and
+       user=nobody                     # user id after bind()ing
+       cachesize=100000                # max. number of entries to keep
+
+# end of config
diff -r d20035dc3b25 -r 0434405c3b38 net/whoson/files/whosond.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/whoson/files/whosond.sh       Mon Oct 11 16:51:54 2004 +0000
@@ -0,0 +1,23 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: whosond.sh,v 1.1.1.1 2004/10/11 16:51:54 abs Exp $
+#
+# PROVIDE: whosond
+# REQUIRE: NETWORK
+#
+
+if [ -f /etc/rc.subr ]; then
+       . /etc/rc.subr
+fi
+
+name="whosond"
+rcvar="${name}"
+command="@PREFIX@/sbin/whosond"
+
+if [ -f /etc/rc.subr ]; then
+       load_rc_config "$name"
+       run_rc_command "$1"
+else
+       printf ' whosond'
+       ${command} ${whosond_flags} ${command_args}
+fi



Home | Main Index | Thread Index | Old Index