aboutsummaryrefslogtreecommitdiff
path: root/mail/mail2sms
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-28 23:20:38 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-28 23:20:38 +0000
commit8e7fd48a294d7d6e54c6d07989807cff33ab19bd (patch)
tree0e35601cdb966c752e15cc4e5381c7e20e13fd50 /mail/mail2sms
parent57e5a48e26ef774dae50d5773cb943bf994f6894 (diff)
downloadports-8e7fd48a294d7d6e54c6d07989807cff33ab19bd.tar.gz
ports-8e7fd48a294d7d6e54c6d07989807cff33ab19bd.zip
Rename mail/ patch-xy patches to reflect the files they modify.
Notes
Notes: svn path=/head/; revision=363275
Diffstat (limited to 'mail/mail2sms')
-rw-r--r--mail/mail2sms/files/patch-aa79
-rw-r--r--mail/mail2sms/files/patch-mail2sms.117
-rw-r--r--mail/mail2sms/files/patch-mail2sms.428
-rw-r--r--mail/mail2sms/files/patch-main.c11
-rw-r--r--mail/mail2sms/files/patch-parse.c23
5 files changed, 79 insertions, 79 deletions
diff --git a/mail/mail2sms/files/patch-aa b/mail/mail2sms/files/patch-aa
deleted file mode 100644
index 9c6426113e45..000000000000
--- a/mail/mail2sms/files/patch-aa
+++ /dev/null
@@ -1,79 +0,0 @@
---- main.c.orig Wed Apr 16 05:11:21 2003
-+++ main.c Wed Apr 16 05:12:16 2003
-@@ -18,7 +18,7 @@
- #ifdef AFS
- #define CONFIGDIR "/var/mail2sms/"
- #else
--#define GLOBAL_CONFIG "/etc/mail/sms/mail2sms.conf"
-+#define GLOBAL_CONFIG "%%PREFIX%%/etc/mail2sms.conf"
- #endif
-
- extern FILE *logfile; /* write logs to this file pointer */
---- parse.c.orig Wed Apr 16 05:06:23 2003
-+++ parse.c Wed Apr 16 05:45:31 2003
-@@ -48,8 +48,9 @@
- /*
- ** strcasestr() - case insensitive strstr()
- */
--
--char *strcasestr(char *haystack, char *needle)
-+
-+/* FreeBSD defines this function a bit differently, so rename this version */
-+char *mail2sms_strcasestr(char *haystack, char *needle)
- {
- int nlen = strlen(needle);
- int hlen = strlen(haystack);
-@@ -325,7 +326,7 @@ struct body * process(char *mbox, /*
- if (use_stdin || !mbox || !strcasecmp(mbox, "NONE"))
- fp = stdin;
- else if ((fp = fopen(mbox, "r")) == NULL) {
-- return; /* add error code */
-+ return -1; /* add error code */
- }
-
- isinheader = 1;
---- mail2sms.1.orig Wed Apr 16 05:22:01 2003
-+++ mail2sms.1 Wed Apr 16 05:22:57 2003
-@@ -32,7 +32,7 @@
- .IP "-v"
- Shows mail2sms' version number then quits.
- .SH AUTHORS
--mail2sms has been written by Daniel Stenberg <daniel@haxx.se> with lofs of
-+mail2sms has been written by Daniel Stenberg <daniel@haxx.se> with lots of
- help from friendly contributors, such as:
-
- - Linus Nielsen <linus@haxx.se>
-@@ -48,4 +48,4 @@
- .SH WWW
- http://www.contactor.se/~dast/mail2sms/
- .SH "SEE ALSO"
--.BR mail2sms (4)
-+.BR mail2sms (5)
---- mail2sms.4.orig Wed Apr 16 05:11:35 2003
-+++ mail2sms.4 Wed Apr 16 06:03:10 2003
-@@ -1,12 +1,12 @@
- .\" You can view this file with:
--.\" nroff -man mail2sms.4
-+.\" nroff -man mail2sms.5
- .\" Written by Daniel Stenberg
- .\"
--.TH mail2sms 4 "11 October 1999"
-+.TH mail2sms 5 "11 October 1999"
- .SH NAME
- mail2sms \- reads a (MIME) mail and converts it to a short message.
- .SH SYNOPSIS
--.B /etc/mail/sms/mail2sms.conf
-+.B %%PREFIX%%/etc/mail2sms.conf
- .br
- .B ~/.mail2sms
- .SH DESCRIPTION
-@@ -67,7 +67,7 @@
- http://www.contactor.se/~dast/mail2sms/
- .SH "SEE ALSO"
- .BR mail2sms (1),
--.BR sendmail (1M),
-+.BR sendmail (8),
- .BR procmail (1),
--.BR aliases (4)
-+.BR aliases (5)
-
diff --git a/mail/mail2sms/files/patch-mail2sms.1 b/mail/mail2sms/files/patch-mail2sms.1
new file mode 100644
index 000000000000..34d60cfce867
--- /dev/null
+++ b/mail/mail2sms/files/patch-mail2sms.1
@@ -0,0 +1,17 @@
+--- mail2sms.1.orig Wed Apr 16 05:22:01 2003
++++ mail2sms.1 Wed Apr 16 05:22:57 2003
+@@ -32,7 +32,7 @@
+ .IP "-v"
+ Shows mail2sms' version number then quits.
+ .SH AUTHORS
+-mail2sms has been written by Daniel Stenberg <daniel@haxx.se> with lofs of
++mail2sms has been written by Daniel Stenberg <daniel@haxx.se> with lots of
+ help from friendly contributors, such as:
+
+ - Linus Nielsen <linus@haxx.se>
+@@ -48,4 +48,4 @@
+ .SH WWW
+ http://www.contactor.se/~dast/mail2sms/
+ .SH "SEE ALSO"
+-.BR mail2sms (4)
++.BR mail2sms (5)
diff --git a/mail/mail2sms/files/patch-mail2sms.4 b/mail/mail2sms/files/patch-mail2sms.4
new file mode 100644
index 000000000000..325d30d5548e
--- /dev/null
+++ b/mail/mail2sms/files/patch-mail2sms.4
@@ -0,0 +1,28 @@
+--- mail2sms.4.orig Wed Apr 16 05:11:35 2003
++++ mail2sms.4 Wed Apr 16 06:03:10 2003
+@@ -1,12 +1,12 @@
+ .\" You can view this file with:
+-.\" nroff -man mail2sms.4
++.\" nroff -man mail2sms.5
+ .\" Written by Daniel Stenberg
+ .\"
+-.TH mail2sms 4 "11 October 1999"
++.TH mail2sms 5 "11 October 1999"
+ .SH NAME
+ mail2sms \- reads a (MIME) mail and converts it to a short message.
+ .SH SYNOPSIS
+-.B /etc/mail/sms/mail2sms.conf
++.B %%PREFIX%%/etc/mail2sms.conf
+ .br
+ .B ~/.mail2sms
+ .SH DESCRIPTION
+@@ -67,7 +67,7 @@
+ http://www.contactor.se/~dast/mail2sms/
+ .SH "SEE ALSO"
+ .BR mail2sms (1),
+-.BR sendmail (1M),
++.BR sendmail (8),
+ .BR procmail (1),
+-.BR aliases (4)
++.BR aliases (5)
+
diff --git a/mail/mail2sms/files/patch-main.c b/mail/mail2sms/files/patch-main.c
new file mode 100644
index 000000000000..ff54c97870b8
--- /dev/null
+++ b/mail/mail2sms/files/patch-main.c
@@ -0,0 +1,11 @@
+--- main.c.orig Wed Apr 16 05:11:21 2003
++++ main.c Wed Apr 16 05:12:16 2003
+@@ -18,7 +18,7 @@
+ #ifdef AFS
+ #define CONFIGDIR "/var/mail2sms/"
+ #else
+-#define GLOBAL_CONFIG "/etc/mail/sms/mail2sms.conf"
++#define GLOBAL_CONFIG "%%PREFIX%%/etc/mail2sms.conf"
+ #endif
+
+ extern FILE *logfile; /* write logs to this file pointer */
diff --git a/mail/mail2sms/files/patch-parse.c b/mail/mail2sms/files/patch-parse.c
new file mode 100644
index 000000000000..0c46925f1574
--- /dev/null
+++ b/mail/mail2sms/files/patch-parse.c
@@ -0,0 +1,23 @@
+--- parse.c.orig Wed Apr 16 05:06:23 2003
++++ parse.c Wed Apr 16 05:45:31 2003
+@@ -48,8 +48,9 @@
+ /*
+ ** strcasestr() - case insensitive strstr()
+ */
+-
+-char *strcasestr(char *haystack, char *needle)
++
++/* FreeBSD defines this function a bit differently, so rename this version */
++char *mail2sms_strcasestr(char *haystack, char *needle)
+ {
+ int nlen = strlen(needle);
+ int hlen = strlen(haystack);
+@@ -325,7 +326,7 @@ struct body * process(char *mbox, /*
+ if (use_stdin || !mbox || !strcasecmp(mbox, "NONE"))
+ fp = stdin;
+ else if ((fp = fopen(mbox, "r")) == NULL) {
+- return; /* add error code */
++ return -1; /* add error code */
+ }
+
+ isinheader = 1;