aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2013-10-01 20:29:34 +0800
committermat <mat@FreeBSD.org>2013-10-01 20:29:34 +0800
commit91ac9243f53bd824bb32e6d87acc02a09f9b0b79 (patch)
treebf14e7a5b51a9ee5998424dcbe988a487a7855fa
parent2aee913b159c4a389cdf41aa03d2712003c110a2 (diff)
downloadfreebsd-ports-gnome-91ac9243f53bd824bb32e6d87acc02a09f9b0b79.tar.gz
freebsd-ports-gnome-91ac9243f53bd824bb32e6d87acc02a09f9b0b79.tar.zst
freebsd-ports-gnome-91ac9243f53bd824bb32e6d87acc02a09f9b0b79.zip
* Convert to staging
* Add license * Silence compiler warnings
-rw-r--r--mail/bulk_mailer/Makefile16
-rw-r--r--mail/bulk_mailer/files/patch-Makefile.in6
-rw-r--r--mail/bulk_mailer/files/patch-bulk_mailer.c13
-rw-r--r--mail/bulk_mailer/pkg-plist1
4 files changed, 22 insertions, 14 deletions
diff --git a/mail/bulk_mailer/Makefile b/mail/bulk_mailer/Makefile
index d456130231b1..296ce3a7cc06 100644
--- a/mail/bulk_mailer/Makefile
+++ b/mail/bulk_mailer/Makefile
@@ -12,22 +12,20 @@ MAINTAINER= mat@FreeBSD.org
COMMENT= Speeds delivery to mailing lists by sorting & batching addresses
GNU_CONFIGURE= YES
-CONFIGURE_ARGS= --cache-file=/dev/null
+OPTIONS_DEFINE= DOCS
+LICENSE= GPLv3
ALL_TARGET= bulk_mailer
-MAN1= bulk_mailer.1
-
-NO_STAGE= yes
.include <bsd.port.options.mk>
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/bulk_mailer ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/bulk_mailer.1 ${PREFIX}/man/man1
+ ${INSTALL_PROGRAM} ${WRKSRC}/bulk_mailer ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/bulk_mailer.1 ${STAGEDIR}${PREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/bulk_mailer.README ${DOCSDIR}/README
- ${INSTALL_DATA} ${WRKSRC}/bulk_mailer.ps ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/bulk_mailer.README ${STAGEDIR}${DOCSDIR}/README
+ ${INSTALL_DATA} ${WRKSRC}/bulk_mailer.ps ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/mail/bulk_mailer/files/patch-Makefile.in b/mail/bulk_mailer/files/patch-Makefile.in
index e492fa561a7b..4792ff1fe2f1 100644
--- a/mail/bulk_mailer/files/patch-Makefile.in
+++ b/mail/bulk_mailer/files/patch-Makefile.in
@@ -1,5 +1,5 @@
---- Makefile.in.orig Tue Sep 1 12:37:34 1998
-+++ Makefile.in Fri Feb 12 17:36:11 1999
+--- ./Makefile.in.orig 2000-05-24 21:53:11.000000000 +0200
++++ ./Makefile.in 2013-10-01 12:32:37.000000000 +0200
@@ -1,7 +1,7 @@
-DEFINES = @DEFS@
+DEFINES = @DEFS@ -DDEFAULT_DOMAIN=1 -DPIPECOMMAND='"/usr/sbin/sendmail -bs %s"'
@@ -8,5 +8,5 @@
-CFLAGS = $(DEFINES)
+CFLAGS += -Wall $(DEFINES)
- FILES = bulk_mailer.README INSTALL bulk_mailer.c patchlevel.h Makefile
+ FILES = bulk_mailer.README INSTALL bulk_mailer.c patchlevel.h Makefile.in
diff --git a/mail/bulk_mailer/files/patch-bulk_mailer.c b/mail/bulk_mailer/files/patch-bulk_mailer.c
index 57befc3fa769..708f54cb5ad4 100644
--- a/mail/bulk_mailer/files/patch-bulk_mailer.c
+++ b/mail/bulk_mailer/files/patch-bulk_mailer.c
@@ -1,5 +1,5 @@
---- bulk_mailer.c.orig Wed May 24 23:34:33 2000
-+++ bulk_mailer.c Thu Sep 12 17:32:58 2002
+--- ./bulk_mailer.c.orig 2000-05-24 21:34:33.000000000 +0200
++++ ./bulk_mailer.c 2013-10-01 12:36:24.324624000 +0200
@@ -95,11 +95,16 @@
#include <sysexits.h>
#include <errno.h>
@@ -29,6 +29,15 @@
/*
* (default) max different domains per envelope.
+@@ -238,7 +245,7 @@
+
+ static char *
+ realloc_or_else (oldbuf, size)
+-char *oldbuf;
++void *oldbuf;
+ int size;
+ {
+ char *result;
@@ -296,6 +303,7 @@
* memory, appending a NUL to the copy.
*/
diff --git a/mail/bulk_mailer/pkg-plist b/mail/bulk_mailer/pkg-plist
index 13d271772a77..f5542d7f305b 100644
--- a/mail/bulk_mailer/pkg-plist
+++ b/mail/bulk_mailer/pkg-plist
@@ -1,4 +1,5 @@
bin/bulk_mailer
+man/man1/bulk_mailer.1.gz
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/bulk_mailer.ps
%%PORTDOCS%%@dirrm %%DOCSDIR%%