1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Rename mail/ patch-xy patches to reflect the files they modify.

This commit is contained in:
Adam Weinberger 2014-07-28 23:20:38 +00:00
parent 57e5a48e26
commit 8e7fd48a29
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363275
101 changed files with 92 additions and 97 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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 */

View File

@ -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;

View File

@ -6,12 +6,11 @@ PORTVERSION= 3.0
PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= ftp://ftp.x.org/R5contrib/
EXTRACT_SUFX= .tar.Z
MAINTAINER= obrien@FreeBSD.org
COMMENT= The X Literate Biff - displays the from and subject from incoming mails
USES= imake
USES= imake tar:Z
USE_XORG= ice sm x11 xaw xext xmu xpm xt
.include <bsd.port.mk>

View File

@ -15,19 +15,15 @@ USE_XORG= xaw
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/XMailbox.ad
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/xmailbox
${INSTALL_DATA} ${WRKSRC}/dingdong.au ${STAGEDIR}${PREFIX}/share/xmailbox
${INSTALL_DATA} ${WRKSRC}/ugotmail.au ${STAGEDIR}${PREFIX}/share/xmailbox
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/xmailbox
${INSTALL_DATA} ${WRKSRC}/DISCLAIMER ${STAGEDIR}${PREFIX}/share/doc/xmailbox
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${PREFIX}/share/doc/xmailbox
.endif
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/dingdong.au ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/ugotmail.au ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/DISCLAIMER ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,9 +1,9 @@
bin/xmailbox
lib/X11/app-defaults/XMailbox
man/man1/xmailbox.1.gz
%%PORTDOCS%%share/doc/xmailbox/DISCLAIMER
%%PORTDOCS%%share/doc/xmailbox/README
share/xmailbox/dingdong.au
share/xmailbox/ugotmail.au
%%PORTDOCS%%@dirrm share/doc/xmailbox
@dirrm share/xmailbox
%%PORTDOCS%%%%DOCSDIR%%/DISCLAIMER
%%PORTDOCS%%%%DOCSDIR%%/README
%%DATADIR%%/dingdong.au
%%DATADIR%%/ugotmail.au
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm %%DATADIR%%

Some files were not shown because too many files have changed in this diff Show More