From 2dadebc2fd1de2b644fe364274bf11c57b131d9e Mon Sep 17 00:00:00 2001 From: xtraeme Date: Tue, 21 Oct 2003 20:55:42 +0000 Subject: Updated to 1.18. Closes PR pkg/22735. Changelog: latd (1.17-1) unstable; urgency=low * Add support for a MOPRC_INTERFACE env variable. * Fix bug in the lastest retransmit code that screwed up queued connections rather badly. * Don't show status messages to /dev/lat ports * moprc is now a C++ program that uses the LATinterfaces class. * llogin -p only locks devices if liblockdev is found * Porting work for *BSD and Darwin. HUGE thanks to Matthew Fredette of NetBSD for all the bpf work. * Use autoconf to configure and build. Again Matthew Fredette did most of the work for this, but I added the Linux bits. latd (1.16-1) unstable; urgency=low * Don't use an IP socket for finding interfaces. So now you can use LAT (& moprc) with a kernel that doesn't have IP. * Fix latcp man page (-J and -j were wrong way round) * llogin -L disables locking when using -p * latd now expires services if it doesn't receive HELLOs * Expand escape sequences in /etc/issue.net or /etc/issue.lat * Fix crash on queued connections referencing freed memory. * moprc now ignores duplicate messages it receives. This fixes odd behaviour with some Emulex targets * Put a timeout on CONNECT and COMMAND messages so we can resend them if we get no reply. * Check connection IDs more carefully. latd (1.15-1) unstable; urgency=low * More DS90L+ fixes (keepalive message format) * Fix iostreams so they produce the correct output in gcc 3.0 & 2.95. Now I know why people really hate iostreams. * Use getloadavg() rather than /proc to get load average. * Close all FDs before forking server processes. * Always send an ACK for a packet with data in it. * llogin uses lock files for device connections latd (1.14-1) unstable; urgency=low * gcc-3.0 compilation fixes in the new bits * Rewritten ethernet flow control * Increase moprc timeout a little. * Don't try to process zero-length packets * Include lat.html documentation * Tested on DECserver 700 * Send "no more slots on circuit" message when closing a connection for that reason. Fixes reconnection on DECserver 90L+ pkgsrc changes: * Fix building when using gcc3 * Use the bsd.pkg.install.mk framework to install the configuration file into the right place. --- net/latd/Makefile | 14 +++++++++++--- net/latd/PLIST | 13 +++++++------ net/latd/distinfo | 10 +++++++--- net/latd/patches/patch-aa | 12 ++++++++++++ net/latd/patches/patch-ab | 12 ++++++++++++ net/latd/patches/patch-ac | 20 ++++++++++++++++++++ net/latd/patches/patch-ad | 18 ++++++++++++++++++ 7 files changed, 87 insertions(+), 12 deletions(-) create mode 100644 net/latd/patches/patch-aa create mode 100644 net/latd/patches/patch-ab create mode 100644 net/latd/patches/patch-ac create mode 100644 net/latd/patches/patch-ad diff --git a/net/latd/Makefile b/net/latd/Makefile index 7fb9564b20c..93a79047cba 100644 --- a/net/latd/Makefile +++ b/net/latd/Makefile @@ -1,13 +1,21 @@ -# $NetBSD: Makefile,v 1.1.1.1 2002/03/12 22:19:18 fredette Exp $ +# $NetBSD: Makefile,v 1.2 2003/10/21 20:55:42 xtraeme Exp $ +# -DISTNAME= latd-1.13.mhf1 +DISTNAME= latd-1.18 CATEGORIES= net -MASTER_SITES= http://theory.lcs.mit.edu/~fredette/latd/ +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=linux-decnet/} MAINTAINER= fredette@theory.lcs.mit.edu HOMEPAGE= http://theory.lcs.mit.edu/~fredette/latd/index.html COMMENT= The linux-decnet project's LAT protocol suite +USE_BUILDLINK2= yes +USE_PKGINSTALL= yes GNU_CONFIGURE= yes +CPPFLAGS+= -DPREFIX=\"\\\"${PREFIX}\\\"\" + +EGDIR= ${PREFIX}/share/examples/latd +CONF_FILES= ${EGDIR}/latd.conf ${PKG_SYSCONFDIR}/latd.conf + .include "../../mk/bsd.pkg.mk" diff --git a/net/latd/PLIST b/net/latd/PLIST index 33e757c2032..d5a081fee3e 100644 --- a/net/latd/PLIST +++ b/net/latd/PLIST @@ -1,11 +1,12 @@ -@comment $NetBSD: PLIST,v 1.1.1.1 2002/03/12 22:19:18 fredette Exp $ -sbin/latd -sbin/latcp -sbin/moprc +@comment $NetBSD: PLIST,v 1.2 2003/10/21 20:55:42 xtraeme Exp $ bin/llogin -etc/latd.conf man/man1/llogin.1 man/man5/latd.conf.5 -man/man8/latd.8 man/man8/latcp.8 +man/man8/latd.8 man/man8/moprc.8 +sbin/latcp +sbin/latd +sbin/moprc +share/examples/latd/latd.conf +@dirrm share/examples/latd diff --git a/net/latd/distinfo b/net/latd/distinfo index 4e1f3365466..0b7b5095b37 100644 --- a/net/latd/distinfo +++ b/net/latd/distinfo @@ -1,4 +1,8 @@ -$NetBSD: distinfo,v 1.1.1.1 2002/03/12 22:19:18 fredette Exp $ +$NetBSD: distinfo,v 1.2 2003/10/21 20:55:42 xtraeme Exp $ -SHA1 (latd-1.13.mhf1.tar.gz) = 76e32b56f3c9541a2ea580349cc49c093a515201 -Size (latd-1.13.mhf1.tar.gz) = 103017 bytes +SHA1 (latd-1.18.tar.gz) = a7cecdb97507f485e726ea4c2fef0a59ad3adbae +Size (latd-1.18.tar.gz) = 233882 bytes +SHA1 (patch-aa) = 70e2a543f471c9a818bfbe138137920d605d5aa9 +SHA1 (patch-ab) = 6d62fc224d383ca20758bc9a76a789e5f4b965e5 +SHA1 (patch-ac) = adbe7b78bce30b6fbf540a18922ddb073cfccf0c +SHA1 (patch-ad) = f606a87bf3dff0571db3ededc6889e31f2012397 diff --git a/net/latd/patches/patch-aa b/net/latd/patches/patch-aa new file mode 100644 index 00000000000..63b9f565c8e --- /dev/null +++ b/net/latd/patches/patch-aa @@ -0,0 +1,12 @@ +$NetBSD: patch-aa,v 1.1 2003/10/21 20:55:42 xtraeme Exp $ + +--- clientsession.cc.orig 2003-10-20 19:12:16.000000000 +0200 ++++ clientsession.cc 2003-10-20 19:12:36.000000000 +0200 +@@ -23,6 +23,7 @@ + #include + #include + #include ++#include + + #include "lat.h" + #include "utils.h" diff --git a/net/latd/patches/patch-ab b/net/latd/patches/patch-ab new file mode 100644 index 00000000000..2384b65049b --- /dev/null +++ b/net/latd/patches/patch-ab @@ -0,0 +1,12 @@ +$NetBSD: patch-ab,v 1.1 2003/10/21 20:55:42 xtraeme Exp $ + +--- interfaces-bpf.cc.orig 2003-10-20 19:13:38.000000000 +0200 ++++ interfaces-bpf.cc 2003-10-20 19:13:52.000000000 +0200 +@@ -15,6 +15,7 @@ + GNU General Public License for more details. + ******************************************************************************/ + ++#include + #include + #include + #include diff --git a/net/latd/patches/patch-ac b/net/latd/patches/patch-ac new file mode 100644 index 00000000000..25cc883bedb --- /dev/null +++ b/net/latd/patches/patch-ac @@ -0,0 +1,20 @@ +$NetBSD: patch-ac,v 1.1 2003/10/21 20:55:42 xtraeme Exp $ + +--- Makefile.in.orig 2003-10-20 19:18:37.000000000 +0200 ++++ Makefile.in 2003-10-20 19:20:20.000000000 +0200 +@@ -508,12 +508,12 @@ + sysconfDATA_INSTALL = $(INSTALL_DATA) + install-sysconfDATA: $(sysconf_DATA) + @$(NORMAL_INSTALL) +- $(mkinstalldirs) $(DESTDIR)$(sysconfdir) ++ $(mkinstalldirs) $(PREFIX)/share/examples/latd + @list='$(sysconf_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ +- echo " $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f"; \ +- $(sysconfDATA_INSTALL) $$d$$p $(DESTDIR)$(sysconfdir)/$$f; \ ++ echo " $(sysconfDATA_INSTALL) $$d$$p $(PREFIX)/share/examples/latd/$$f"; \ ++ $(sysconfDATA_INSTALL) $$d$$p $(PREFIX)/share/examples/latd/$$f; \ + done + + uninstall-sysconfDATA: diff --git a/net/latd/patches/patch-ad b/net/latd/patches/patch-ad new file mode 100644 index 00000000000..38171587274 --- /dev/null +++ b/net/latd/patches/patch-ad @@ -0,0 +1,18 @@ +$NetBSD: patch-ad,v 1.1 2003/10/21 20:55:42 xtraeme Exp $ + +--- latcp.cc.orig 2003-10-20 19:32:10.000000000 +0200 ++++ latcp.cc 2003-10-20 19:32:39.000000000 +0200 +@@ -773,10 +773,10 @@ + latd_bin = "/usr/sbin/latd"; + latd_path = "/usr/sbin"; + } +- else if (!stat("/usr/local/sbin/latd", &st)) ++ else if (!stat("PREFIX/sbin/latd", &st)) + { +- latd_bin = "/usr/local/sbin/latd"; +- latd_path = "/usr/local/sbin"; ++ latd_bin = "PREFIX/sbin/latd"; ++ latd_path = "PREFIX/sbin"; + } + + // Did we find it? -- cgit v1.2.3