Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 May 2003 13:02:15 +0200
From:      Anton Berezin <tobez@tobez.org>
To:        Shawn Yeager <mail@shawnyeager.com>
Cc:        g.gonter@ieee.org
Subject:   Re: FreeBSD Port: mail2sms-1.3.5
Message-ID:  <20030515110215.GG15336@heechee.tobez.org>
In-Reply-To: <F2DA0CBA-84CB-11D7-A9EA-000A95682EB0@shawnyeager.com>
References:  <F2DA0CBA-84CB-11D7-A9EA-000A95682EB0@shawnyeager.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, May 12, 2003 at 06:49:11PM -0400, Shawn Yeager wrote:
> Hi. I just received the following error when attempting to build 
> mail2sms on my FreeBSD 4.6.2 system:
> 
> -----
> 
> <shawn@bigbox dir="/usr/ports/mail/mail2sms"/> sudo make install clean
> Password:
> >> mail2sms-1.3.5.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
> >> Attempting to fetch from http://www.contactor.se/~dast/stuff/.
> Receiving mail2sms-1.3.5.tar.gz (123558 bytes): 100%
> 123558 bytes transferred in 4.7 seconds (25.43 kBps)
> ===>  Extracting for mail2sms-1.3.5
> >> Checksum OK for mail2sms-1.3.5.tar.gz.
> ===>  Patching for mail2sms-1.3.5
> ===>  Applying FreeBSD patches for mail2sms-1.3.5
> /bin/cp /usr/ports/mail/mail2sms/work/mail2sms-1.3.5/mail2sms.4 
> /usr/ports/mail/mail2sms/work/mail2sms-1.3.5/mail2sms.5
> /usr/bin/sed -i.bak -e 's|%%PREFIX%%|/usr/local|g' 
> /usr/ports/mail/mail2sms/work/mail2sms-1.3.5/mail2sms.5
> sed: illegal option -- i
> usage: sed script [-Ean] [file ...]
>        sed [-an] [-e script] ... [-f script_file] ... [file ...]
> *** Error code 1
> 
> Stop in /usr/ports/mail/mail2sms.

Try the following [untested] patch:

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/mail2sms/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile	1 May 2003 15:37:57 -0000	1.1
+++ Makefile	15 May 2003 11:01:06 -0000
@@ -14,14 +14,15 @@
 COMMENT=	Mail to SMS converter
 
 GNU_CONFIGURE=	yes
+USE_REINPLACE=	yes
 
 MAN1=		mail2sms.1
 MAN5=		mail2sms.5
 
 post-patch:
 	${CP} ${WRKSRC}/mail2sms.4 ${WRKSRC}/mail2sms.5
-	${SED} -i.bak -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/mail2sms.5
-	${SED} -i.bak -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/main.c
+	${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/mail2sms.5
+	${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/main.c
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/mail2sms ${PREFIX}/bin


Cheers,
\Anton.
-- 
You shouldn't be intimidated by this issue at all, since Perl is your
friend. -- Apache mod_perl guide



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030515110215.GG15336>