aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/echat
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-06-28 00:33:21 +0800
committerpawel <pawel@FreeBSD.org>2014-06-28 00:33:21 +0800
commit20815c14c63f0a9ad75a295bc55d45d9e100b65e (patch)
treeb479f9833277088241bec1aff5b9cdac76325fe0 /net-im/echat
parent0e7df4ccdd94c89ab8c29806811fb31e8076b6dd (diff)
downloadfreebsd-ports-gnome-20815c14c63f0a9ad75a295bc55d45d9e100b65e.tar.gz
freebsd-ports-gnome-20815c14c63f0a9ad75a295bc55d45d9e100b65e.tar.zst
freebsd-ports-gnome-20815c14c63f0a9ad75a295bc55d45d9e100b65e.zip
- Add staging support
- Move configuration info to pkg-message
Diffstat (limited to 'net-im/echat')
-rw-r--r--net-im/echat/Makefile13
-rw-r--r--net-im/echat/files/pkg-message.in4
-rw-r--r--net-im/echat/pkg-plist1
3 files changed, 10 insertions, 8 deletions
diff --git a/net-im/echat/Makefile b/net-im/echat/Makefile
index f024fef4478d..7f9dfce0dd62 100644
--- a/net-im/echat/Makefile
+++ b/net-im/echat/Makefile
@@ -9,20 +9,17 @@ MASTER_SITES= http://echat.deep.perm.ru/files/
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>
diff --git a/net-im/echat/files/pkg-message.in b/net-im/echat/files/pkg-message.in
new file mode 100644
index 000000000000..26aebdc6f1fe
--- /dev/null
+++ b/net-im/echat/files/pkg-message.in
@@ -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.
+======================================================================
diff --git a/net-im/echat/pkg-plist b/net-im/echat/pkg-plist
index c37af436bda2..443ebcc861b6 100644
--- a/net-im/echat/pkg-plist
+++ b/net-im/echat/pkg-plist
@@ -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