1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

mail/mail2sms: Fix build with lvm15

- Refresh patches

Approved by:	portmgr (blanket)
This commit is contained in:
Muhammad Moinur Rahman 2023-06-05 17:51:53 +02:00
parent cde38a588a
commit 8589b1fa03
5 changed files with 28 additions and 18 deletions

View File

@ -1,5 +1,6 @@
PORTNAME= mail2sms
PORTVERSION= 1.3.5
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://daniel.haxx.se/projects/mail2sms/ \
http://bitrote.org/distfiles/
@ -8,13 +9,22 @@ MAINTAINER= jharris@widomaker.com
COMMENT= Mail to SMS converter
WWW= https://daniel.haxx.se/projects/mail2sms/
GNU_CONFIGURE= yes
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/LEGAL
OPTIONS_DEFINE= DOCS
GNU_CONFIGURE= yes
PLIST_FILES= bin/mail2sms man/man1/mail2sms.1.gz man/man5/mail2sms.5.gz
PORTDOCS= README REGEX example.conf
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
CFLAGS+= -Wno-error=int-conversion
.endif
post-patch:
${CP} ${WRKSRC}/mail2sms.4 ${WRKSRC}/mail2sms.5
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/mail2sms.5
@ -27,4 +37,4 @@ do-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -1,6 +1,6 @@
--- mail2sms.1.orig Wed Apr 16 05:22:01 2003
+++ mail2sms.1 Wed Apr 16 05:22:57 2003
@@ -32,7 +32,7 @@
--- mail2sms.1.orig 2001-10-19 14:12:56 UTC
+++ mail2sms.1
@@ -32,7 +32,7 @@ shuts off all logging
.IP "-v"
Shows mail2sms' version number then quits.
.SH AUTHORS
@ -9,7 +9,7 @@
help from friendly contributors, such as:
- Linus Nielsen <linus@haxx.se>
@@ -48,4 +48,4 @@
@@ -48,4 +48,4 @@ help from friendly contributors, such as:
.SH WWW
http://www.contactor.se/~dast/mail2sms/
.SH "SEE ALSO"

View File

@ -1,5 +1,5 @@
--- mail2sms.4.orig Wed Apr 16 05:11:35 2003
+++ mail2sms.4 Wed Apr 16 06:03:10 2003
--- mail2sms.4.orig 2000-01-20 19:16:05 UTC
+++ mail2sms.4
@@ -1,12 +1,12 @@
.\" You can view this file with:
-.\" nroff -man mail2sms.4
@ -16,7 +16,7 @@
.br
.B ~/.mail2sms
.SH DESCRIPTION
@@ -67,7 +67,7 @@
@@ -67,7 +67,7 @@ mail2sms from.
http://www.contactor.se/~dast/mail2sms/
.SH "SEE ALSO"
.BR mail2sms (1),

View File

@ -1,6 +1,6 @@
--- main.c.orig Wed Apr 16 05:11:21 2003
+++ main.c Wed Apr 16 05:12:16 2003
@@ -18,7 +18,7 @@
--- main.c.orig 2002-04-26 20:36:46 UTC
+++ main.c
@@ -18,7 +18,7 @@ extern int maxparts;
#ifdef AFS
#define CONFIGDIR "/var/mail2sms/"
#else

View File

@ -1,6 +1,6 @@
--- parse.c.orig Wed Apr 16 05:06:23 2003
+++ parse.c Wed Apr 16 05:45:31 2003
@@ -48,8 +48,9 @@
--- parse.c.orig 2002-06-10 12:19:44 UTC
+++ parse.c
@@ -48,8 +48,9 @@ int preferedcontent(char *type)
/*
** strcasestr() - case insensitive strstr()
*/
@ -12,12 +12,12 @@
{
int nlen = strlen(needle);
int hlen = strlen(haystack);
@@ -325,7 +326,7 @@ struct body * process(char *mbox, /*
@@ -325,7 +326,7 @@ struct body * process(char *mbox, /* file name */
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;