summaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1998-08-10 00:05:49 +0000
committersteve <steve@FreeBSD.org>1998-08-10 00:05:49 +0000
commit4114923080f4774e2d873db7296f861f27b821d0 (patch)
treeb3d71c4906501351dfbd790acbe6489d47e72cd5 /mail
parent00b904f342d67de27565371a7c82c357fe979de0 (diff)
downloadFreeBSD-ports-4114923080f4774e2d873db7296f861f27b821d0.zip
FreeBSD-ports-4114923080f4774e2d873db7296f861f27b821d0.tar.gz
Update to version 1.10.
PR: 5638 Submitted by: lioux@gns.com.br
Diffstat (limited to 'mail')
-rw-r--r--mail/bulk_mailer/Makefile26
-rw-r--r--mail/bulk_mailer/distinfo2
-rw-r--r--mail/bulk_mailer/files/patch-aa72
-rw-r--r--mail/bulk_mailer/files/patch-ab260
-rw-r--r--mail/bulk_mailer/pkg-descr1
-rw-r--r--mail/bulk_mailer/pkg-plist1
6 files changed, 132 insertions, 230 deletions
diff --git a/mail/bulk_mailer/Makefile b/mail/bulk_mailer/Makefile
index ef483ad..9fc8d79 100644
--- a/mail/bulk_mailer/Makefile
+++ b/mail/bulk_mailer/Makefile
@@ -1,19 +1,33 @@
# New ports collection makefile for: bulk_mailer
-# Version required: 1.5
+# Version required: 1.10
# Date created: 20 March 1997
# Whom: dlowe
#
-# $Id: Makefile,v 1.1.1.1 1997/03/26 02:14:00 jfitz Exp $
+# $Id: Makefile,v 1.2 1997/03/28 10:10:05 asami Exp $
#
-DISTNAME= bulk_mailer-1.5
+DISTNAME= bulk_mailer-1.10
CATEGORIES= mail
MASTER_SITES= ftp://cs.utk.edu/pub/moore/bulk_mailer/
-EXTRACT_SUFX= .tar
MAINTAINER= dlowe@saturn5.com
-EXTRACT_BEFORE_ARGS= -C ${WRKDIR} -xf
-NO_WRKSUBDIR= YES
+MAN1= bulk_mailer.1
+
+WRKSRC= ${WRKDIR}/bulk_mailer
+#EXTRACT_BEFORE_ARGS= -C ${WRKDIR} -xf
+
+HAS_CONFIGURE= YES
+
+ALL_TARGET= bulk_mailer
+
+do-install:
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/bulk_mailer ${PREFIX}/bin/bulk_mailer
+ @ ${INSTALL_DATA} ${WRKSRC}/bulk_mailer.README \
+ ${PREFIX}/share/doc/bulk_mailer.README
+ @ ${INSTALL_MAN} ${WRKSRC}/bulk_mailer.1 ${PREFIX}/man/man1/bulk_mailer.1
+
+post-install:
+ @ /usr/bin/strip ${PREFIX}/bin/bulk_mailer
.include <bsd.port.mk>
diff --git a/mail/bulk_mailer/distinfo b/mail/bulk_mailer/distinfo
index ce53f0e..01a1f11 100644
--- a/mail/bulk_mailer/distinfo
+++ b/mail/bulk_mailer/distinfo
@@ -1 +1 @@
-MD5 (bulk_mailer-1.5.tar) = 610cb591f1476f60f937c33c6639704d
+MD5 (bulk_mailer-1.10.tar.gz) = f5644baffbc0e3190e0460c7509583dd
diff --git a/mail/bulk_mailer/files/patch-aa b/mail/bulk_mailer/files/patch-aa
index 6a82cf1..b69230e 100644
--- a/mail/bulk_mailer/files/patch-aa
+++ b/mail/bulk_mailer/files/patch-aa
@@ -1,57 +1,15 @@
-*** Makefile.orig Sun Jan 28 17:53:14 1996
---- Makefile Fri Mar 22 19:39:36 1996
-***************
-*** 5,28 ****
- # HASSTRERROR - whether system has strerror() call
- # LIBS - local libraries to link in (e.g. -lresolv)
-
-! HASSTRDUP = # -DHAS_STRDUP
-! HASSTRERROR = # -DHAS_STRERROR
- LIBS = # -lresolv
-
-! DEFINES = $(HASSTRDUP) $(HASSTRERROR) $(DEFAULT_DOMAIN)
-
-! CFLAGS = $(DEFINES)
-
- FILES = bulk_mailer.README INSTALL bulk_mailer.c patchlevel.h Makefile
-
- bulk_mailer: bulk_mailer.o
- $(CC) $(CFLAGS) -o bulk_mailer bulk_mailer.o $(LIBS)
-
- bulk_mailer.o: bulk_mailer.c patchlevel.h
- $(CC) -c $(CFLAGS) bulk_mailer.c
-
- install: bulk_mailer
-! cp bulk_mailer /usr/local/bin
-
- clean:
- rm -f bulk_mailer bulk_mailer.o
---- 5,32 ----
- # HASSTRERROR - whether system has strerror() call
- # LIBS - local libraries to link in (e.g. -lresolv)
-
-! HASSTRDUP = -DHAS_STRDUP
-! HASSTRERROR = -DHAS_STRERROR
- LIBS = # -lresolv
-
-! DEFINES = $(HASSTRDUP) $(HASSTRERROR) $(DEFAULT_DOMAIN) -DPIPECOMMAND='"/usr/sbin/sendmail -bs %s"'
-
-! CFLAGS = -O2 -Wall $(DEFINES)
-
- FILES = bulk_mailer.README INSTALL bulk_mailer.c patchlevel.h Makefile
-
-+ all: bulk_mailer
-+
- bulk_mailer: bulk_mailer.o
- $(CC) $(CFLAGS) -o bulk_mailer bulk_mailer.o $(LIBS)
-+ strip bulk_mailer
-
- bulk_mailer.o: bulk_mailer.c patchlevel.h
- $(CC) -c $(CFLAGS) bulk_mailer.c
-
- install: bulk_mailer
-! install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} bulk_mailer ${PREFIX}/bin/bulk_mailer
-! install -c -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} bulk_mailer.README ${PREFIX}/share/doc/bulk_mailer.README
-
- clean:
- rm -f bulk_mailer bulk_mailer.o
+--- Makefile.in.ORIG Thu Jan 29 22:26:50 1998
++++ Makefile.in Thu Jan 29 22:30:35 1998
+@@ -11,10 +11,10 @@
+
+
+ #DEFINES = $(HASSTRDUP) $(HASSTRERROR) $(DEFAULT_DOMAIN)
+-DEFINES = @DEFS@
++DEFINES = @DEFS@ -DDEFAULT_DOMAIN=1
+ LIBS = @LIBS@
+
+-CFLAGS = $(DEFINES)
++CFLAGS = -O2 -Wall $(DEFINES)
+
+ FILES = bulk_mailer.README INSTALL bulk_mailer.c patchlevel.h Makefile
+
diff --git a/mail/bulk_mailer/files/patch-ab b/mail/bulk_mailer/files/patch-ab
index adecbd5..29afbd1 100644
--- a/mail/bulk_mailer/files/patch-ab
+++ b/mail/bulk_mailer/files/patch-ab
@@ -1,165 +1,95 @@
-*** bulk_mailer.c.original Sun Feb 11 09:49:32 1996
---- bulk_mailer.c Fri Mar 22 18:55:32 1996
-***************
-*** 87,92 ****
---- 87,95 ----
- #include <sysexits.h>
- #include <errno.h>
- #include <time.h>
-+ #include <string.h>
-+ #include <stdlib.h>
-+ #include <unistd.h>
- #include "patchlevel.h"
-
- #ifndef PIPECOMMAND
-***************
-*** 260,274 ****
- * memory, appending a NUL to the copy.
- */
-
-! static char *
-! strndup (str, len)
-! {
-! char *result = malloc_or_else (len + 1);
-!
-! strncpy (result, str, len);
-! result[len] = '\0';
-! return result;
-! }
-
- /*
- * sort by case-folded reversed domain
---- 263,277 ----
- * memory, appending a NUL to the copy.
- */
-
-! /* static char * */
-! /* strndup (str, len) */
-! /* { */
-! /* char *result = malloc_or_else (len + 1); */
-!
-! /* strncpy (result, str, len); */
-! /* result[len] = '\0'; */
-! /* return result; */
-! /* } */
-
- /*
- * sort by case-folded reversed domain
-***************
-*** 299,313 ****
- {
- char *at;
- char *ptr;
-! char *domain;
- char tempbuf[1024];
-! char c;
-
- /*
- * make sure there's room in the buffer.
- */
- if (num_addrs >= num_addr_slots) {
-! struct address *new;
-
- num_addr_slots += 1000;
- if (address_list == NULL)
---- 302,316 ----
- {
- char *at;
- char *ptr;
-! /* char *domain; */
- char tempbuf[1024];
-! /* char c; */
-
- /*
- * make sure there's room in the buffer.
- */
- if (num_addrs >= num_addr_slots) {
-! /* struct address *new; */
-
- num_addr_slots += 1000;
- if (address_list == NULL)
-***************
-*** 903,909 ****
- copy_message (out, in)
- FILE *out, *in;
- {
-! int c;
- char linebuf[32*1024];
- int has_valid_approved_hdr = 0;
- int has_resent_to_hdr = 0;
---- 906,912 ----
- copy_message (out, in)
- FILE *out, *in;
- {
-! /* int c; */
- char linebuf[32*1024];
- int has_valid_approved_hdr = 0;
- int has_resent_to_hdr = 0;
-***************
-*** 1077,1090 ****
- */
- lines = 0;
- while (fgets (linebuf, sizeof (linebuf), in) != NULL) {
-! if (lines < 5 &&
- /*
- * these often occur in English-text unsubscribe requests
- */
- contains (linebuf, "delete me") ||
- contains (linebuf, "remove me") ||
- contains (linebuf, "subscribe") ||
-! contains (linebuf, "unsubscribe"))
- saw_command = 1;
- ++lines;
- fputs (linebuf, out);
---- 1080,1093 ----
- */
- lines = 0;
- while (fgets (linebuf, sizeof (linebuf), in) != NULL) {
-! if (lines < 5 && (
- /*
- * these often occur in English-text unsubscribe requests
- */
- contains (linebuf, "delete me") ||
- contains (linebuf, "remove me") ||
- contains (linebuf, "subscribe") ||
-! contains (linebuf, "unsubscribe")))
- saw_command = 1;
- ++lines;
- fputs (linebuf, out);
-***************
-*** 1181,1193 ****
- int argc;
- char *argv[];
- {
-! int i;
- FILE *fp;
- FILE *tmp;
- static char template[] = "/tmp/blkXXXXXX";
- char *tempname;
-! int c;
-! char buf[1024];
-
- while (argc > 1 && (*argv[1] == '-' || *argv[1] == '+')) {
- if (strcmp (argv[1], "-debug") == 0)
---- 1184,1196 ----
- int argc;
- char *argv[];
- {
-! /* int i; */
- FILE *fp;
- FILE *tmp;
- static char template[] = "/tmp/blkXXXXXX";
- char *tempname;
-! /* int c; */
-! /* char buf[1024]; */
-
- while (argc > 1 && (*argv[1] == '-' || *argv[1] == '+')) {
- if (strcmp (argv[1], "-debug") == 0)
-***************
-*** 1338,1341 ****
---- 1341,1345 ----
-
- exit (EX_OK);
- }
-+ exit (EX_OK);
- }
+--- bulk_mailer.c.ORIG Thu Jan 29 22:32:58 1998
++++ bulk_mailer.c Thu Jan 29 23:05:35 1998
+@@ -91,6 +91,8 @@
+ #include <sysexits.h>
+ #include <errno.h>
+ #include <time.h>
++#include <unistd.h>
++#include <stdlib.h>
+ #ifdef HAVE_STRING_H
+ #include <string.h>
+ #endif
+@@ -271,6 +273,7 @@
+ * memory, appending a NUL to the copy.
+ */
+
++/*
+ static char *
+ strndup (str, len)
+ char *str;
+@@ -282,6 +285,7 @@
+ result[len] = '\0';
+ return result;
+ }
++*/
+
+ /*
+ * sort by case-folded reversed domain
+@@ -312,15 +316,15 @@
+ {
+ char *at;
+ char *ptr;
+- char *domain;
++/* char *domain; */
+ char tempbuf[1024];
+- char c;
++/* char c; */
+
+ /*
+ * make sure there's room in the buffer.
+ */
+ if (num_addrs >= num_addr_slots) {
+- struct address *new;
++/* struct address *new; */
+
+ num_addr_slots += 1000;
+ if (address_list == NULL)
+@@ -916,7 +920,7 @@
+ copy_message (out, in)
+ FILE *out, *in;
+ {
+- int c;
++/* int c; */
+ char linebuf[32*1024];
+ int has_valid_approved_hdr = 0;
+ int has_resent_to_hdr = 0;
+@@ -1105,14 +1109,14 @@
+ */
+ lines = 0;
+ while (fgets (linebuf, sizeof (linebuf), in) != NULL) {
+- if (lines < 5 &&
++ if (lines < 5 && (
+ /*
+ * these often occur in English-text unsubscribe requests
+ */
+ contains (linebuf, "delete me") ||
+ contains (linebuf, "remove me") ||
+ contains (linebuf, "subscribe") ||
+- contains (linebuf, "unsubscribe"))
++ contains (linebuf, "unsubscribe")))
+ saw_command = 1;
+ ++lines;
+ fputs (linebuf, out);
+@@ -1210,13 +1214,13 @@
+ int argc;
+ char *argv[];
+ {
+- int i;
++/* int i; */
+ FILE *fp;
+ FILE *tmp;
+ static char template[] = "/tmp/blkXXXXXX";
+ char *tempname;
+- int c;
+- char buf[1024];
++/* int c; */
++/* char buf[1024]; */
+
+ while (argc > 1 && (*argv[1] == '-' || *argv[1] == '+')) {
+ if (strcmp (argv[1], "-comment") == 0 && argc > 2) {
+@@ -1377,4 +1381,5 @@
+
+ exit (EX_OK);
+ }
++ exit (EX_OK);
+ }
diff --git a/mail/bulk_mailer/pkg-descr b/mail/bulk_mailer/pkg-descr
index 1579e1a..0de6002 100644
--- a/mail/bulk_mailer/pkg-descr
+++ b/mail/bulk_mailer/pkg-descr
@@ -5,4 +5,3 @@ recipient list by reversed domain (so similar ones sort together),
splits up the recipients into several groups containing no more than N
domains each, creates an SMTP envelope for each group of recipients,
and feeds that envelope to "/usr/sbin/sendmail -bs".
-
diff --git a/mail/bulk_mailer/pkg-plist b/mail/bulk_mailer/pkg-plist
index 80f2ba0..a809488 100644
--- a/mail/bulk_mailer/pkg-plist
+++ b/mail/bulk_mailer/pkg-plist
@@ -1,2 +1,3 @@
bin/bulk_mailer
share/doc/bulk_mailer.README
+man/man1/bulk_mailer.1.gz
OpenPOWER on IntegriCloud