summaryrefslogtreecommitdiff
path: root/irc/netwalker-ircc
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2004-12-14 19:08:28 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2004-12-14 19:08:28 +0000
commitc851f0b12ef137825efe348b976bf39d485bda24 (patch)
tree8a9a51328272da1e97ffc6e42a1408104ba1fa02 /irc/netwalker-ircc
parentFix MASTER_SITE_SUBDIR. (diff)
netwalker-ircc - a lightweight curses-based IRC client
PR: ports/74684 Submitted by: Emanuel Haupt <ehaupt@critical.ch>
Notes
Notes: svn path=/head/; revision=124020
Diffstat (limited to 'irc/netwalker-ircc')
-rw-r--r--irc/netwalker-ircc/Makefile45
-rw-r--r--irc/netwalker-ircc/distinfo2
-rw-r--r--irc/netwalker-ircc/files/patch-config.h14
-rw-r--r--irc/netwalker-ircc/files/patch-netwalker.111
-rw-r--r--irc/netwalker-ircc/pkg-descr5
-rw-r--r--irc/netwalker-ircc/pkg-plist17
6 files changed, 94 insertions, 0 deletions
diff --git a/irc/netwalker-ircc/Makefile b/irc/netwalker-ircc/Makefile
new file mode 100644
index 000000000000..ce4943b3e25b
--- /dev/null
+++ b/irc/netwalker-ircc/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: netwalker-ircc
+# Date created: 4 December 2004
+# Whom: Emanuel Haupt <ehaupt@critical.ch>
+#
+# $FreeBSD$
+#
+
+PORTNAME= netwalker-ircc
+PORTVERSION= 0.5.0
+CATEGORIES= irc
+MASTER_SITES= http://www.bind.ch/projects/netwalker/netwalker-src/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ehaupt@critical.ch
+COMMENT= A lightweight curses-based IRC client
+
+MAN1= netwalker.1
+
+LDFLAGS= -lncurses ${PTHREAD_LIBS}
+CFLAGS?= -O2 -Wall
+
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 400010
+LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
+.endif
+
+post-patch:
+ @${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \
+ ${WRKSRC}/config.h > ${WRKSRC}/config.h.freebsd
+ ${MV} ${WRKSRC}/config.h.freebsd ${WRKSRC}/config.h
+
+do-build:
+.for file in main functions screen server user messages signals parameter userdb
+ ${CXX} ${CFLAGS} -c ${WRKSRC}/${file}.cc -o ${WRKSRC}/${file}.o
+.endfor
+ ${CXX} ${LDFLAGS} -L${WRKSRC}/ ${WRKSRC}/*.o -o ${WRKSRC}/netwalker
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/netwalker ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/netwalker.1 ${MANPREFIX}/man/man1
+ @${MKDIR} ${DATADIR}
+ ${CP} ${WRKSRC}/help/* ${PREFIX}/share/netwalker-ircc
+
+.include <bsd.port.post.mk>
diff --git a/irc/netwalker-ircc/distinfo b/irc/netwalker-ircc/distinfo
new file mode 100644
index 000000000000..f90e78d3cc0d
--- /dev/null
+++ b/irc/netwalker-ircc/distinfo
@@ -0,0 +1,2 @@
+MD5 (netwalker-ircc-0.5.0.tgz) = 1f5a7cc0fb54142c6306651105aedd68
+SIZE (netwalker-ircc-0.5.0.tgz) = 54768
diff --git a/irc/netwalker-ircc/files/patch-config.h b/irc/netwalker-ircc/files/patch-config.h
new file mode 100644
index 000000000000..94883a0b40dd
--- /dev/null
+++ b/irc/netwalker-ircc/files/patch-config.h
@@ -0,0 +1,14 @@
+--- config.h.orig Sat Dec 4 17:43:47 2004
++++ config.h Sat Dec 4 17:44:04 2004
+@@ -47,9 +47,9 @@
+ #define PART_QUIT_MSG_LEN 256
+ #define CTCP_VERSION_REPLY "Netwalker IRC-Client"
+
+-#define FILES_HELP_DIRECTORY "/usr/share/netwalker-ircc/"
++#define FILES_HELP_DIRECTORY "%%PREFIX%%/share/netwalker-ircc/"
+ #define FILES_HELP_INDEX_FILE "/helpindex.asc"
+-#define FILES_CONFIG_FILE "/.netwalkerircc.conf"
++#define FILES_CONFIG_FILE "/.netwalkerircc"
+
+ /* some default values */
+ #define DEFAULT_NICKNAME "ABC"
diff --git a/irc/netwalker-ircc/files/patch-netwalker.1 b/irc/netwalker-ircc/files/patch-netwalker.1
new file mode 100644
index 000000000000..d35ab0499447
--- /dev/null
+++ b/irc/netwalker-ircc/files/patch-netwalker.1
@@ -0,0 +1,11 @@
+--- netwalker.1.orig Sat Dec 4 17:44:31 2004
++++ netwalker.1 Sat Dec 4 17:44:58 2004
+@@ -33,7 +33,7 @@
+ .SH CONFIGURATION FILE
+ after you used the command 'netwalker -c' there will be a
+ .br
+-default configuration-file (atm called: '.netwalkerircc.conf') in your home directory.
++default configuration-file (atm called: '.netwalkerircc') in your home directory.
+ .br
+ Available config-file options:
+ .br
diff --git a/irc/netwalker-ircc/pkg-descr b/irc/netwalker-ircc/pkg-descr
new file mode 100644
index 000000000000..9c17fea589b2
--- /dev/null
+++ b/irc/netwalker-ircc/pkg-descr
@@ -0,0 +1,5 @@
+Netwalker is a tiny curses-based IRC client. The current version is written in
+c/cpp. Future releases are planed to be written in plain cpp. Netwalker aims to
+be a slim IRC client.
+
+WWW: http://www.bind.ch/projects/netwalker/
diff --git a/irc/netwalker-ircc/pkg-plist b/irc/netwalker-ircc/pkg-plist
new file mode 100644
index 000000000000..fa2cf42854ae
--- /dev/null
+++ b/irc/netwalker-ircc/pkg-plist
@@ -0,0 +1,17 @@
+bin/netwalker
+%%DATADIR%%/help_connect.asc
+%%DATADIR%%/help_ctcp.asc
+%%DATADIR%%/help_disconnect.asc
+%%DATADIR%%/help_help.asc
+%%DATADIR%%/help_join.asc
+%%DATADIR%%/help_me.asc
+%%DATADIR%%/help_msg.asc
+%%DATADIR%%/help_nick.asc
+%%DATADIR%%/help_part.asc
+%%DATADIR%%/help_quit.asc
+%%DATADIR%%/help_reconnect.asc
+%%DATADIR%%/help_screen.asc
+%%DATADIR%%/help_topic.asc
+%%DATADIR%%/help_who.asc
+%%DATADIR%%/helpindex.asc
+@dirrm %%DATADIR%%