Date: Thu, 24 Apr 2003 16:56:19 +0200 (CEST) From: Gerhard Gonter <gonter@whisky.wu-wien.ac.at> To: FreeBSD-gnats-submit@FreeBSD.org Cc: gonter@whisky.wu-wien.ac.at Subject: ports/51355: new port: mail2sms Message-ID: <200304241456.h3OEuJW52786@whisky.wu-wien.ac.at> Resent-Message-ID: <200304241500.h3OF0M3k040455@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 51355 >Category: ports >Synopsis: new port: mail2sms >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Apr 24 08:00:22 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Gerhard Gonter >Release: FreeBSD 4.7-RELEASE-p9 i386 >Organization: >Environment: System: FreeBSD charon.wu-wien.ac.at 4.7-RELEASE-p9 FreeBSD 4.7-RELEASE-p9 #0: Tue Mar 25 07:19:00 CET 2003 root@mingus.wu-wien.ac.at:/usr/obj/usr/src/sys/GENERIC i386 >Description: This is a small utility which strips mails down to fit into a SMS. >How-To-Repeat: N/A >Fix: # 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@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@ieee.org XCOMMENT= Mail to SMS converter X XGNU_CONFIGURE= yes X XMAN1= mail2sms.1 XMAN5= mail2sms.5 X Xpost-patch: X ${CP} ${WRKSRC}/mail2sms.4 ${WRKSRC}/mail2sms.5 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 "/usr/local/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@haxx.se> with lofs of X+mail2sms has been written by Daniel Stenberg <daniel@haxx.se> with lots of X help from friendly contributors, such as: X X - Linus Nielsen <linus@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 /usr/local/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 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304241456.h3OEuJW52786>