Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2014 16:33:21 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r359574 - in head/net-im/echat: . files
Message-ID:  <201406271633.s5RGXLtj076431@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Fri Jun 27 16:33:21 2014
New Revision: 359574
URL: http://svnweb.freebsd.org/changeset/ports/359574
QAT: https://qat.redports.org/buildarchive/r359574/

Log:
  - Add staging support
  - Move configuration info to pkg-message

Added:
  head/net-im/echat/files/
  head/net-im/echat/files/pkg-message.in   (contents, props changed)
Modified:
  head/net-im/echat/Makefile
  head/net-im/echat/pkg-plist

Modified: head/net-im/echat/Makefile
==============================================================================
--- head/net-im/echat/Makefile	Fri Jun 27 16:19:53 2014	(r359573)
+++ head/net-im/echat/Makefile	Fri Jun 27 16:33:21 2014	(r359574)
@@ -9,20 +9,17 @@ MASTER_SITES=	http://echat.deep.perm.ru/
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	LAN chat program over the TCP/IP networks
 
-MAN1=		echat.1
+SUB_FILES=	pkg-message
 
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS+=|g ; \
 		s|PREFIX=|PREFIX?=|g ; s|CC=|CC?=|g; \
 		\|^CFLAGS| { s|-g||; s|-O2||; } ; \
-		\|CC|s|@||; \|install|s|-s|${STRIP}|' ${WRKSRC}/Makefile
+		\|CC|s|@||; \|install|s|-s|${STRIP}|; \
+		s|PREFIX)|DESTDIR)$$(&|' ${WRKSRC}/Makefile
 
 post-install:
-	${INSTALL_DATA} ${WRKSRC}/doc/.echatrc.sample ${PREFIX}/etc/echatrc.sample
-	@${ECHO} "======================================================================"
-	@${ECHO} "  Please put \"${PREFIX}/etc/echatrc.sample\" in the right place."
-	@${ECHO} "  eChat will search in \"~/.echatrc\". Then edit it as you want."
-	@${ECHO} "======================================================================"
+	${INSTALL_DATA} ${WRKSRC}/doc/.echatrc.sample \
+		${STAGEDIR}${PREFIX}/etc/echatrc.sample
 
 .include <bsd.port.mk>

Added: head/net-im/echat/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-im/echat/files/pkg-message.in	Fri Jun 27 16:33:21 2014	(r359574)
@@ -0,0 +1,4 @@
+======================================================================
+  Please put %%PREFIX%%/etc/echatrc.sample in the right place.
+  eChat will search in ~/.echatrc. Then edit it as you want.
+======================================================================

Modified: head/net-im/echat/pkg-plist
==============================================================================
--- head/net-im/echat/pkg-plist	Fri Jun 27 16:19:53 2014	(r359573)
+++ head/net-im/echat/pkg-plist	Fri Jun 27 16:33:21 2014	(r359574)
@@ -8,5 +8,6 @@ doc/echat-0.04beta1/README.tu
 doc/echat-0.04beta1/TODO
 doc/echat-0.04beta1/ec
 etc/echatrc.sample
+man/man1/echat.1.gz
 @dirrm doc/echat-0.04beta1
 @dirrm doc



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