summaryrefslogtreecommitdiffstats
path: root/irc
diff options
context:
space:
mode:
authormph <mph@FreeBSD.org>1998-05-07 05:20:22 +0000
committermph <mph@FreeBSD.org>1998-05-07 05:20:22 +0000
commit9f2d96199b8dcd089aa4d6c3e6ffd14df4deed74 (patch)
treeb29740de66e97d62ee2ebccdcb1d9dc46c880bbd /irc
parent418dfa18555de81418c292b7d11d50710520b2a2 (diff)
downloadFreeBSD-ports-9f2d96199b8dcd089aa4d6c3e6ffd14df4deed74.zip
FreeBSD-ports-9f2d96199b8dcd089aa4d6c3e6ffd14df4deed74.tar.gz
Import of sirc, Yet Another IRC Client. (Is this the "net" equivalent
of Minesweeper in "games"?) This one is written in Perl, so it is convenient for people who would like to script in Perl. PR: 6535 Submitted by: Studded@dal.net
Diffstat (limited to 'irc')
-rw-r--r--irc/sirc/Makefile79
-rw-r--r--irc/sirc/distinfo1
-rw-r--r--irc/sirc/files/patch-aa16
-rw-r--r--irc/sirc/pkg-comment1
-rw-r--r--irc/sirc/pkg-descr13
-rw-r--r--irc/sirc/pkg-plist14
-rw-r--r--irc/sirc/scripts/sirc-proto17
7 files changed, 141 insertions, 0 deletions
diff --git a/irc/sirc/Makefile b/irc/sirc/Makefile
new file mode 100644
index 0000000..bba11bd
--- /dev/null
+++ b/irc/sirc/Makefile
@@ -0,0 +1,79 @@
+# New ports collection makefile for: sirc
+# Version required: 2.211
+# Date created: 4 May 1998
+# Whom: Studded <Studded@dal.net>
+#
+# $Id$
+#
+# If you need SOCKS support, define SOCKS_SERVER with
+# the name of your SOCKS proxy and remove the '#'.
+# You should also check the default port and DNS
+# setting in ${PREFIX}/bin/sirc after installation.
+#
+# SOCKS_SERVER= your.socks.proxy
+
+DISTNAME= sirc-2.211
+CATEGORIES= net
+MASTER_SITES= http://www.eleves.ens.fr:8080/home/espel/sirc/ \
+ ftp://ftp1.dal.net/dalnet/clients/unix/sirc/ \
+ ftp://ftp2.dal.net/dalnet/clients/unix/sirc/
+
+MAINTAINER= Studded@dal.net
+
+USE_PERL5= yes
+
+post-extract:
+.if !defined(SOCKS_SERVER)
+ @${ECHO_MSG} ''
+ @${ECHO_MSG} "SOCKS proxy support is available with this client."
+ @${ECHO_MSG} "If you need SOCKS support edit the Makefile in this"
+ @${ECHO_MSG} "directory according to the instructions at the top of it."
+ @${ECHO_MSG} "Then do 'make clean', 'make deinstall' (if needed)"
+ @${ECHO_MSG} "then 'make install'."
+ @${ECHO_MSG} ''
+.endif
+
+pre-patch:
+ @${CP} ${SCRIPTDIR}/sirc-proto ${WRKSRC}
+
+do-patch:
+.if defined(SOCKS_SERVER)
+ @${PATCH} ${PATCH_DIST_ARGS} < ${PATCHDIR}/patch-aa
+ @${SED} 's%SOCKS_SERVER\=%SOCKS_SERVER\=${SOCKS_SERVER}%' \
+ ${WRKSRC}/sirc-proto > ${WRKSRC}/sirc-socks
+ @${SED} 's%PREFIX\=%PREFIX\=${PREFIX}%' ${WRKSRC}/sirc-socks \
+ > ${WRKSRC}/sirc
+.else
+ @${SED} 's%PREFIX\=%PREFIX\=${PREFIX}%' ${WRKSRC}/sirc-proto \
+ > ${WRKSRC}/sirc
+.endif
+
+NO_CONFIGURE= "There is no configure or makefile in the source"
+
+do-build:
+ ${CC} ${CFLAGS} ${WRKSRC}/ssfe.c -o ${WRKSRC}/ssfe -ltermcap
+
+do-install:
+ ${MKDIR} ${PREFIX}/libexec/sirc
+ ${INSTALL_DATA} ${WRKSRC}/n0thing.pl ${PREFIX}/libexec/sirc
+ ${INSTALL_DATA} ${WRKSRC}/sirc.help.gz ${PREFIX}/libexec/sirc
+ ${INSTALL_DATA} ${WRKSRC}/socks.pl ${PREFIX}/libexec/sirc
+ ${INSTALL_SCRIPT} ${WRKSRC}/dsirc ${PREFIX}/libexec/sirc
+ ${INSTALL_PROGRAM} ${WRKSRC}/ssfe ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/sirc ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/ssfe.1 ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/sirc.1 ${PREFIX}/man/man1
+.if defined(SOCKS_SERVER)
+ ${ECHO} '&load("socks.pl");' >> ${PREFIX}/libexec/sirc/sircrc.pl
+.endif
+.if !defined(NOPORTDOCS)
+ ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${PREFIX}/libexec/sirc
+ ${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/libexec/sirc
+ ${INSTALL_DATA} ${WRKSRC}/PROGRAMMING ${PREFIX}/libexec/sirc
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/libexec/sirc
+ ${INSTALL_DATA} ${WRKSRC}/README.socks ${PREFIX}/libexec/sirc
+.endif
+
+MAN1= sirc.1 ssfe.1
+
+.include <bsd.port.mk>
diff --git a/irc/sirc/distinfo b/irc/sirc/distinfo
new file mode 100644
index 0000000..b88cc2c
--- /dev/null
+++ b/irc/sirc/distinfo
@@ -0,0 +1 @@
+MD5 (sirc-2.211.tar.gz) = deff882465928be699a6324a5f788469
diff --git a/irc/sirc/files/patch-aa b/irc/sirc/files/patch-aa
new file mode 100644
index 0000000..0f9eb20
--- /dev/null
+++ b/irc/sirc/files/patch-aa
@@ -0,0 +1,16 @@
+--- sirc-proto Tue May 5 00:23:11 1998
++++ sirc-proto Tue May 5 00:32:45 1998
+@@ -3,6 +3,13 @@
+ PREFIX=
+ SIRCLIB=${PREFIX}/libexec/sirc ; export SIRCLIB
+
++# See README.socks in SIRCLIB for more details
++SOCKS_SERVER= ; export SOCKS_SERVER
++# 1080 is the default
++SOCKS_PORT=1080; export SOCKS_PORT
++# Uncomment only if you have no access to a name server
++#SOCKS_DNS=1; export SOCKS_DNS
++
+ if test -z "$SIRCSERVER" && test -z "$IRCSERVER"
+ then
+ SIRCSERVER="irc.dal.net"
diff --git a/irc/sirc/pkg-comment b/irc/sirc/pkg-comment
new file mode 100644
index 0000000..bae592e
--- /dev/null
+++ b/irc/sirc/pkg-comment
@@ -0,0 +1 @@
+Small (150k), fast, perl-based IRC client
diff --git a/irc/sirc/pkg-descr b/irc/sirc/pkg-descr
new file mode 100644
index 0000000..4e51fbf
--- /dev/null
+++ b/irc/sirc/pkg-descr
@@ -0,0 +1,13 @@
+ An Internet Relay Chat client written in perl, that uses a
+perl-based scripting language. It is small (150k or less), fast, and
+gives you a good chance to practice your perl skills. :)
+
+ It has an interface that closely emulates ircII and comes with
+some useful sample scripts that will get you started on IRC quickly. No
+knowledge of perl is necessary to run the client although it is helpful
+if you plan to do any scripting.
+
+- Author of software: Roger Espel Llima (aka orabidoo)
+
+- Author of port: Doug
+- Studded@dal.net
diff --git a/irc/sirc/pkg-plist b/irc/sirc/pkg-plist
new file mode 100644
index 0000000..2027784
--- /dev/null
+++ b/irc/sirc/pkg-plist
@@ -0,0 +1,14 @@
+bin/sirc
+bin/ssfe
+libexec/sirc/ChangeLog
+libexec/sirc/LICENSE
+libexec/sirc/PROGRAMMING
+libexec/sirc/README
+libexec/sirc/README.socks
+libexec/sirc/dsirc
+libexec/sirc/n0thing.pl
+libexec/sirc/sirc.help.gz
+libexec/sirc/socks.pl
+man/man1/sirc.1.gz
+man/man1/ssfe.1.gz
+@dirrm libexec/sirc
diff --git a/irc/sirc/scripts/sirc-proto b/irc/sirc/scripts/sirc-proto
new file mode 100644
index 0000000..2de5b34
--- /dev/null
+++ b/irc/sirc/scripts/sirc-proto
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+PREFIX=
+SIRCLIB=${PREFIX}/libexec/sirc ; export SIRCLIB
+
+if test -z "$SIRCSERVER" && test -z "$IRCSERVER"
+then
+ SIRCSERVER="irc.dal.net"
+ export SIRCSERVER
+fi
+
+case "$1" in
+ -d) shift
+ exec ${PREFIX}/bin/perl5 ${SIRCLIB}/dsirc "$@"
+ ;;
+ *) eval exec ${PREFIX}/bin/ssfe $SSFE ${PREFIX}/bin/perl5 ${SIRCLIB}/dsirc \"\$@\"
+esac
OpenPOWER on IntegriCloud