diff options
author | kuriyama <kuriyama@FreeBSD.org> | 1999-01-01 12:57:38 +0000 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 1999-01-01 12:57:38 +0000 |
commit | f422759a868edf98a1d92afc940d84a3254df972 (patch) | |
tree | 71a0ff2ca5bef6356f8754c5d37bd52a84d7675c /mail | |
parent | 18f6456f6f2601576380fb7c54dff32e9fc23c0d (diff) | |
download | FreeBSD-ports-f422759a868edf98a1d92afc940d84a3254df972.zip FreeBSD-ports-f422759a868edf98a1d92afc940d84a3254df972.tar.gz |
Mail dispatcher for mailing list. Fits nicely with majordomo.
Original port created by: itojun
Will be maintained by: kuriyama
Diffstat (limited to 'mail')
-rw-r--r-- | mail/distribute/Makefile | 50 | ||||
-rw-r--r-- | mail/distribute/distinfo | 6 | ||||
-rw-r--r-- | mail/distribute/files/patch-aa | 46 | ||||
-rw-r--r-- | mail/distribute/files/patch-ab | 11 | ||||
-rw-r--r-- | mail/distribute/files/patch-ac | 12 | ||||
-rw-r--r-- | mail/distribute/pkg-comment | 1 | ||||
-rw-r--r-- | mail/distribute/pkg-descr | 18 | ||||
-rw-r--r-- | mail/distribute/pkg-plist | 2 |
8 files changed, 146 insertions, 0 deletions
diff --git a/mail/distribute/Makefile b/mail/distribute/Makefile new file mode 100644 index 0000000..5940b71 --- /dev/null +++ b/mail/distribute/Makefile @@ -0,0 +1,50 @@ +# New ports collection makefile for: distribute +# Version required: 2.1pl24 +# Date created: 1 Oct 1997 +# Whom: itojun@itojun.org +# +# $Id$ +# + +DISTNAME= distribute-2.1-pl19 +PKGNAME= distribute-2.1.24 +CATEGORIES= mail +MASTER_SITES= ftp://ftp.foretune.co.jp/pub/network/mail/distribute/ + +PATCH_SITES= ${MASTER_SITES}BETA/ +PATCHFILES= patch.20.gz patch.21e.gz patch.22e.gz patch.23e.gz patch.24e.gz + +MAINTAINER= kuriyama@FreeBSD.ORG + +WRKSRC= ${WRKDIR}/distribute-pl19 +MAN1= distribute.1 +DIST_SUBDIR= distribute +# Compile time configuration required. +IS_INTERACTIVE= YES + +# customize below if you would like to +MAILINGLIST_DIR= ${PREFIX}/majordomo/lists +MAJORDOMO_DIR= ${PREFIX}/majordomo # mail/majordomo likes this +MAJORDOMO_LIST_DIR= ${MAJORDOMO_DIR}/lists +ARCHIVE_DIR= /var/spool/mail-list +DEF_DOMAINNAME= your.domain.here + +MAKE_ENV+= DEFAULTCONFIG="-DDEF_SEQ_PATH=\\\"$(MAILINGLIST_DIR)\\\" \ + -DDEF_RECIPIENT_PATH=\\\"$(MAILINGLIST_DIR)\\\" \ + -DDEF_MAJORDOMO_RECIPIENT_PATH=\\\"$(MAJORDOMO_LIST_DIR)\\\" \ + -DDEF_DOMAINNAME=\\\"$(DEF_DOMAINNAME)\\\" \ + -DDEF_ARCHIVE_PATH=\\\"$(ARCHIVE_DIR)\\\"" \ + INSTALL="${INSTALL}" \ + INSTALL_MAN="${INSTALL_MAN}" + +post-build: message +post-install: message +message:: + @${ECHO} "===> distribute was compiled with the following configuration:" + @${ECHO} " membership file directory: ${MAILINGLIST_DIR}" + @${ECHO} " membership file directory: ${MAJORDOMO_LIST_DIR} (for majordomo)" + @${ECHO} " archiving directory: ${ARCHIVE_DIR}" + @${ECHO} " if necessery, override them and perform compilation again." + @${ECHO} " there's no way to override them at runtime." + +.include <bsd.port.mk> diff --git a/mail/distribute/distinfo b/mail/distribute/distinfo new file mode 100644 index 0000000..9c5912e --- /dev/null +++ b/mail/distribute/distinfo @@ -0,0 +1,6 @@ +MD5 (distribute/distribute-2.1-pl19.tar.gz) = 8f37899f0101423dba732718da64d97c +MD5 (distribute/patch.20.gz) = c530466c690baf410ec50b014c3d3aa6 +MD5 (distribute/patch.21e.gz) = e9465e3a1f34d9fd6a5d40704024e3a7 +MD5 (distribute/patch.22e.gz) = 44e86eed0bb78522a2a5eab0dc8cb1dd +MD5 (distribute/patch.23e.gz) = fb7043530b09b391568ee72f36cba2c0 +MD5 (distribute/patch.24e.gz) = 078daebdd79c62374f6c20c76a7c0c97 diff --git a/mail/distribute/files/patch-aa b/mail/distribute/files/patch-aa new file mode 100644 index 0000000..117a4d6 --- /dev/null +++ b/mail/distribute/files/patch-aa @@ -0,0 +1,46 @@ +--- Makefile.orig Thu Oct 2 01:18:07 1997 ++++ Makefile Thu Oct 2 01:21:10 1997 +@@ -66,7 +66,7 @@ + ## -DDEF_ALIAS_CHAR_OPTION=\"b\" + + # +-DESTDIR= ++DESTDIR= ${PREFIX} + # + CFLAGS= -g ${OPTIONS} ${DEFAULTCONFIG} ${RCONFIG} + # -Wall +@@ -75,8 +75,8 @@ + MAKE= make + CC= ${PURIFY} ${PURIFYOPTS} cc + +-WHERE= /usr/local/libexec +-MANDIR= /usr/local/man ++WHERE= /sbin ++MANDIR= /man + MANSEC= 1 + + # Install as +@@ -84,7 +84,7 @@ + GROUP= daemon + + # install +-INSTALL= install -c ++#INSTALL= install -c + + # perl + PERL=perl +@@ -130,11 +130,11 @@ + @size xarchive + + install: xdistribute distribute.1 xarchive +- ${INSTALL} -s -o ${OWNER} -g ${GROUP} -m 511 xdistribute \ ++ ${INSTALL} -c -s -o ${OWNER} -g ${GROUP} -m 511 xdistribute \ + ${DESTDIR}${WHERE}/distribute +- ${INSTALL} -s -o ${OWNER} -g ${GROUP} -m 511 xarchive \ ++ ${INSTALL} -c -s -o ${OWNER} -g ${GROUP} -m 511 xarchive \ + ${DESTDIR}${WHERE}/archive +- ${INSTALL} -m 444 distribute.1 \ ++ ${INSTALL_MAN} distribute.1 \ + ${DESTDIR}${MANDIR}/man${MANSEC}/distribute.${MANSEC} + + testinst: xdistribute xarchive diff --git a/mail/distribute/files/patch-ab b/mail/distribute/files/patch-ab new file mode 100644 index 0000000..b975cd3 --- /dev/null +++ b/mail/distribute/files/patch-ab @@ -0,0 +1,11 @@ +--- config.h.orig Sun Sep 14 09:25:53 1997 ++++ config.h Sun Sep 14 09:26:01 1997 +@@ -86,6 +86,8 @@ + * Other set-ups + */ + ++#if 0 + #ifndef _PATH_SENDMAIL + # define _PATH_SENDMAIL "/usr/lib/sendmail" /* default */ ++#endif + #endif diff --git a/mail/distribute/files/patch-ac b/mail/distribute/files/patch-ac new file mode 100644 index 0000000..07c9d89 --- /dev/null +++ b/mail/distribute/files/patch-ac @@ -0,0 +1,12 @@ +--- distribute.c.orig Sun Sep 14 09:26:57 1997 ++++ distribute.c Sun Sep 14 09:27:09 1997 +@@ -37,7 +37,8 @@ + #include <unistd.h> + #include <string.h> + +-#if defined(__bsdi__) /* may be wrong -- we need to use NET/2 def.*/ ++/* may be wrong -- we need to use NET/2 def.*/ ++#if defined(__bsdi__) || defined(__FreeBSD__) + # include <paths.h> /* for sendmail path */ + #endif + diff --git a/mail/distribute/pkg-comment b/mail/distribute/pkg-comment new file mode 100644 index 0000000..f7101c6 --- /dev/null +++ b/mail/distribute/pkg-comment @@ -0,0 +1 @@ +Mail dispatcher for mailing list. Fits nicely with majordomo. diff --git a/mail/distribute/pkg-descr b/mail/distribute/pkg-descr new file mode 100644 index 0000000..4736767 --- /dev/null +++ b/mail/distribute/pkg-descr @@ -0,0 +1,18 @@ +distribute - reforward incoming messages to a mailing list + +Distribute takes as its standard input a mail message, modifies +the header (and optionally the body) of that message, then invokes +sendmail to send the message to the specified recipients. It is +primarily useful for those who run large mailing lists. + +Distribute does not include membership management. It only does the +rewrite and dispatch of the mailng list emails. +Use majordomo (ports/mail/majordomo) for membership management. + +Facilities include: + Article numbering + Subject rewrite to Subject: (mailing-list 1234) + Proper handling of error related headers + Reply-to rewrite/insertion if necessery + Archiving + membership file from Majordomo's configuration directory diff --git a/mail/distribute/pkg-plist b/mail/distribute/pkg-plist new file mode 100644 index 0000000..6013317 --- /dev/null +++ b/mail/distribute/pkg-plist @@ -0,0 +1,2 @@ +sbin/distribute +sbin/archive |