From de6ef55292293bedb7837514737f6d2f4735960f Mon Sep 17 00:00:00 2001 From: max Date: Sun, 29 Sep 1996 03:26:48 +0000 Subject: A sophisticated mail processing program. --- mail/mailagent/Makefile | 46 ++++++++++++++++++++++++++++++++++++ mail/mailagent/distinfo | 1 + mail/mailagent/files/patch-aa | 27 +++++++++++++++++++++ mail/mailagent/files/patch-ac | 31 ++++++++++++++++++++++++ mail/mailagent/files/patch-ag | 19 +++++++++++++++ mail/mailagent/files/patch-ah | 19 +++++++++++++++ mail/mailagent/files/patch-ai | 19 +++++++++++++++ mail/mailagent/files/patch-aj | 19 +++++++++++++++ mail/mailagent/files/patch-ak | 19 +++++++++++++++ mail/mailagent/files/patch-al | 19 +++++++++++++++ mail/mailagent/files/patch-am | 19 +++++++++++++++ mail/mailagent/pkg-comment | 1 + mail/mailagent/pkg-descr | 12 ++++++++++ mail/mailagent/pkg-plist | 40 +++++++++++++++++++++++++++++++ mail/mailagent/scripts/pre-configure | 37 +++++++++++++++++++++++++++++ 15 files changed, 328 insertions(+) create mode 100644 mail/mailagent/Makefile create mode 100644 mail/mailagent/distinfo create mode 100644 mail/mailagent/files/patch-aa create mode 100644 mail/mailagent/files/patch-ac create mode 100644 mail/mailagent/files/patch-ag create mode 100644 mail/mailagent/files/patch-ah create mode 100644 mail/mailagent/files/patch-ai create mode 100644 mail/mailagent/files/patch-aj create mode 100644 mail/mailagent/files/patch-ak create mode 100644 mail/mailagent/files/patch-al create mode 100644 mail/mailagent/files/patch-am create mode 100644 mail/mailagent/pkg-comment create mode 100644 mail/mailagent/pkg-descr create mode 100644 mail/mailagent/pkg-plist create mode 100644 mail/mailagent/scripts/pre-configure (limited to 'mail') diff --git a/mail/mailagent/Makefile b/mail/mailagent/Makefile new file mode 100644 index 0000000..072f7b3 --- /dev/null +++ b/mail/mailagent/Makefile @@ -0,0 +1,46 @@ +# New ports collection makefile for: mailagent +# Version required: 3.0.44 +# Date created: 23 Sep 1996 +# Whom: Masafumi NAKANE +# +# $Id: porting.sgml,v 1.16 1996/03/21 14:15:01 asami Exp $ +# + +DISTNAME= mailagent-3.0pl44 +PKGNAME= mailagent-3.0.44 +CATEGORIES+= mail +MASTER_SITES= http://www.sfc.wide.ad.jp/~max/FreeBSD/ports/distfiles/ + +MAINTAINER= max@FreeBSD.ORG + +RUN_DEPENDS= perl5.003:${PORTSDIR}/lang/perl5 +BUILD_DEPENDS= perl5.003:${PORTSDIR}/lang/perl5 + +WRKSRC= ${WRKDIR}/mailagent-3.0 + +NO_PACKAGE= "Correct FQDN needs to be hardcoded." +IS_INTERACTIVE= yes +HAS_CONFIGURE= yes +CONFIGURE_SCRIPT= Configure +CONFIGURE_ARGS= -dres \ + -Dccflags='${CFLAGS} -D_HAVE_PARAM_H' \ + -Dperlpath='/usr/local/bin/perl' \ + -Dutmp='/var/run/utmp' \ + -Dprefix='${PREFIX}' -Dmansrc='${PREFIX}/man/man1' \ + -Dnotifypatches='false' +INSTALL_TARGET= install install.man + +MANPAGES= edusers.1 mailagent.1 maildist.1 \ + maillist.1 mailpatch.1 package.1 +# Note that mailhelp.1 is intentionally left uncompressed as it is referred +# from several other man pages with .so macro. + +post-install: +.if !defined(NOMANCOMPRESS) + @echo "Compressing man pages." + @for manpage in ${MANPAGES}; do \ + gzip -9nf ${PREFIX}/man/man1/$$manpage ;\ + done +.endif + +.include diff --git a/mail/mailagent/distinfo b/mail/mailagent/distinfo new file mode 100644 index 0000000..86ef621 --- /dev/null +++ b/mail/mailagent/distinfo @@ -0,0 +1 @@ +MD5 (mailagent-3.0pl44.tar.gz) = 07bb7951f6e0e3398aad81ac051d4127 diff --git a/mail/mailagent/files/patch-aa b/mail/mailagent/files/patch-aa new file mode 100644 index 0000000..8e01bf0 --- /dev/null +++ b/mail/mailagent/files/patch-aa @@ -0,0 +1,27 @@ +*** agent/filter/logfile.c.orig Thu Jan 26 17:06:23 1995 +--- agent/filter/logfile.c Sat Mar 23 02:42:02 1996 +*************** +*** 47,52 **** +--- 47,55 ---- + # undef KERNEL + #endif + #include "confmagic.h" ++ #ifdef _HAVE_PARAM_H ++ #include ++ #endif + + #define MAX_STRING 1024 /* Maximum length for logging string */ + +*************** +*** 176,183 **** +--- 179,188 ---- + */ + + #ifdef HAS_SYS_ERRLIST ++ #if !(defined(BSD) && (BSD >= 199306)) + extern int sys_nerr; /* Size of sys_errlist[] */ + extern char *sys_errlist[]; /* Maps error code to string */ ++ #endif + #endif + + #ifdef HAS_STRERROR diff --git a/mail/mailagent/files/patch-ac b/mail/mailagent/files/patch-ac new file mode 100644 index 0000000..a6e05f1 --- /dev/null +++ b/mail/mailagent/files/patch-ac @@ -0,0 +1,31 @@ +*** agent/filter/io.c.orig Fri Sep 1 05:11:42 1995 +--- agent/filter/io.c Fri Mar 29 04:05:28 1996 +*************** +*** 69,74 **** +--- 69,77 ---- + #include + #include + #include ++ #ifdef _HAVE_PARAM_H ++ #include ++ #endif + + #ifdef I_SYS_WAIT + #include +*************** +*** 428,434 **** + */ + + char **envp; /* Environment pointer */ +! #ifdef UNION_WAIT + union wait status; /* Waiting status */ + #else + int status; /* Status from command */ +--- 431,437 ---- + */ + + char **envp; /* Environment pointer */ +! #if defined(UNION_WAIT) && !defined(BSD) + union wait status; /* Waiting status */ + #else + int status; /* Status from command */ diff --git a/mail/mailagent/files/patch-ag b/mail/mailagent/files/patch-ag new file mode 100644 index 0000000..ac73113 --- /dev/null +++ b/mail/mailagent/files/patch-ag @@ -0,0 +1,19 @@ +*** agent/edusers.SH.orig Thu Aug 10 15:34:55 1995 +--- agent/edusers.SH Thu Jul 25 19:55:26 1996 +*************** +*** 17,23 **** + echo "Extracting agent/edusers (with variable substitutions)" + $spitshell >edusers <edusers <maildist <maildist <mailhelp <mailhelp <maillist <maillist <mailpatch <mailpatch <package <package <magent <magent < " ; read addr +done + +while [ X$host = X ]; do + echo -n "Enter fully qualified name of this host (`hostname`)>" ; read host + if [ X$host = X ]; then + host=`hostname` + fi +done + +maildomain=`echo $addr | awk -F@ '{printf("%s", $2)}'` +if [ `echo $maildomain | tr A-Z a-z` = `echo $host | tr A-Z a-z` ]; then + d_hidnet=undef + hiddennet='' +else + d_hidnet=define + hiddennet=$maildomain +fi + +echo -n "Enter the name of your organization> "; read orgname + +cat >${WRKSRC}/config.sh <