summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>1998-07-16 17:47:14 +0000
committertv <tv@pkgsrc.org>1998-07-16 17:47:14 +0000
commit7e3b225bc1323505681610bce156729cd41f6d04 (patch)
tree475ed4ac22d8a5f94eb861e7a2d4192c23430390 /comms
parent128ef47f19735cf42a41c39ab923d87fb6e53be1 (diff)
downloadpkgsrc-7e3b225bc1323505681610bce156729cd41f6d04.tar.gz
Add fidogate-4.2.9, a FidoNet (FTN) <-> Internet mail and news gateway.
Add to directory Makefile, but do not enablefor batch builds due to the limited useability of this pkg in the general NetBSD workplace.
Diffstat (limited to 'comms')
-rw-r--r--comms/Makefile3
-rw-r--r--comms/fidogate/Makefile42
-rw-r--r--comms/fidogate/files/md51
-rw-r--r--comms/fidogate/patches/patch-aa104
-rw-r--r--comms/fidogate/patches/patch-ab36
-rw-r--r--comms/fidogate/patches/patch-ac40
-rw-r--r--comms/fidogate/patches/patch-ad10
-rw-r--r--comms/fidogate/patches/patch-ae21
-rw-r--r--comms/fidogate/patches/patch-af19
-rw-r--r--comms/fidogate/patches/patch-ag13
-rw-r--r--comms/fidogate/patches/patch-ah35
-rw-r--r--comms/fidogate/patches/patch-ai29
-rw-r--r--comms/fidogate/patches/patch-aj19
-rw-r--r--comms/fidogate/patches/patch-ak34
-rw-r--r--comms/fidogate/pkg/COMMENT1
-rw-r--r--comms/fidogate/pkg/DEINSTALL17
-rw-r--r--comms/fidogate/pkg/DESCR11
-rw-r--r--comms/fidogate/pkg/PLIST73
18 files changed, 507 insertions, 1 deletions
diff --git a/comms/Makefile b/comms/Makefile
index b922a25d6ac..f4b6e19ee1b 100644
--- a/comms/Makefile
+++ b/comms/Makefile
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.8 1998/04/15 10:38:16 agc Exp $
+# $NetBSD: Makefile,v 1.9 1998/07/16 17:47:14 tv Exp $
# FreeBSD Id: Makefile,v 1.26 1997/10/13 04:41:06 max Exp
#
# SUBDIR += bpl+
# SUBDIR += ecu
+# SUBDIR += fidogate # limited useability
# SUBDIR += hylafax
SUBDIR += kermit
SUBDIR += lrzsz
diff --git a/comms/fidogate/Makefile b/comms/fidogate/Makefile
new file mode 100644
index 00000000000..d347c8f3174
--- /dev/null
+++ b/comms/fidogate/Makefile
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.1 1998/07/16 17:47:14 tv Exp $
+#
+
+DISTNAME= fidogate-4.2.9
+CATEGORIES= comms
+MASTER_SITES= ftp://ftp.fido.de/pub/fidogate/
+
+MAINTAINER= tv@netbsd.org # aka "Todd Vierling" @ 1:396/1.5
+
+BUILD_DEPENDS= ${PREFIX}/bin/libtool:../../devel/libtool
+
+USE_GMAKE= yes
+USE_GTEXINFO= yes
+USE_PERL5= yes
+MAKE_ENV= LIBTOOL=${PREFIX}/bin/libtool
+WRKSRC= ${WRKDIR}/fidogate
+
+pre-install:
+ ${INSTALL_DATA_DIR} -m 0755 ${PREFIX}/lib/fidogate
+
+post-install:
+ ${INSTALL_DATA_DIR} \
+ ${PREFIX}/share/fidogate \
+ ${PREFIX}/share/fidogate/inn \
+ ${PREFIX}/share/fidogate/nodelist \
+ ${PREFIX}/share/fidogate/scripts \
+ ${PREFIX}/share/fidogate/sendmail
+ cd ${WRKSRC}/scripts/inn && \
+ ${INSTALL_DATA} send-ffx send-fidogate viaffx ${PREFIX}/share/fidogate/inn/
+ cd ${WRKSRC}/scripts/nodelist && \
+ ${INSTALL_DATA} latest nl-2hosts nl-2routing nl-autoupd \
+ nl-check nl-del nl-diff nl-html nl-isdn \
+ nl-print template.html ${PREFIX}/share/fidogate/nodelist/
+ cd ${WRKSRC}/scripts/outbound && \
+ ${INSTALL_DATA} out-freq out-ls out-manip out-rm0 out-rmbsy ${PREFIX}/share/fidogate/scripts/
+ cd ${WRKSRC}/scripts/run && \
+ ${INSTALL_DATA} run1 run2 runffx runpoll ${PREFIX}/share/fidogate/scripts/
+ cd ${WRKSRC}/sendmail/mailer && \
+ ${INSTALL_DATA} ffx.m4 ftn.m4 ${PREFIX}/share/fidogate/sendmail/
+ ${INSTALL_DATA} ${WRKSRC}/scripts/maintenance/rc.fidogate ${PREFIX}/etc/rc.d/fidogate.sh
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/comms/fidogate/files/md5 b/comms/fidogate/files/md5
new file mode 100644
index 00000000000..14877b456ff
--- /dev/null
+++ b/comms/fidogate/files/md5
@@ -0,0 +1 @@
+MD5 (fidogate-4.2.9.tar.gz) = adc2ab02a57e3f9b878e2bdd192bb506
diff --git a/comms/fidogate/patches/patch-aa b/comms/fidogate/patches/patch-aa
new file mode 100644
index 00000000000..c4a3568b49e
--- /dev/null
+++ b/comms/fidogate/patches/patch-aa
@@ -0,0 +1,104 @@
+--- config.make.orig Sat Oct 11 17:24:15 1997
++++ config.make Thu Jul 16 11:07:46 1998
+@@ -14,35 +14,35 @@
+ # OS2 = OS/2 with EMX GCC
+
+ # FIDOGATE Directories
+-BINDIR = /usr/local/bin
+-LIBDIR = /usr/local/lib/fidogate
++BINDIR = ${PREFIX}/bin
++LIBDIR = ${PREFIX}/lib/fidogate
+ SPOOLDIR = /var/spool/fido
+ LOGDIR = /var/log/fido
+
+ # Doc directories
+-INFODIR = /usr/local/info
++INFODIR = ${PREFIX}/info
+ HTMLDIR = /home/mj/public_html/fidogate
+
+ # Outbound *base* directory, i.e. outbound is OUTBOUND/out.xxx
+-OUTBOUND = /var/spool/bt
++OUTBOUND = /var/spool/fido/bt
+ # Normal (i.e. insecure) inbound
+-INBOUND = /var/spool/bt/in
++INBOUND = /var/spool/fido/bt/in
+ # Protected inbound
+-PINBOUND = /var/spool/bt/pin
++PINBOUND = /var/spool/fido/bt/pin
+ # Inbound for uuencoded mails (used by recvuu)
+-UUINBOUND = /var/spool/bt/uuin
++UUINBOUND = /var/spool/fido/bt/uuin
+
+ # INN directories
+-NEWSETCDIR = /etc/news
++NEWSETCDIR = ${PREFIX}/etc/news
+ NEWSVARDIR = /var/lib/news
+-NEWSLIBDIR = /usr/lib/news
++NEWSLIBDIR = ${PREFIX}/lib/news
+ NEWSSPOOLDIR = /var/spool/news
+
+ # Ifmail directory
+-IFMAILDIR = /usr/local/lib/ifmail
++IFMAILDIR = ${PREFIX}/lib/ifmail
+
+ # perl
+-PERL = /usr/bin/perl
++PERL = ${PREFIX}/bin/perl
+
+ # OS2: comment out
+ SHELL = /bin/sh
+@@ -57,20 +57,20 @@
+ # install permissions
+ PERM_PROG = 755
+ PERM_DATA = 644
+- PERM_SETUID = 4755
++ PERM_SETUID = 4111
+ PERM_DIR = 755
+
+ # C compiler / flags
+ CC = gcc
+-# YACC = yacc # Use yacc, not bison
+- YACC = bison -y
++ YACC = yacc # Use yacc, not bison
++# YACC = bison -y
+ AR = ar
+ # RANLIB = @echo >/dev/null # No ranlib
+ RANLIB = ranlib
+ # RANLIB = ar s # OS2
+
+-# DEBUG = -O2
+- DEBUG = -g
++ DEBUG = -O2
++# DEBUG = -g
+
+ INCLUDE = -I$(TOPDIR) -I$(TOPDIR)/src/include
+
+@@ -87,7 +87,7 @@
+ # LFLAGS = $(DEBUG) -L$(TOPDIR)/src/common -posix
+ # OS2
+ # LFLAGS = -Zexe $(DEBUG) -L$(TOPDIR)/src/common
+- LFLAGS = $(DEBUG) -L$(TOPDIR)/src/common
++ LFLAGS = $(DEBUG) -L$(TOPDIR)/src/common/.libs
+
+ # ISC 3.x
+ # LIBS = -lfidogate -linet -lPW -lcposix
+@@ -99,13 +99,12 @@
+ # MSDOS, OS2, WIN32
+ # EXE = .exe
+ EXE =
+- INSTALL_PROG = $(INSTALL) -c -g $(GROUP) -o $(OWNER) -m $(PERM_PROG)
+- INSTALL_DATA = $(INSTALL) -c -g $(GROUP) -o $(OWNER) -m $(PERM_DATA)
+- INSTALL_SETUID = $(INSTALL) -c -g $(GROUP) -o $(OWNER) -m $(PERM_SETUID)
+- INSTALL_DIR = $(INSTALL) -g $(GROUP) -o $(OWNER) -m $(PERM_DIR) -d
+-# extra prefix for installation
+- PREFIX =
++ INSTALL_PROG = $(BSD_INSTALL_PROGRAM)
++ INSTALL_SCRIPT = $(BSD_INSTALL_SCRIPT)
++ INSTALL_DATA = $(BSD_INSTALL_DATA)
++ INSTALL_SETUID = $(BSD_INSTALL_PROGRAM) -g $(GROUP) -o $(OWNER) -m $(PERM_SETUID)
++ INSTALL_DIR = $(BSD_INSTALL_DATA_DIR) -g $(GROUP) -o $(OWNER) -m $(PERM_DIR)
+
+ # library name
+ # LIB = fidogate.a # OS2
+- LIB = libfidogate.a
++ LIB = libfidogate.la
diff --git a/comms/fidogate/patches/patch-ab b/comms/fidogate/patches/patch-ab
new file mode 100644
index 00000000000..10b67d8bc21
--- /dev/null
+++ b/comms/fidogate/patches/patch-ab
@@ -0,0 +1,36 @@
+--- src/common/Makefile.orig Wed Jul 15 22:33:40 1998
++++ src/common/Makefile Wed Jul 15 22:55:24 1998
+@@ -15,6 +15,7 @@
+ include $(TOPDIR)/config.make
+ include $(TOPDIR)/rules.make
+
++CC = $(LIBTOOL) --mode=compile gcc
+
+ OBJS = address.o aliases.o areas.o areasbbs.o binkley.o\
+ bounce.o bufstring.o charset.o config.o crc16.o crc32.o\
+@@ -25,14 +26,11 @@
+ sequencer.o textlist.o version.o wildmat.o\
+ xalloc.o xstrtok.o mime.o tick.o parsenode.o flo.o
+
+-LIBOBJS = $(OBJS:%=$(LIB)(%))
+-
+-
+ all: $(LIB)
+
+
+-$(LIB): $(LIBOBJS)
+- $(RANLIB) $(LIB)
++$(LIB): $(OBJS)
++ $(LIBTOOL) --mode=link gcc -o $(LIB) $(OBJS:.o=.lo) -rpath $(PREFIX)/lib -version-info 0:0
+
+ parsedate.c: parsedate.y
+ @echo "expect 6 shift/reduce conflicts"
+@@ -40,6 +38,8 @@
+ mv y.tab.c parsedate.c
+
+ install:
++ $(LIBTOOL) --mode=install $(INSTALL_DATA) $(LIB) $(PREFIX)/lib
++ rm -f $(PREFIX)/lib/libfidogate.a
+
+ clean veryclean:
+ rm -f $(PROGS) $(LIB)
diff --git a/comms/fidogate/patches/patch-ac b/comms/fidogate/patches/patch-ac
new file mode 100644
index 00000000000..94b7304473f
--- /dev/null
+++ b/comms/fidogate/patches/patch-ac
@@ -0,0 +1,40 @@
+--- config.h.orig Thu Jul 16 09:33:56 1998
++++ config.h Thu Jul 16 09:39:23 1998
+@@ -92,7 +92,7 @@
+ /***** rfc2ftn configuration ************************************************/
+
+ /** Passthru operation for NetMail: FIDO->Internet->FIDO **/
+-/* #define PASSTHRU_NETMAIL */
++#define PASSTHRU_NETMAIL
+ /** Passthru operation for EchoMail: FIDO->Internet->FIDO **/
+ /*
+ * Implemented, but requires ftntoss run after rfc2ftn to sort SEEN-BY
+@@ -153,20 +153,20 @@
+ * "Received: by NeXT.Mailer"
+ */
+
+-/* Standard config: POSIX UNIX */
++#ifdef __NetBSD__
+ # define DO_HAVE_FCNTL_LOCK
+-# undef DO_HAVE_GETTIMEOFDAY
+-# undef DO_HAVE_TM_GMTOFF
+-# undef DO_HAVE_SYSEXITS_H
+-# undef DO_HAVE_TM_ZONE
+-# define DO_HAVE_STRFTIME
++# define DO_HAVE_GETTIMEOFDAY
++# define DO_HAVE_TM_GMTOFF
++# define DO_HAVE_SYSEXITS_H
++# define DO_HAVE_TM_ZONE
++# undef DO_HAVE_STRFTIME
+ # undef DO_HAVE_TZNAME
+-# undef DO_HAVE_STRCASECMP
++# define DO_HAVE_STRCASECMP
+ # undef DO_HAVE_STRICMP
+ # define DO_HAVE_STRERROR
+ # undef DO_BINARY
+ # undef DO_DOSIFY
+-
++#endif
+
+ #ifdef __sun__ /* SUNOS 4.1.x, GNU gcc */
+ # define DO_HAVE_FCNTL_LOCK
diff --git a/comms/fidogate/patches/patch-ad b/comms/fidogate/patches/patch-ad
new file mode 100644
index 00000000000..c5bc660e9a0
--- /dev/null
+++ b/comms/fidogate/patches/patch-ad
@@ -0,0 +1,10 @@
+--- subst.pl.orig Thu Jul 16 10:20:52 1998
++++ subst.pl Thu Jul 16 10:22:04 1998
+@@ -39,6 +39,7 @@
+ for $s (keys %macros) {
+ $r = $macros{$s};
+ s/<$s>/$r/g;
++ s/\$\{PREFIX\}/$ENV{'PREFIX'}/g;
+ }
+
+ print;
diff --git a/comms/fidogate/patches/patch-ae b/comms/fidogate/patches/patch-ae
new file mode 100644
index 00000000000..97b77baef41
--- /dev/null
+++ b/comms/fidogate/patches/patch-ae
@@ -0,0 +1,21 @@
+--- src/ffx/Makefile.orig Thu Jul 16 10:48:36 1998
++++ src/ffx/Makefile Thu Jul 16 10:52:46 1998
+@@ -27,12 +27,12 @@
+
+
+ install:
+- $(INSTALL_SETUID) ffx$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ffxqt$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ffxbatch$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ffxmail $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ffxrmail $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ffxrun $(PREFIX)$(LIBDIR)
++ $(INSTALL_SETUID) ffx$(EXE) $(LIBDIR)
++ $(INSTALL_PROG) ffxqt$(EXE) $(LIBDIR)
++ $(INSTALL_PROG) ffxbatch$(EXE) $(LIBDIR)
++ $(INSTALL_SCRIPT) ffxmail $(LIBDIR)
++ $(INSTALL_SCRIPT) ffxrmail $(LIBDIR)
++ $(INSTALL_SCRIPT) ffxrun $(LIBDIR)
+
+
+ clean veryclean:
diff --git a/comms/fidogate/patches/patch-af b/comms/fidogate/patches/patch-af
new file mode 100644
index 00000000000..0618a37caae
--- /dev/null
+++ b/comms/fidogate/patches/patch-af
@@ -0,0 +1,19 @@
+--- src/gate/Makefile.orig Thu Jul 16 10:49:22 1998
++++ src/gate/Makefile Thu Jul 16 10:53:10 1998
+@@ -27,11 +27,11 @@
+
+
+ install:
+- $(INSTALL_SETUID) rfc2ftn$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ftn2rfc$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ftnin$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ftninpost $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ftninrecomb $(PREFIX)$(LIBDIR)
++ $(INSTALL_SETUID) rfc2ftn$(EXE) $(LIBDIR)
++ $(INSTALL_PROG) ftn2rfc$(EXE) $(LIBDIR)
++ $(INSTALL_PROG) ftnin$(EXE) $(LIBDIR)
++ $(INSTALL_SCRIPT) ftninpost $(LIBDIR)
++ $(INSTALL_SCRIPT) ftninrecomb $(LIBDIR)
+
+
+ clean veryclean:
diff --git a/comms/fidogate/patches/patch-ag b/comms/fidogate/patches/patch-ag
new file mode 100644
index 00000000000..c5668031922
--- /dev/null
+++ b/comms/fidogate/patches/patch-ag
@@ -0,0 +1,13 @@
+--- src/tick/Makefile.orig Thu Jul 16 10:49:56 1998
++++ src/tick/Makefile Thu Jul 16 10:50:07 1998
+@@ -26,8 +26,8 @@
+
+
+ install:
+- $(INSTALL_PROG) ftntick$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ftnhatch$(EXE) $(PREFIX)$(LIBDIR)
++ $(INSTALL_PROG) ftntick$(EXE) $(LIBDIR)
++ $(INSTALL_PROG) ftnhatch$(EXE) $(LIBDIR)
+
+
+ clean veryclean:
diff --git a/comms/fidogate/patches/patch-ah b/comms/fidogate/patches/patch-ah
new file mode 100644
index 00000000000..9a32c62d9a8
--- /dev/null
+++ b/comms/fidogate/patches/patch-ah
@@ -0,0 +1,35 @@
+--- src/toss/Makefile.orig Thu Jul 16 10:50:11 1998
++++ src/toss/Makefile Thu Jul 16 10:54:04 1998
+@@ -42,19 +42,19 @@
+
+
+ install:
+- $(INSTALL_PROG) ftn2ftn$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ftntoss$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ftnexpire$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ftnroute$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ftnpack$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) runtoss $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) rununpack $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) magic $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) runin $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) runout $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) rundf $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ftnaf$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_SETUID) ftnafmail$(EXE) $(PREFIX)$(LIBDIR)
++ $(INSTALL_PROG) ftn2ftn$(EXE) $(LIBDIR)
++ $(INSTALL_PROG) ftntoss$(EXE) $(LIBDIR)
++ $(INSTALL_PROG) ftnexpire$(EXE) $(LIBDIR)
++ $(INSTALL_PROG) ftnroute$(EXE) $(LIBDIR)
++ $(INSTALL_PROG) ftnpack$(EXE) $(LIBDIR)
++ $(INSTALL_SCRIPT) runtoss $(LIBDIR)
++ $(INSTALL_SCRIPT) rununpack $(LIBDIR)
++ $(INSTALL_SCRIPT) magic $(LIBDIR)
++ $(INSTALL_SCRIPT) runin $(LIBDIR)
++ $(INSTALL_SCRIPT) runout $(LIBDIR)
++ $(INSTALL_SCRIPT) rundf $(LIBDIR)
++ $(INSTALL_PROG) ftnaf$(EXE) $(LIBDIR)
++ $(INSTALL_SETUID) ftnafmail$(EXE) $(LIBDIR)
+
+
+
diff --git a/comms/fidogate/patches/patch-ai b/comms/fidogate/patches/patch-ai
new file mode 100644
index 00000000000..822fe80ba20
--- /dev/null
+++ b/comms/fidogate/patches/patch-ai
@@ -0,0 +1,29 @@
+--- src/util/Makefile.orig Thu Jul 16 10:51:19 1998
++++ src/util/Makefile Thu Jul 16 10:57:59 1998
+@@ -34,16 +34,16 @@
+
+
+ install:
+- $(INSTALL_PROG) ftnbsy$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ftnconfig$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ftnseq$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ftnfattach$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ftnflo$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) sumcrc$(EXE) $(PREFIX)$(BINDIR)
+- $(INSTALL_PROG) ftnlock$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) ftnlog$(EXE) $(PREFIX)$(LIBDIR)
+- $(INSTALL_PROG) pktdebug$(EXE) $(PREFIX)$(BINDIR)
+- $(INSTALL_PROG) pktmore $(PREFIX)$(BINDIR)
++ $(INSTALL_PROG) ftnbsy$(EXE) $(LIBDIR)
++ $(INSTALL_PROG) ftnconfig$(EXE) $(LIBDIR)
++ $(INSTALL_PROG) ftnseq$(EXE) $(LIBDIR)
++ $(INSTALL_PROG) ftnfattach$(EXE) $(LIBDIR)
++ $(INSTALL_PROG) ftnflo$(EXE) $(LIBDIR)
++ $(INSTALL_PROG) sumcrc$(EXE) $(BINDIR)
++ $(INSTALL_PROG) ftnlock$(EXE) $(LIBDIR)
++ $(INSTALL_PROG) ftnlog$(EXE) $(LIBDIR)
++ $(INSTALL_PROG) pktdebug$(EXE) $(BINDIR)
++ $(INSTALL_SCRIPT) pktmore $(BINDIR)
+
+
+ clean veryclean:
diff --git a/comms/fidogate/patches/patch-aj b/comms/fidogate/patches/patch-aj
new file mode 100644
index 00000000000..f92fd118988
--- /dev/null
+++ b/comms/fidogate/patches/patch-aj
@@ -0,0 +1,19 @@
+--- doc/Makefile.orig Thu Jul 16 10:59:42 1998
++++ doc/Makefile Thu Jul 16 11:04:20 1998
+@@ -14,7 +14,7 @@
+
+ all:: fidogate.info fidogate.txt
+
+-all clean veryclean check depend install::
++all clean veryclean check depend::
+ for d in $(SUBDIRS); do \
+ if [ -f $$d/Makefile ]; then $(MAKE) -C $$d $@ || exit 1; fi; \
+ done
+@@ -47,6 +47,6 @@
+ check::
+
+ install::
+- $(INSTALL_DATA) fidogate.info* $(PREFIX)$(INFODIR)
++ $(INSTALL_DATA) fidogate.info* $(INFODIR)
+
+ depend::
diff --git a/comms/fidogate/patches/patch-ak b/comms/fidogate/patches/patch-ak
new file mode 100644
index 00000000000..fd5a8ccd38b
--- /dev/null
+++ b/comms/fidogate/patches/patch-ak
@@ -0,0 +1,34 @@
+--- Makefile.orig Thu Jul 16 11:08:29 1998
++++ Makefile Thu Jul 16 11:09:38 1998
+@@ -11,7 +11,7 @@
+
+ SUBDIRS = src scripts test doc sendmail
+
+-INSTALLDIRS = $(LIBDIR) \
++INSTALLDIRS = \
+ $(SPOOLDIR) $(SPOOLDIR)/in \
+ $(SPOOLDIR)/in/tmpmail $(SPOOLDIR)/in/tmpnews \
+ $(SPOOLDIR)/in/bad $(SPOOLDIR)/insecure \
+@@ -21,8 +21,7 @@
+ $(SPOOLDIR)/toss $(SPOOLDIR)/toss/in \
+ $(SPOOLDIR)/toss/bad $(SPOOLDIR)/toss/tmp \
+ $(SPOOLDIR)/toss/out $(SPOOLDIR)/toss/pack $(LOGDIR) \
+- $(OUTBOUND) $(INBOUND) $(PINBOUND) $(UUINBOUND) \
+- $(BINDIR) $(INFODIR)
++ $(OUTBOUND) $(INBOUND) $(PINBOUND) $(UUINBOUND)
+
+
+
+@@ -34,10 +33,7 @@
+ clean veryclean::
+ rm -f *~ *.bak *.o tags TAGS core
+
+-install-dirs:
++install::
+ for d in $(INSTALLDIRS); do if [ ! -d $$d ]; then \
+- echo "Creating $$d ..."; $(INSTALL_DIR) $(PREFIX)$$d; \
++ echo "Creating $$d ..."; $(INSTALL_DIR) $$d; \
+ fi; done
+-
+-install::
+- cp ANNOUNCE $(PREFIX)$(HTMLDIR)
diff --git a/comms/fidogate/pkg/COMMENT b/comms/fidogate/pkg/COMMENT
new file mode 100644
index 00000000000..eb6b7e3bf23
--- /dev/null
+++ b/comms/fidogate/pkg/COMMENT
@@ -0,0 +1 @@
+FidoNet (FTN) <-> Internet mail and news gateway
diff --git a/comms/fidogate/pkg/DEINSTALL b/comms/fidogate/pkg/DEINSTALL
new file mode 100644
index 00000000000..e7a9756e98d
--- /dev/null
+++ b/comms/fidogate/pkg/DEINSTALL
@@ -0,0 +1,17 @@
+#! /bin/sh
+
+case "$2" in
+ DEINSTALL) cat <<EOF
+
+==========================================================================
+
+Note that the FIDOGATE spool directory (/var/spool/fido) and log directory
+(/var/log/fido) are NOT deleted by the pkg_delete process. Please remove
+these directories and all their contents manually, if they are no longer
+needed.
+
+==========================================================================
+
+EOF
+ ;;
+esac
diff --git a/comms/fidogate/pkg/DESCR b/comms/fidogate/pkg/DESCR
new file mode 100644
index 00000000000..6a68e9bf45b
--- /dev/null
+++ b/comms/fidogate/pkg/DESCR
@@ -0,0 +1,11 @@
+FIDOGATE is a Fido-Internet gateway and a Fido tosser. It is placed under
+the GNU General Public License, see COPYING for details.
+
+The gateway converts between the worlds of Fido NetMail/EchoMail (or FTNs,
+Fido Technology Networks in general) and the UNIX mail/news system.
+FIDOGATE will convert Fido mail packets to RFC822/1036-style messages and
+vice versa.
+
+FIDOGATE also includes a complete FIDO mail processor (NetMail/EchoMail
+scanner and tosser), an FTN-FTN gateway (NetMail only), a file processor
+(TIC file areas) and an Areafix/Filefix.
diff --git a/comms/fidogate/pkg/PLIST b/comms/fidogate/pkg/PLIST
new file mode 100644
index 00000000000..64e8a1b77c1
--- /dev/null
+++ b/comms/fidogate/pkg/PLIST
@@ -0,0 +1,73 @@
+@comment $NetBSD: PLIST,v 1.1 1998/07/16 17:47:15 tv Exp $
+bin/pktdebug
+bin/pktmore
+bin/sumcrc
+etc/rc.d/fidogate.sh
+info/fidogate.info
+info/fidogate.info-1
+info/fidogate.info-2
+lib/fidogate/ffx
+lib/fidogate/ffxbatch
+lib/fidogate/ffxmail
+lib/fidogate/ffxqt
+lib/fidogate/ffxrmail
+lib/fidogate/ffxrun
+lib/fidogate/ftn2ftn
+lib/fidogate/ftn2rfc
+lib/fidogate/ftnaf
+lib/fidogate/ftnafmail
+lib/fidogate/ftnbsy
+lib/fidogate/ftnconfig
+lib/fidogate/ftnexpire
+lib/fidogate/ftnfattach
+lib/fidogate/ftnflo
+lib/fidogate/ftnhatch
+lib/fidogate/ftnin
+lib/fidogate/ftninpost
+lib/fidogate/ftninrecomb
+lib/fidogate/ftnlock
+lib/fidogate/ftnlog
+lib/fidogate/ftnpack
+lib/fidogate/ftnroute
+lib/fidogate/ftnseq
+lib/fidogate/ftntick
+lib/fidogate/ftntoss
+lib/fidogate/magic
+lib/fidogate/rfc2ftn
+lib/fidogate/rundf
+lib/fidogate/runin
+lib/fidogate/runout
+lib/fidogate/runtoss
+lib/fidogate/rununpack
+lib/libfidogate.so.0.0
+share/fidogate/inn/send-ffx
+share/fidogate/inn/send-fidogate
+share/fidogate/inn/viaffx
+share/fidogate/nodelist/latest
+share/fidogate/nodelist/nl-2hosts
+share/fidogate/nodelist/nl-2routing
+share/fidogate/nodelist/nl-autoupd
+share/fidogate/nodelist/nl-check
+share/fidogate/nodelist/nl-del
+share/fidogate/nodelist/nl-diff
+share/fidogate/nodelist/nl-html
+share/fidogate/nodelist/nl-isdn
+share/fidogate/nodelist/nl-print
+share/fidogate/nodelist/template.html
+share/fidogate/scripts/out-freq
+share/fidogate/scripts/out-ls
+share/fidogate/scripts/out-manip
+share/fidogate/scripts/out-rm0
+share/fidogate/scripts/out-rmbsy
+share/fidogate/scripts/run1
+share/fidogate/scripts/run2
+share/fidogate/scripts/runffx
+share/fidogate/scripts/runpoll
+share/fidogate/sendmail/ffx.m4
+share/fidogate/sendmail/ftn.m4
+@dirrm lib/fidogate
+@dirrm share/fidogate/inn
+@dirrm share/fidogate/nodelist
+@dirrm share/fidogate/scripts
+@dirrm share/fidogate/sendmail
+@dirrm share/fidogate