1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Add staging support

- Move configuration info to pkg-message
This commit is contained in:
Pawel Pekala 2014-06-27 16:33:21 +00:00
parent 55cabfbb35
commit b4e6bff10d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359574
3 changed files with 10 additions and 8 deletions

View File

@ -9,20 +9,17 @@ MASTER_SITES= http://echat.deep.perm.ru/files/
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= LAN chat program over the TCP/IP networks COMMENT= LAN chat program over the TCP/IP networks
MAN1= echat.1 SUB_FILES= pkg-message
NO_STAGE= yes
post-patch: post-patch:
@${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS+=|g ; \ @${REINPLACE_CMD} -e 's|^CFLAGS=|CFLAGS+=|g ; \
s|PREFIX=|PREFIX?=|g ; s|CC=|CC?=|g; \ s|PREFIX=|PREFIX?=|g ; s|CC=|CC?=|g; \
\|^CFLAGS| { s|-g||; s|-O2||; } ; \ \|^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: post-install:
${INSTALL_DATA} ${WRKSRC}/doc/.echatrc.sample ${PREFIX}/etc/echatrc.sample ${INSTALL_DATA} ${WRKSRC}/doc/.echatrc.sample \
@${ECHO} "======================================================================" ${STAGEDIR}${PREFIX}/etc/echatrc.sample
@${ECHO} " Please put \"${PREFIX}/etc/echatrc.sample\" in the right place."
@${ECHO} " eChat will search in \"~/.echatrc\". Then edit it as you want."
@${ECHO} "======================================================================"
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -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.
======================================================================

View File

@ -8,5 +8,6 @@ doc/echat-0.04beta1/README.tu
doc/echat-0.04beta1/TODO doc/echat-0.04beta1/TODO
doc/echat-0.04beta1/ec doc/echat-0.04beta1/ec
etc/echatrc.sample etc/echatrc.sample
man/man1/echat.1.gz
@dirrm doc/echat-0.04beta1 @dirrm doc/echat-0.04beta1
@dirrm doc @dirrm doc