ports/51355: new port: mail2sms

Gerhard Gonter gonter at whisky.wu-wien.ac.at
Fri Apr 25 08:20:15 UTC 2003


The following reply was made to PR ports/51355; it has been noted by GNATS.

From: Gerhard Gonter <gonter at whisky.wu-wien.ac.at>
To: freebsd-gnats-submit at FreeBSD.org
Cc:  
Subject: Re: ports/51355: new port: mail2sms
Date: Fri, 25 Apr 2003 10:10:28 +0200 (CEST)

 According to Jim Geovedi:
 > > [...]
 > > X-#define GLOBAL_CONFIG "/etc/mail/sms/mail2sms.conf"
 > > X+#define GLOBAL_CONFIG "/usr/local/etc/mail2sms.conf"
 > 
 > > [...]
 > > X-.B /etc/mail/sms/mail2sms.conf
 > > X+.B /usr/local/etc/mail2sms.conf
 > 
 > Do try to make your port patch and install relative to ${PREFIX}. By not
 > hardcoding them will make the port much more flexible and able to cater 
 > to the needs of other sites.
 
 Thanks for the hint, here is the new shar file.
 
 +gg
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	mail2sms
 #	mail2sms/Makefile
 #	mail2sms/distinfo
 #	mail2sms/pkg-plist
 #	mail2sms/pkg-descr
 #	mail2sms/files
 #	mail2sms/files/patch-aa
 #
 echo c - mail2sms
 mkdir -p mail2sms > /dev/null 2>&1
 echo x - mail2sms/Makefile
 sed 's/^X//' >mail2sms/Makefile << 'END-of-mail2sms/Makefile'
 X# New ports collection makefile for:   mail2sms
 X# Date created:		2003-04-16
 X# Whom:			Gerhard Gonter <g.gonter at ieee.org>
 X#
 X# $FreeBSD: $
 X
 XPORTNAME=	mail2sms
 XPORTVERSION=	1.3.5
 XCATEGORIES=	mail
 XMASTER_SITES=	http://www.contactor.se/~dast/stuff/
 XDISTNAME=	mail2sms-${PORTVERSION}
 X
 XMAINTAINER=     g.gonter at ieee.org
 XCOMMENT=	Mail to SMS converter
 X
 XGNU_CONFIGURE=	yes
 X
 XMAN1=		mail2sms.1
 XMAN5=		mail2sms.5
 X
 X
 Xpost-patch:
 X	${CP} ${WRKSRC}/mail2sms.4 ${WRKSRC}/mail2sms.5
 X	${SED} -i.bak -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/mail2sms.5
 X	${SED} -i.bak -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/main.c
 X
 Xdo-install:
 X	${INSTALL_PROGRAM} ${WRKSRC}/mail2sms ${PREFIX}/bin
 X	${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1/
 X	${INSTALL_MAN} ${WRKSRC}/${MAN5} ${PREFIX}/man/man5/
 X.if !defined(NOPORTDOCS)
 X	${MKDIR} ${PREFIX}/share/doc/mail2sms
 X	${INSTALL_MAN} ${WRKSRC}/README ${WRKSRC}/REGEX ${WRKSRC}/example.conf \
 X          ${PREFIX}/share/doc/mail2sms
 X.endif
 X
 X.include <bsd.port.mk>
 END-of-mail2sms/Makefile
 echo x - mail2sms/distinfo
 sed 's/^X//' >mail2sms/distinfo << 'END-of-mail2sms/distinfo'
 XMD5 (mail2sms-1.3.5.tar.gz) = 6aa360998779bff1d3333c7a762d0e9e
 END-of-mail2sms/distinfo
 echo x - mail2sms/pkg-plist
 sed 's/^X//' >mail2sms/pkg-plist << 'END-of-mail2sms/pkg-plist'
 Xbin/mail2sms
 X%%PORTDOCS%%share/doc/mail2sms/README
 X%%PORTDOCS%%share/doc/mail2sms/REGEX
 X%%PORTDOCS%%share/doc/mail2sms/example.conf
 X%%PORTDOCS%%@dirrm share/doc/mail2sms
 END-of-mail2sms/pkg-plist
 echo x - mail2sms/pkg-descr
 sed 's/^X//' >mail2sms/pkg-descr << 'END-of-mail2sms/pkg-descr'
 Xmail2sms converts a single (large) mail to a tiny text with contents
 Xfrom the mail. Perfectly suitable to send as an SMS message to a
 XGSM telephone.
 X
 XWWW: http://www.contactor.se/~dast/mail2sms/
 XWWW: http://sourceforge.net/projects/mail2sms/
 END-of-mail2sms/pkg-descr
 echo c - mail2sms/files
 mkdir -p mail2sms/files > /dev/null 2>&1
 echo x - mail2sms/files/patch-aa
 sed 's/^X//' >mail2sms/files/patch-aa << 'END-of-mail2sms/files/patch-aa'
 X--- main.c.orig	Wed Apr 16 05:11:21 2003
 X+++ main.c	Wed Apr 16 05:12:16 2003
 X@@ -18,7 +18,7 @@
 X #ifdef AFS
 X #define CONFIGDIR "/var/mail2sms/"
 X #else
 X-#define GLOBAL_CONFIG "/etc/mail/sms/mail2sms.conf"
 X+#define GLOBAL_CONFIG "%%PREFIX%%/etc/mail2sms.conf"
 X #endif
 X 
 X extern FILE *logfile; /* write logs to this file pointer */
 X--- parse.c.orig	Wed Apr 16 05:06:23 2003
 X+++ parse.c	Wed Apr 16 05:45:31 2003
 X@@ -48,8 +48,9 @@
 X /*
 X ** strcasestr() - case insensitive strstr()
 X */
 X- 
 X-char *strcasestr(char *haystack, char *needle)
 X+
 X+/* FreeBSD defines this function a bit differently, so rename this version */
 X+char *mail2sms_strcasestr(char *haystack, char *needle)
 X {
 X   int nlen = strlen(needle);
 X   int hlen = strlen(haystack);
 X--- mail2sms.1.orig	Wed Apr 16 05:22:01 2003
 X+++ mail2sms.1	Wed Apr 16 05:22:57 2003
 X@@ -32,7 +32,7 @@
 X .IP "-v"
 X Shows mail2sms' version number then quits.
 X .SH AUTHORS
 X-mail2sms has been written by Daniel Stenberg <daniel at haxx.se> with lofs of
 X+mail2sms has been written by Daniel Stenberg <daniel at haxx.se> with lots of
 X help from friendly contributors, such as:
 X 
 X  - Linus Nielsen <linus at haxx.se>
 X@@ -48,4 +48,4 @@
 X .SH WWW
 X http://www.contactor.se/~dast/mail2sms/
 X .SH "SEE ALSO"
 X-.BR mail2sms (4)
 X+.BR mail2sms (5)
 X--- mail2sms.4.orig	Wed Apr 16 05:11:35 2003
 X+++ mail2sms.4	Wed Apr 16 06:03:10 2003
 X@@ -1,12 +1,12 @@
 X .\" You can view this file with:
 X-.\" nroff -man mail2sms.4
 X+.\" nroff -man mail2sms.5
 X .\" Written by Daniel Stenberg
 X .\"
 X-.TH mail2sms 4 "11 October 1999"
 X+.TH mail2sms 5 "11 October 1999"
 X .SH NAME
 X mail2sms \- reads a (MIME) mail and converts it to a short message.
 X .SH SYNOPSIS
 X-.B /etc/mail/sms/mail2sms.conf
 X+.B %%PREFIX%%/etc/mail2sms.conf
 X .br
 X .B ~/.mail2sms
 X .SH DESCRIPTION
 X@@ -67,7 +67,7 @@
 X http://www.contactor.se/~dast/mail2sms/
 X .SH "SEE ALSO"
 X .BR mail2sms (1),
 X-.BR sendmail (1M),
 X+.BR sendmail (8),
 X .BR procmail (1),
 X-.BR aliases (4)
 X+.BR aliases (5)
 X 
 END-of-mail2sms/files/patch-aa
 exit
 
 



More information about the freebsd-ports-bugs mailing list