aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authormax <max@FreeBSD.org>1996-09-29 11:26:48 +0800
committermax <max@FreeBSD.org>1996-09-29 11:26:48 +0800
commitde6ef55292293bedb7837514737f6d2f4735960f (patch)
tree5a8e930c17c88dcf440663000ae5da9d0b979f54 /mail
parent8350dacf78d8fc6a965c3c573c2170a91663f716 (diff)
downloadfreebsd-ports-gnome-de6ef55292293bedb7837514737f6d2f4735960f.tar.gz
freebsd-ports-gnome-de6ef55292293bedb7837514737f6d2f4735960f.tar.zst
freebsd-ports-gnome-de6ef55292293bedb7837514737f6d2f4735960f.zip
A sophisticated mail processing program.
Diffstat (limited to 'mail')
-rw-r--r--mail/mailagent/Makefile46
-rw-r--r--mail/mailagent/distinfo1
-rw-r--r--mail/mailagent/files/patch-aa27
-rw-r--r--mail/mailagent/files/patch-ac31
-rw-r--r--mail/mailagent/files/patch-ag19
-rw-r--r--mail/mailagent/files/patch-ah19
-rw-r--r--mail/mailagent/files/patch-ai19
-rw-r--r--mail/mailagent/files/patch-aj19
-rw-r--r--mail/mailagent/files/patch-ak19
-rw-r--r--mail/mailagent/files/patch-al19
-rw-r--r--mail/mailagent/files/patch-am19
-rw-r--r--mail/mailagent/pkg-comment1
-rw-r--r--mail/mailagent/pkg-descr12
-rw-r--r--mail/mailagent/pkg-plist40
-rw-r--r--mail/mailagent/scripts/pre-configure37
15 files changed, 328 insertions, 0 deletions
diff --git a/mail/mailagent/Makefile b/mail/mailagent/Makefile
new file mode 100644
index 000000000000..072f7b35c516
--- /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 <max@FreeBSD.ORG>
+#
+# $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 <bsd.port.mk>
diff --git a/mail/mailagent/distinfo b/mail/mailagent/distinfo
new file mode 100644
index 000000000000..86ef621c28af
--- /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 000000000000..8e01bf0196dd
--- /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 <sys/param.h>
++ #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 000000000000..a6e05f1db4b5
--- /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 <stdio.h>
+ #include <errno.h>
+ #include <sys/stat.h>
++ #ifdef _HAVE_PARAM_H
++ #include <sys/param.h>
++ #endif
+
+ #ifdef I_SYS_WAIT
+ #include <sys/wait.h>
+***************
+*** 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 000000000000..ac73113aec5c
--- /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 <<!GROK!THIS!
+ $startperl
+! eval "exec perl -S \$0 \$*"
+ if \$running_under_some_shell;
+
+ # $Id: edusers.SH,v 3.0.1.3 1995/08/07 16:06:24 ram Exp $
+--- 17,23 ----
+ echo "Extracting agent/edusers (with variable substitutions)"
+ $spitshell >edusers <<!GROK!THIS!
+ $startperl
+! eval "exec $perlpath -S \$0 \$*"
+ if \$running_under_some_shell;
+
+ # $Id: edusers.SH,v 3.0.1.3 1995/08/07 16:06:24 ram Exp $
diff --git a/mail/mailagent/files/patch-ah b/mail/mailagent/files/patch-ah
new file mode 100644
index 000000000000..e87e6023408f
--- /dev/null
+++ b/mail/mailagent/files/patch-ah
@@ -0,0 +1,19 @@
+*** agent/maildist.SH.orig Wed Mar 22 05:51:25 1995
+--- agent/maildist.SH Thu Jul 25 19:53:05 1996
+***************
+*** 17,23 ****
+ echo "Extracting agent/maildist (with variable substitutions)"
+ $spitshell >maildist <<!GROK!THIS!
+ $startperl
+! eval "exec perl -S \$0 \$*"
+ if \$running_under_some_shell;
+
+ # $Id: maildist.SH,v 3.0.1.4 1995/03/21 12:54:59 ram Exp $
+--- 17,23 ----
+ echo "Extracting agent/maildist (with variable substitutions)"
+ $spitshell >maildist <<!GROK!THIS!
+ $startperl
+! eval "exec $perlpath -S \$0 \$*"
+ if \$running_under_some_shell;
+
+ # $Id: maildist.SH,v 3.0.1.4 1995/03/21 12:54:59 ram Exp $
diff --git a/mail/mailagent/files/patch-ai b/mail/mailagent/files/patch-ai
new file mode 100644
index 000000000000..d6c37ec44205
--- /dev/null
+++ b/mail/mailagent/files/patch-ai
@@ -0,0 +1,19 @@
+*** agent/mailhelp.SH.orig Wed Mar 22 05:51:24 1995
+--- agent/mailhelp.SH Thu Jul 25 19:56:16 1996
+***************
+*** 17,23 ****
+ echo "Extracting agent/mailhelp (with variable substitutions)"
+ $spitshell >mailhelp <<!GROK!THIS!
+ $startperl
+! eval "exec perl -S \$0 \$*"
+ if \$running_under_some_shell;
+
+ # $Id: mailhelp.SH,v 3.0.1.2 1995/03/21 12:55:04 ram Exp $
+--- 17,23 ----
+ echo "Extracting agent/mailhelp (with variable substitutions)"
+ $spitshell >mailhelp <<!GROK!THIS!
+ $startperl
+! eval "exec $perlpath -S \$0 \$*"
+ if \$running_under_some_shell;
+
+ # $Id: mailhelp.SH,v 3.0.1.2 1995/03/21 12:55:04 ram Exp $
diff --git a/mail/mailagent/files/patch-aj b/mail/mailagent/files/patch-aj
new file mode 100644
index 000000000000..8994106cecb5
--- /dev/null
+++ b/mail/mailagent/files/patch-aj
@@ -0,0 +1,19 @@
+*** agent/maillist.SH.orig Thu Aug 10 15:38:06 1995
+--- agent/maillist.SH Thu Jul 25 19:54:00 1996
+***************
+*** 17,23 ****
+ echo "Extracting agent/maillist (with variable substitutions)"
+ $spitshell >maillist <<!GROK!THIS!
+ $startperl
+! eval "exec perl -S \$0 \$*"
+ if \$running_under_some_shell;
+
+ # $Id: maillist.SH,v 3.0.1.5 1995/08/07 16:12:48 ram Exp $
+--- 17,23 ----
+ echo "Extracting agent/maillist (with variable substitutions)"
+ $spitshell >maillist <<!GROK!THIS!
+ $startperl
+! eval "exec $perlpath -S \$0 \$*"
+ if \$running_under_some_shell;
+
+ # $Id: maillist.SH,v 3.0.1.5 1995/08/07 16:12:48 ram Exp $
diff --git a/mail/mailagent/files/patch-ak b/mail/mailagent/files/patch-ak
new file mode 100644
index 000000000000..dbf2a2925b53
--- /dev/null
+++ b/mail/mailagent/files/patch-ak
@@ -0,0 +1,19 @@
+*** agent/mailpatch.SH.orig Wed Mar 22 05:51:24 1995
+--- agent/mailpatch.SH Thu Jul 25 19:56:34 1996
+***************
+*** 17,23 ****
+ echo "Extracting agent/mailpatch (with variable substitutions)"
+ $spitshell >mailpatch <<!GROK!THIS!
+ $startperl
+! eval "exec perl -S \$0 \$*"
+ if \$running_under_some_shell;
+
+ # $Id: mailpatch.SH,v 3.0.1.4 1995/03/21 12:55:16 ram Exp $
+--- 17,23 ----
+ echo "Extracting agent/mailpatch (with variable substitutions)"
+ $spitshell >mailpatch <<!GROK!THIS!
+ $startperl
+! eval "exec $perlpath -S \$0 \$*"
+ if \$running_under_some_shell;
+
+ # $Id: mailpatch.SH,v 3.0.1.4 1995/03/21 12:55:16 ram Exp $
diff --git a/mail/mailagent/files/patch-al b/mail/mailagent/files/patch-al
new file mode 100644
index 000000000000..66a317ac23d2
--- /dev/null
+++ b/mail/mailagent/files/patch-al
@@ -0,0 +1,19 @@
+*** agent/package.SH.orig Thu Aug 10 15:34:35 1995
+--- agent/package.SH Thu Jul 25 19:54:42 1996
+***************
+*** 17,23 ****
+ echo "Extracting agent/package (with variable substitutions)"
+ $spitshell >package <<!GROK!THIS!
+ $startperl
+! eval "exec perl -S \$0 \$*"
+ if \$running_under_some_shell;
+
+ # $Id: package.SH,v 3.0.1.6 1995/08/07 16:15:18 ram Exp $
+--- 17,23 ----
+ echo "Extracting agent/package (with variable substitutions)"
+ $spitshell >package <<!GROK!THIS!
+ $startperl
+! eval "exec $perlpath -S \$0 \$*"
+ if \$running_under_some_shell;
+
+ # $Id: package.SH,v 3.0.1.6 1995/08/07 16:15:18 ram Exp $
diff --git a/mail/mailagent/files/patch-am b/mail/mailagent/files/patch-am
new file mode 100644
index 000000000000..11b8de3b8c1b
--- /dev/null
+++ b/mail/mailagent/files/patch-am
@@ -0,0 +1,19 @@
+*** agent/magent.sh.orig Sat Sep 16 09:05:29 1995
+--- agent/magent.sh Thu Jul 25 19:58:11 1996
+***************
+*** 17,23 ****
+ echo "Extracting agent/magent (with variable substitutions)"
+ $spitshell >magent <<!GROK!THIS!
+ $startperl
+! eval 'exec perl -S \$0 "\$@"'
+ if \$running_under_some_shell;
+
+ # You'll need to set up a .forward file that feeds your mail to this script,
+--- 17,23 ----
+ echo "Extracting agent/magent (with variable substitutions)"
+ $spitshell >magent <<!GROK!THIS!
+ $startperl
+! eval 'exec $perlpath -S \$0 "\$@"'
+ if \$running_under_some_shell;
+
+ # You'll need to set up a .forward file that feeds your mail to this script,
diff --git a/mail/mailagent/pkg-comment b/mail/mailagent/pkg-comment
new file mode 100644
index 000000000000..0add2597a458
--- /dev/null
+++ b/mail/mailagent/pkg-comment
@@ -0,0 +1 @@
+A sophisticated automatic mail-processing tool.
diff --git a/mail/mailagent/pkg-descr b/mail/mailagent/pkg-descr
new file mode 100644
index 000000000000..858272a5e7f4
--- /dev/null
+++ b/mail/mailagent/pkg-descr
@@ -0,0 +1,12 @@
+Mailagent allows you to process your mail automatically. Given a set
+of lex-like rules, you are able to fill mails to specific folders,
+forward messages to a third person, pipe a message to a command or
+even post the message to a newsgroup. It is also possible to process
+messages containing some commands. The mailagent is not usually
+invoked manually but is rather called via the filter program, which is
+in turn invoked by sendmail.
+
+Most portion of this package is written in Perl and version 5.01M or
+higher is known to work nicely.
+
+See the man page for the detailed information.
diff --git a/mail/mailagent/pkg-plist b/mail/mailagent/pkg-plist
new file mode 100644
index 000000000000..7ab267097e52
--- /dev/null
+++ b/mail/mailagent/pkg-plist
@@ -0,0 +1,40 @@
+@cwd /usr/local
+bin/mailpatch
+bin/mailhelp
+bin/maillist
+bin/maildist
+bin/package
+bin/edusers
+bin/mailagent
+lib/mailagent/filter
+lib/mailagent/agenthelp
+lib/mailagent/commands
+lib/mailagent/distribs
+lib/mailagent/filter.sh
+lib/mailagent/mailagent.cf
+lib/mailagent/proglist
+lib/mailagent/chkagent.sh
+lib/mailagent/setup.cf
+lib/mailagent/compressors
+lib/mailagent/help/addauth
+lib/mailagent/help/approve
+lib/mailagent/help/delpower
+lib/mailagent/help/end
+lib/mailagent/help/getauth
+lib/mailagent/help/help
+lib/mailagent/help/newpower
+lib/mailagent/help/passwd
+lib/mailagent/help/password
+lib/mailagent/help/power
+lib/mailagent/help/release
+lib/mailagent/help/remauth
+lib/mailagent/help/set
+lib/mailagent/help/setauth
+lib/mailagent/help/user
+man/man1/mailhelp.1
+man/man1/mailpatch.1.gz
+man/man1/package.1.gz
+man/man1/edusers.1.gz
+man/man1/mailagent.1.gz
+man/man1/maildist.1.gz
+man/man1/maillist.1.gz
diff --git a/mail/mailagent/scripts/pre-configure b/mail/mailagent/scripts/pre-configure
new file mode 100644
index 000000000000..5108d0a87a25
--- /dev/null
+++ b/mail/mailagent/scripts/pre-configure
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Pre-configure script for mailagent.
+# This script asks for information specific to the machine and writes
+# given values to work/mailagent-3.0/config.sh to set the default
+# values for COnfigure script so that Configure doesn't request any
+# input.
+
+while [ X$addr = X ]; do
+ echo -n "Enter your complete E-mail address> " ; 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 <<EOM
+#!/bin/sh
+cf_email='$addr'
+d_flockonly='define'
+d_hidnet='$d_hidnet'
+hiddennet='$hiddennet'
+orgname='$orgname'
+EOM