FreeBSD Port: mail2sms-1.3.5
Anton Berezin
tobez at tobez.org
Thu May 15 04:02:19 PDT 2003
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 at 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
More information about the freebsd-ports
mailing list