1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Port of ifmail, a FidoNet(tm) support package for UN*X platform.

Extensively modified from submitted PR, including upgrading to a
new version, installing examples and documentation, and creating
the required new user.

PR:		ports/3306
Submitted by:	Dirk Meyer <dirk@net2.dinoex.sub.de>
This commit is contained in:
Bill Fenner 1997-11-16 04:57:27 +00:00
parent 88c00229be
commit 79818db38d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=8652
9 changed files with 530 additions and 0 deletions

43
news/ifmail/Makefile Normal file
View File

@ -0,0 +1,43 @@
# New ports collection makefile for: ifmail
# Version required: 2.10
# Date created: 19 Feb 1997
# Whom: dirk.meyer@dinoex.sub.org
#
# $Id$
#
DISTNAME= ifmail-2.10
CATEGORIES= news
MASTER_SITES= ftp://tsx-11.mit.edu/pub/linux/sources/usr.bin/ \
${MASTER_SITE_SUNSITE} \
ftp://ftp.demos.su/unix/linux/source/fido/ \
ftp://net2.dinoex.sub.org/pub/approved/
MASTER_SITE_SUBDIR= system/Mail/transport/
MAINTAINER= dirk.meyer@dinoex.sub.org
MAN3= parsedate.3
MAN8= ifmail.8 iftoss.8
pre-install:
@PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL
${MKDIR} ${PREFIX}/libexec/ifmail
post-install:
.for i in ${MAN8}
${INSTALL_MAN} ${WRKSRC}/ifgate/${i} ${PREFIX}/man/man8
.endfor
.for i in ${MAN3}
${INSTALL_MAN} ${WRKSRC}/iflib/${i} ${PREFIX}/man/man3
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/ifmail
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ifmail
.for i in ifcico ifgate iflib
${INSTALL_DATA} ${WRKSRC}/${i}/README ${PREFIX}/share/doc/ifmail/README.${i}
.endfor
.endif
${MKDIR} ${PREFIX}/share/examples/ifmail
@cd ${WRKSRC}/misc; tar cf - . | (cd ${PREFIX}/share/examples/ifmail; tar xf -)
.include <bsd.port.mk>

1
news/ifmail/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (ifmail-2.10.tar.gz) = 599fa7a22c96c8e6daa073e8ee142183

View File

@ -0,0 +1,179 @@
*** CONFIG.orig Sat Apr 26 01:44:17 1997
--- CONFIG Sat Nov 15 20:28:40 1997
***************
*** 8,21 ****
# Debug messages turned on by -x key are written here.
# Some error messages may occationally appear here too.
# This may be changed in the 'config' file.
! DEBUGFILE = "/var/log/ifmail/ifdebug"
# Procession log. Usually gets several lines for each invocation.
# Also look for error diagnostics here. If HAS_SYSLOG defined,
# only stdout and stderr from the packers and unpackers go to this
# file, while actual logging is done via syslog() calls.
# This may be changed in the 'config' file.
! LOGFILE = "/var/log/ifmail/iflog"
# Use syslog() facility codes for mail gate, news gate and ifcico.
# Define -DHAS_SYSLOG (see below)
--- 8,21 ----
# Debug messages turned on by -x key are written here.
# Some error messages may occationally appear here too.
# This may be changed in the 'config' file.
! DEBUGFILE = "/var/spool/ifmail/ifdebug"
# Procession log. Usually gets several lines for each invocation.
# Also look for error diagnostics here. If HAS_SYSLOG defined,
# only stdout and stderr from the packers and unpackers go to this
# file, while actual logging is done via syslog() calls.
# This may be changed in the 'config' file.
! LOGFILE = "/var/spool/ifmail/iflog"
# Use syslog() facility codes for mail gate, news gate and ifcico.
# Define -DHAS_SYSLOG (see below)
***************
*** 27,39 ****
CICOLOG = LOG_LOCAL0
# Directory where UUCP lock files reside.
! #LOCKDIR = "/var/spool/uucp"
! LOCKDIR = "/var/lock"
# Directory from which file requests are resolved.
# This may be changed from the 'config' file.
! #PUBDIR = "/home/ftp/pub"
! PUBDIR = "/var/spool/uucppublic"
# News spool directory (to check space only)
#NEWSSPOOL = "/usr/spool/news"
--- 27,39 ----
CICOLOG = LOG_LOCAL0
# Directory where UUCP lock files reside.
! LOCKDIR = "/var/spool/uucp"
! #LOCKDIR = "/var/lock"
# Directory from which file requests are resolved.
# This may be changed from the 'config' file.
! PUBDIR = "/home/ftp/pub"
! #PUBDIR = "/var/spool/uucppublic"
# News spool directory (to check space only)
#NEWSSPOOL = "/usr/spool/news"
***************
*** 138,155 ****
# (see below).
# Linux:
! OPTS = -DHAS_STATFS -DSTATFS_IN_VFS_H -DHAS_SETSID -DHAS_NDBM_H \
! -DDONT_HAVE_TM_GMTOFF -DHAS_TERMIOS_H -DASCII_LOCKFILES \
! -DHAS_FSYNC -DHAS_IOCTL_H -DHAS_REGEX_H -DHAS_TCP \
! -DFORCEINTL -DHAS_SYSLOG -DNEED_UUCPFROM -DNEED_BSY \
! -DREGEX_NEED_CARET -DSLAVE_SENDS_NAK_TOO -DNEED_FORK
!
! # 386BSD:
! #OPTS = -DHAS_STATFS -DSTATFS_IN_MOUNT_H -DHAS_SETSID -DHAS_NDBM_H \
! # -DHAS_TERMIOS_H -DASCII_LOCKFILES -DHAS_FSYNC -DHAS_IOCTL_H \
! # -DHAS_REGEX_H -DHAS_TCP -DHAS_SYSLOG -DNEED_UUCPFROM \
! # -DNEED_BSY -DNEED_FORK -DNEGATIVE_SEEK_BUG \
! # -DREGEX_NEED_CARET -DHAS_SYS_ERRLIST
# SVR4:
#OPTS = -DHAS_STATVFS -DDONT_HAVE_TM_GMTOFF -DHAS_SETSID -DHAS_NDBM_H \
--- 138,155 ----
# (see below).
# Linux:
! #OPTS = -DHAS_STATFS -DSTATFS_IN_VFS_H -DHAS_SETSID -DHAS_NDBM_H \
! # -DDONT_HAVE_TM_GMTOFF -DHAS_TERMIOS_H -DASCII_LOCKFILES \
! # -DHAS_FSYNC -DHAS_IOCTL_H -DHAS_REGEX_H -DHAS_TCP \
! # -DFORCEINTL -DHAS_SYSLOG -DNEED_UUCPFROM -DNEED_BSY \
! # -DREGEX_NEED_CARET -DSLAVE_SENDS_NAK_TOO -DNEED_FORK
!
! # 386BSD,FreeBSD:
! OPTS = -DHAS_STATFS -DSTATFS_IN_MOUNT_H -DHAS_SETSID -DHAS_NDBM_H \
! -DHAS_TERMIOS_H -DASCII_LOCKFILES -DHAS_FSYNC -DHAS_IOCTL_H \
! -DHAS_REGEX_H -DHAS_TCP -DHAS_SYSLOG -DNEED_UUCPFROM \
! -DNEED_BSY -DNEED_FORK -DNEGATIVE_SEEK_BUG \
! -DREGEX_NEED_CARET -DHAS_SYS_ERRLIST
# SVR4:
#OPTS = -DHAS_STATVFS -DDONT_HAVE_TM_GMTOFF -DHAS_SETSID -DHAS_NDBM_H \
***************
*** 193,199 ****
# -DREGEX_NEED_CARET -DDONT_HAVE_GETOPT
# for make install, where to put binaries and what owner to set
! BINDIR = /usr/lib/ifmail
OWNER = ifmail
GROUP = uucp
MODE = 0711
--- 193,199 ----
# -DREGEX_NEED_CARET -DDONT_HAVE_GETOPT
# for make install, where to put binaries and what owner to set
! BINDIR = ${PREFIX}/libexec/ifmail
OWNER = ifmail
GROUP = uucp
MODE = 0711
***************
*** 213,219 ****
TAR = tar
#CFLAGS = -g -Wall
! # Linux, 386BSD, SunOS:
CFLAGS = -O2 -Wall
# SVR4:
#CFLAGS = -O -Xa
--- 213,219 ----
TAR = tar
#CFLAGS = -g -Wall
! # Linux, 386BSD,FreeBsd, SunOS:
CFLAGS = -O2 -Wall
# SVR4:
#CFLAGS = -O -Xa
***************
*** 227,237 ****
# If you need TERM also add e.g. "/usr/src/term112/client.a"
# Linux
! LIBS = -lgdbm
# SunOS:
#LIBS =
# 386BSD:
#LIBS = -lgdbm -lcompat
# SVR4
#LIBS = -ldbm -lform -lnsl -lsocket -lc -L/usr/ucblib -lucb
# SCO
--- 227,239 ----
# If you need TERM also add e.g. "/usr/src/term112/client.a"
# Linux
! #LIBS = -lgdbm
# SunOS:
#LIBS =
# 386BSD:
#LIBS = -lgdbm -lcompat
+ # FreeBsd:
+ LIBS = -lgnuregex
# SVR4
#LIBS = -ldbm -lform -lnsl -lsocket -lc -L/usr/ucblib -lucb
# SCO
***************
*** 248,254 ****
# What programs are absent at your system?
#NEEDED = strcasestr.o strncasecmp.o strcasecmp.o rename.o mkdir.o usleep.o \
# regexpr.o
! # Linux
NEEDED =
# SVR4
#NEEDED = regexpr.o
--- 250,256 ----
# What programs are absent at your system?
#NEEDED = strcasestr.o strncasecmp.o strcasecmp.o rename.o mkdir.o usleep.o \
# regexpr.o
! # Linux, FreeBSD
NEEDED =
# SVR4
#NEEDED = regexpr.o

View File

@ -0,0 +1,15 @@
*** iflib/clibrary.h Sat Sep 11 17:16:11 1993
--- iflib/clibrary.h.neu Wed Feb 19 20:53:56 1997
***************
*** 121,128 ****
--- 121,130 ----
extern void exit();
/* =()<extern @<GETPIDVAL>@ getpid();>()= */
extern int getpid();
+ #ifndef __FreeBSD__
/* =()<extern @<LSEEKVAL>@ lseek();>()= */
extern long lseek();
+ #endif
/* =()<extern @<QSORTVAL>@ qsort();>()= */
extern int qsort();
/* =()<extern @<SLEEPVAL>@ sleep();>()= */

View File

@ -0,0 +1,10 @@
--- iflib/directory.h.orig Sat Nov 15 16:22:07 1997
+++ iflib/directory.h Sat Nov 15 16:22:17 1997
@@ -8,6 +8,7 @@
* Written by stefan@space.s-link.de (Stefan Westerfeld)
*/
+#include <sys/types.h>
#include <dirent.h>
#ifdef DONT_HAVE_DIRENT

1
news/ifmail/pkg-comment Normal file
View File

@ -0,0 +1 @@
FidoNet(tm) support package for UN*X platform

73
news/ifmail/pkg-descr Normal file
View File

@ -0,0 +1,73 @@
Begin3
~Title: ifmail - FidoNet(tm) support package for UN*X platform
Version: 2.7
Entered-date: 06NOV94
Description: FidoNet(tm) transport and gateway for UN*X platform.
Delivers Fidonet mail packets over telephone lines
and TCP/IP connections; converts Fidonet net- and
echomail to RFC-822/RFC-1036 compliant mail and news
and vice versa. In cooperation with MTA and netnews
packages allows to run a FidoNet node (or point) on
a UN*X machine.
Keywords: fidonet,netmail,echomail,mail,news,gateway
Author: crosser@pccross.msk.su (Eugene Crosser)
Maintained-by: crosser@pccross.msk.su (Eugene Crosser)
Primary-site: tsx-11.mit.edu /pub/linux/sources/usr.bin
220Kb ifmail-2.7.tar.gz
Alternate-site: sunsite.unc.edu /pub/Linux/system/Mail/transport
Alternate-site: ftp.demos.su /unix/linux/source/fido
Platform: Linux, *BSD, SunOS, SCO, ISC, some others
Copying-policy: Free
End
Copyright (c) 1993, 1994 by Eugene G. Crosser
This is a README file for ifmail - another Internet/FidoNet gateway and
transport package.
You may do virtually what you wish with this software, as long as the
explicit reference to its original author is retained:
Eugene G. Crosser <crosser@pccross.msk.su>, 2:5020/230@FidoNet
THIS SOFTWARE IS PROVIDED AS IS AND COME WITH NO WARRANTY OF ANY KIND,
EITHER EXPRESSED OR IMPLIED. IN NO EVENT WILL THE COPYRIGHT HOLDER BE
LIABLE FOR ANY DAMAGES RESULTING FROM THE USE OF THIS SOFTWARE.
This is freeware. Except for the modules taken from the other packages,
(which may be subject to different distributing policy), you may use
this software for any purpose, commercial or noncommercial, including
even selling it, without paying anything. Though, if you are willing to
support my efforts, your contribution will be appreciated. Contact me
by e-mail.
The package consists of two major parts: ifgate (gateway programs,
analog of FidoNet tosser/packer), and ifcico (transport agent, analog of
FidoNet mailer), each in its own subdirectory. Routines common to these
programs are in the iflib subdirectory. In the top-level subdirectory
are: README (this file), CONFIG (your system configuration definition)
and top-level Makefile. There is also a "misc" subdirectory with
examples of configuration, some useful scripts, FAQ list etc.
Each of the subdirectories (ifgate, ifcico, iflib and misc) contains its
own README file, refer to them for more technical details.
To install the package, edit the CONFIG file to match your configuration
and run "make" and (if you are satisfied) "make install".
Currently, the package should be considered BETA, use it on your own
risk.
There is a mailing list for ifmail-related discussions. To subscribe,
send mail to: <ifmail-request@fidogate.nuars.nwu.edu> (this is a live
person, not a listserv program). It is supposed that it will carry
latest updates in addition to discussions, so you may wish to subscribe,
to be on the bleeding edge. Special thanks to H. Peter Anvin for
maintaining this list.
Eugene G. Crosser <crosser@pccross.msk.su>; 2:5020/230@fidonet
Voice: +7 095 212 5274; Moscow, Russia
- Dirk Meyer (patches & port)
dirk.meyer@dinoex.sub.org

78
news/ifmail/pkg-install Normal file
View File

@ -0,0 +1,78 @@
#!/bin/sh
user=ifmail
group=uucp
ask() {
local question default answer
question=$1
default=$2
if [ -z "${PACKAGE_BUILDING}" ]; then
read -p "${question} [${default}]? " answer
fi
if [ x${answer} = x ]; then
answer=${default}
fi
echo ${answer}
}
yesno() {
local dflt question answer
question=$1
dflt=$2
while :; do
answer=$(ask "${question}" "${dflt}")
case "${answer}" in
[Yy]*) return 0;;
[Nn]*) return 1;;
esac
echo "Please answer yes or no."
done
}
case $2 in
PRE-INSTALL)
if which -s pw; then
:
else
cat <<EOF
This system looks like a pre-2.2 version of FreeBSD. I see that
it is missing the "pw" utility. I need this utility. Please get
it and install it, and try again. You can get the sources from:
ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/src/usr.sbin/pw.tar
EOF
exit 1
fi
if pw user show "${user}" 2>/dev/null; then
echo "You already have a user \"${user}\", so I will use it."
else
echo "You need a user \"${user}\"."
if which -s pw && yesno "Would you like me to create it" y; then
pw useradd ${user} -g ${group} -h - -d /nonexistent \
-s /nonexistent -c "Ifmail user" || exit
echo "Done."
else
echo "Please create it, and try again."
exit 1
fi
fi
;;
#
# The package system untar's the file first, potentially before the
# ifmail user is created. This means that the files in
# ${PREFIX}/libexec/ifmail will be setuid root, not setuid ifmail.
# We have to fix this up.
POST-INSTALL)
chown ifmail ${PREFIX}/libexec/ifmail/*
;;
esac

130
news/ifmail/pkg-plist Normal file
View File

@ -0,0 +1,130 @@
libexec/ifmail/ifcico
libexec/ifmail/ifindex
libexec/ifmail/ifmail
libexec/ifmail/ifnews
libexec/ifmail/ifpack
libexec/ifmail/ifroute
libexec/ifmail/ifstat
libexec/ifmail/iftoss
libexec/ifmail/ifunpack
libexec/ifmail/nlpatch
@dirrm libexec/ifmail
man/man3/parsedate.3.gz
man/man8/ifmail.8.gz
man/man8/iftoss.8.gz
share/doc/ifmail/README
share/doc/ifmail/README.ifcico
share/doc/ifmail/README.ifgate
share/doc/ifmail/README.iflib
@dirrm share/doc/ifmail
share/examples/ifmail/Areas
share/examples/ifmail/DEBUG
share/examples/ifmail/FAQ
share/examples/ifmail/FILES
share/examples/ifmail/README
share/examples/ifmail/TODO
share/examples/ifmail/cnews/batchparms
share/examples/ifmail/cnews/sys
share/examples/ifmail/config
share/examples/ifmail/contrib/README
share/examples/ifmail/contrib/a2dbm
share/examples/ifmail/contrib/areafix-0.5.04/HISTORY
share/examples/ifmail/contrib/areafix-0.5.04/README
share/examples/ifmail/contrib/areafix-0.5.04/areafix.pl
share/examples/ifmail/contrib/areafix-0.5.04/areaqueue.c
share/examples/ifmail/contrib/areafix-0.5.04/config
share/examples/ifmail/contrib/areafix-0.5.04/help
share/examples/ifmail/contrib/areafix-0.5.04/passwords
share/examples/ifmail/contrib/areafix-0.5.04/restricted
share/examples/ifmail/contrib/cnews-msgids
share/examples/ifmail/contrib/edalias
share/examples/ifmail/contrib/fdpass/NOTICE
share/examples/ifmail/contrib/fdpass/fdpass.c
share/examples/ifmail/contrib/fdpass/session.h
share/examples/ifmail/contrib/fido.daily
share/examples/ifmail/contrib/ifinfo
share/examples/ifmail/contrib/ifman
share/examples/ifmail/contrib/ifpoll
share/examples/ifmail/contrib/ifreq
share/examples/ifmail/contrib/iftelnetd/Makefile
share/examples/ifmail/contrib/iftelnetd/README
share/examples/ifmail/contrib/iftelnetd/iftelnetd.c
share/examples/ifmail/contrib/iftelnetd/inetd.conf
share/examples/ifmail/contrib/iftelnetd/services
share/examples/ifmail/contrib/ldbm
share/examples/ifmail/contrib/lmsgid
share/examples/ifmail/contrib/mmdf/Makefile
share/examples/ifmail/contrib/mmdf/README
share/examples/ifmail/contrib/mmdf/config.h
share/examples/ifmail/contrib/mmdf/fidonet.c
share/examples/ifmail/contrib/mmdf/fidonet.h
share/examples/ifmail/contrib/mmdf/route.c
share/examples/ifmail/contrib/mmdf/route.cfg
share/examples/ifmail/contrib/mmdf/version.h
share/examples/ifmail/contrib/mmdf/xxx
share/examples/ifmail/contrib/news_via_mail/README
share/examples/ifmail/contrib/news_via_mail/mail2news.sh
share/examples/ifmail/contrib/news_via_mail/news2mail.awk
share/examples/ifmail/contrib/sumlog
share/examples/ifmail/contrib/tic/Changelog
share/examples/ifmail/contrib/tic/README
share/examples/ifmail/contrib/tic/checker.pl
share/examples/ifmail/contrib/tic/config.pli
share/examples/ifmail/contrib/tic/config/Areas
share/examples/ifmail/contrib/tic/config/Config
share/examples/ifmail/contrib/tic/config/Nodes
share/examples/ifmail/contrib/tic/config/Postings
share/examples/ifmail/contrib/tic/config/Processor
share/examples/ifmail/contrib/tic/config/TRICBBS.frm
share/examples/ifmail/contrib/tic/config/Trigger
share/examples/ifmail/contrib/tic/config/global.hdr
share/examples/ifmail/contrib/tic/config/group_L.hdr
share/examples/ifmail/contrib/tic/crc32.c
share/examples/ifmail/contrib/tic/getdate.pli
share/examples/ifmail/contrib/tic/lister.pl
share/examples/ifmail/contrib/tic/makeconfig.pl
share/examples/ifmail/contrib/tic/poster.pl
share/examples/ifmail/contrib/tic/process_tics.pl
share/examples/ifmail/contrib/tic/purge_history.pl
share/examples/ifmail/contrib/tic/readtick.pli
share/examples/ifmail/contrib/tic/sequencer.pli
share/examples/ifmail/getnodelist
share/examples/ifmail/ifmail.gif
share/examples/ifmail/inn/newsfeeds
share/examples/ifmail/inn/send-ifmail
share/examples/ifmail/inouttabs/fidom2iso
share/examples/ifmail/inouttabs/fidomazovia
share/examples/ifmail/inouttabs/ibmpc-latin1
share/examples/ifmail/inouttabs/iso2fidom
share/examples/ifmail/inouttabs/latin1-ibmpc
share/examples/ifmail/inouttabs/outaltkoi8
share/examples/ifmail/inouttabs/outkoi8alt
share/examples/ifmail/sendmail/ifmail.m4-bosman
share/examples/ifmail/sendmail/ifmail.m4-butler
share/examples/ifmail/sendmail/ifmail.m4-selig
share/examples/ifmail/sendmail/sendmail.cf-1
share/examples/ifmail/sendmail/sendmail.cf-2
share/examples/ifmail/smail/ftnpaths
share/examples/ifmail/smail/routers
share/examples/ifmail/smail/transports
share/examples/ifmail/tcp/inetd.conf
share/examples/ifmail/tcp/services
share/examples/ifmail/zmailer/routes
share/examples/ifmail/zmailer/scheduler.conf
share/examples/ifmail/zmailer/sm.conf
@dirrm share/examples/ifmail/inn
@dirrm share/examples/ifmail/tcp
@dirrm share/examples/ifmail/smail
@dirrm share/examples/ifmail/sendmail
@dirrm share/examples/ifmail/zmailer
@dirrm share/examples/ifmail/cnews
@dirrm share/examples/ifmail/contrib/mmdf
@dirrm share/examples/ifmail/contrib/tic/config
@dirrm share/examples/ifmail/contrib/tic
@dirrm share/examples/ifmail/contrib/news_via_mail
@dirrm share/examples/ifmail/contrib/fdpass
@dirrm share/examples/ifmail/contrib/iftelnetd
@dirrm share/examples/ifmail/contrib/areafix-0.5.04
@dirrm share/examples/ifmail/contrib
@dirrm share/examples/ifmail/inouttabs
@dirrm share/examples/ifmail