From 11d5fee0f8ee62adbcdcdaaa48b67a75c216934e Mon Sep 17 00:00:00 2001 From: itojun Date: Sun, 26 Dec 1999 17:25:16 +0000 Subject: mail/mailagent from freebsd-current --- mail/mailagent/Makefile | 50 ++++++++++++++++++++++ mail/mailagent/files/md5 | 1 + mail/mailagent/patches/patch-aa | 23 ++++++++++ mail/mailagent/patches/patch-ac | 21 ++++++++++ mail/mailagent/patches/patch-ag | 17 ++++++++ mail/mailagent/patches/patch-ah | 17 ++++++++ mail/mailagent/patches/patch-ai | 17 ++++++++ mail/mailagent/patches/patch-aj | 17 ++++++++ mail/mailagent/patches/patch-ak | 17 ++++++++ mail/mailagent/patches/patch-al | 17 ++++++++ mail/mailagent/patches/patch-am | 19 +++++++++ mail/mailagent/pkg/COMMENT | 1 + mail/mailagent/pkg/DESCR | 16 +++++++ mail/mailagent/pkg/PLIST | 81 ++++++++++++++++++++++++++++++++++++ mail/mailagent/scripts/pre-configure | 37 ++++++++++++++++ 15 files changed, 351 insertions(+) create mode 100644 mail/mailagent/Makefile create mode 100644 mail/mailagent/files/md5 create mode 100644 mail/mailagent/patches/patch-aa create mode 100644 mail/mailagent/patches/patch-ac create mode 100644 mail/mailagent/patches/patch-ag create mode 100644 mail/mailagent/patches/patch-ah create mode 100644 mail/mailagent/patches/patch-ai create mode 100644 mail/mailagent/patches/patch-aj create mode 100644 mail/mailagent/patches/patch-ak create mode 100644 mail/mailagent/patches/patch-al create mode 100644 mail/mailagent/patches/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 100755 mail/mailagent/scripts/pre-configure (limited to 'mail/mailagent') diff --git a/mail/mailagent/Makefile b/mail/mailagent/Makefile new file mode 100644 index 00000000000..92fce45e4d5 --- /dev/null +++ b/mail/mailagent/Makefile @@ -0,0 +1,50 @@ +# New ports collection makefile for: mailagent +# Version required: 3.0pl68 +# Date created: 23 Sep 1996 +# Whom: Masafumi NAKANE +# +# $FreeBSD: ports/mail/mailagent/Makefile,v 1.29 1999/09/07 19:56:12 max Exp $ +# + +DISTNAME= mailagent-3.0@68 +PKGNAME= mailagent-3.0.68 +CATEGORIES= mail +MASTER_SITES= ${MASTER_SITE_PERL_CPAN} +MASTER_SITE_SUBDIR= ../../authors/id/RAM + +MAINTAINER= max@FreeBSD.org + +USE_PERL5= yes +NO_PACKAGE= "Correct FQDN needs to be hardcoded" +IS_INTERACTIVE= yes +HAS_CONFIGURE= yes +CONFIGURE_SCRIPT= Configure +CONFIGURE_ARGS= -dres \ + -Dperlpath='${PERL5}' \ + -Dutmp='/var/run/utmp' \ + -Dprefix='${PREFIX}' -Dmansrc='${PREFIX}/man/man1' \ + -Dnotifypatches='false' +MAKE_ENV= PATH=`dirname ${PERL5}`:${PATH} +INSTALL_TARGET= install install.man + +# Note that mailhelp.1 is intentionally left uncompressed as it is referred +# from several other man pages with .so macro. +MAN1= edusers.1 mailagent.1 maildist.1 \ + maillist.1 mailpatch.1 package.1 + +pre-extract: + @if [ `${SH} -c umask` != 0022 ]; then \ + ${ECHO} "Please set umask to 022 before running make,"; \ + ${ECHO} "or mailagent will not build successfully."; \ + ${FALSE}; fi + @if [ `id -u` = 0 ]; then \ + ${ECHO} "Do not build mailagent as root or it won't pass the sanity tests."; \ + ${FALSE}; fi + +post-install: + @${MKDIR} ${PREFIX}/share/examples/mailagent + @${MKDIR} ${PREFIX}/share/examples/mailagent/misc + ${CP} -pR ${WRKSRC}/misc/* ${PREFIX}/share/examples/mailagent/misc + @${LN} -fs ${PREFIX}/lib/mailagent/examples ${PREFIX}/share/examples/mailagent/agent + +.include diff --git a/mail/mailagent/files/md5 b/mail/mailagent/files/md5 new file mode 100644 index 00000000000..70369cf5bed --- /dev/null +++ b/mail/mailagent/files/md5 @@ -0,0 +1 @@ +MD5 (mailagent-3.0@68.tar.gz) = 50670b005a36a38c971489a0242d2201 diff --git a/mail/mailagent/patches/patch-aa b/mail/mailagent/patches/patch-aa new file mode 100644 index 00000000000..3fed5dfe9c7 --- /dev/null +++ b/mail/mailagent/patches/patch-aa @@ -0,0 +1,23 @@ +--- agent/filter/logfile.c.orig Fri Apr 18 16:20:26 1997 ++++ agent/filter/logfile.c Fri Apr 18 16:41:06 1997 +@@ -68,6 +68,9 @@ + #include /* Try this one in last resort */ + #endif + #endif ++#ifdef I_SYS_PARAM ++# include ++#endif + + #include "confmagic.h" + +@@ -220,8 +223,10 @@ + */ + + #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/patches/patch-ac b/mail/mailagent/patches/patch-ac new file mode 100644 index 00000000000..ab4f26f2f2a --- /dev/null +++ b/mail/mailagent/patches/patch-ac @@ -0,0 +1,21 @@ +--- agent/filter/io.c.orig Wed Jul 29 02:41:11 1998 ++++ agent/filter/io.c Mon Aug 10 21:01:22 1998 +@@ -120,6 +120,9 @@ + #ifdef I_SYS_IOCTL + #include + #endif ++#ifdef I_SYS_PARAM ++#include ++#endif + + /* + * The following should be defined in . +@@ -713,7 +716,7 @@ + */ + + char **envp; /* Environment pointer */ +-#ifdef UNION_WAIT ++#if defined(UNION_WAIT) && (!defined(BSD) || BSD < 199306) + union wait status; /* Waiting status */ + #else + int status; /* Status from command */ diff --git a/mail/mailagent/patches/patch-ag b/mail/mailagent/patches/patch-ag new file mode 100644 index 00000000000..eec23ec3f3e --- /dev/null +++ b/mail/mailagent/patches/patch-ag @@ -0,0 +1,17 @@ +*** agent/edusers.SH.orig Thu Aug 10 15:34:55 1995 +--- agent/edusers.SH Thu Jul 25 19:55:26 1996 +*************** +*** 17,22 **** + echo "Extracting agent/edusers (with variable substitutions)" + $spitshell >edusers <edusers <maildist <maildist <mailhelp <mailhelp <maillist <maillist <mailpatch <mailpatch <package <package <magent <magent < " addr +done + +while [ X$host = X ]; do + read -p "Enter fully qualified name of this host (`hostname`)> " 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 + +read -p "Enter the name of your organization> " orgname + +cat >${WRKSRC}/config.sh <