ports/53565: post-patch for port

Krzysztof Stryjek wtp at mud.pl
Tue Aug 5 20:12:42 UTC 2003


Hello,

On Mon, 4 Aug 2003, Tilman Linneweh wrote:

> Synopsis: post-patch for port
> State-Changed-From-To: feedback->closed
> http://www.freebsd.org/cgi/query-pr.cgi?pr=53565
>
I don't why, but this still is not correct. I'm sure I';ve send corrcted
patch again (with pre-install).

So please add this part and then it will be correct.

Greetings
-- 
/~\ The ASCII                  Krzysztof Stryjek
\ / Ribbon Campaign               wtp at mud.pl
 X  Against HTML              http://mud.pl/~wtp/
/ \ Email!               GG: 3608113   ICQ: 124986907

Computers are not intelligent.  They only think they are.
-------------- next part --------------
--- Makefile	Sun May 11 05:40:35 2003
+++ Makefile.new	Sat Aug  2 18:55:11 2003
@@ -18,11 +18,24 @@
 
 WRKSRC=	${WRKDIR}/sms
 USE_GMAKE=	yes
+USE_REINPLACE=	yes
 MAKE_ARGS=	CXX="${CXX}"
 .if defined(NOPORTDOCS)
 MAKE_ARGS+=	NOPORTDOCS=1
 .endif
 
+post-patch:
+	@${REINPLACE_CMD} -e 's,/etc/smsrc,${PREFIX}/etc/smsrc,' \
+		${WRKSRC}/sms.h \
+		${WRKSRC}/README.smsrc
+	@${REINPLACE_CMD} -e 's,bash,sh,' \
+		${WRKSRC}/contrib/sms-conf
+
+pre-install:
+	@${RM} -f \
+		${WRKSRC}/sms.h.bak \
+		${WRKSRC}/README.smsrc.bak \
+		${WRKSRC}/contrib/sms-conf.bak
 post-install:
 	     ${STRIP_CMD} ${PREFIX}/bin/sms
 


More information about the freebsd-ports-bugs mailing list