[Midnightbsd-cvs] CVS Commit: mports/irc: Add sirc.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Aug 10 17:12:22 EDT 2007


Log Message:
-----------
Add sirc.

Modified Files:
--------------
    mports/irc:
        Makefile (r1.6 -> r1.7)

Added Files:
-----------
    mports/irc/sirc:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/irc/sirc/files:
        patch-aa (r1.1)
    mports/irc/sirc/scripts:
        sirc-proto (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/irc/Makefile,v
retrieving revision 1.6
retrieving revision 1.7
diff -Lirc/Makefile -Lirc/Makefile -u -r1.6 -r1.7
--- irc/Makefile
+++ irc/Makefile
@@ -1,5 +1,4 @@
 # $MidnightBSD$
-# $FreeBSD: ports/irc/Makefile,v 1.139 2006/09/10 09:11:48 dinoex Exp $
 #
 
     COMMENT = Internet Relay Chat utilities
@@ -9,6 +8,7 @@
     SUBDIR += irssi
     SUBDIR += irssi-scripts
     SUBDIR += ngircd
+    SUBDIR += sirc
     SUBDIR += xchat
 
 .include <bsd.port.subdir.mk>
--- /dev/null
+++ irc/sirc/pkg-descr
@@ -0,0 +1,11 @@
+	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: Roger Espel Llima (aka orabidoo)
+WWW: http://www.iagora.com/~espel/sirc.html
--- /dev/null
+++ irc/sirc/pkg-plist
@@ -0,0 +1,12 @@
+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
+ at dirrm libexec/sirc
--- /dev/null
+++ irc/sirc/Makefile
@@ -0,0 +1,88 @@
+# New ports collection makefile for: sirc
+# Date created:                      4 May 1998
+# Whom:                              Doug Barton <Doug at gorean.org>
+#
+# $MidnightBSD: mports/irc/sirc/Makefile,v 1.1 2007/08/10 21:12:20 laffer1 Exp $
+# $FreeBSD: ports/irc/sirc/Makefile,v 1.13 2005/10/29 07:13:28 dougb Exp $
+#
+# 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
+
+PORTNAME=	sirc
+PORTVERSION=	2.211
+CATEGORIES=	irc
+MASTER_SITES=	http://www.iagora.com/~espel/sirc/ \
+		http://dougbarton.us/Downloads/
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Small (150k), fast, perl-based IRC client
+
+USE_PERL5=	yes
+
+.if exists(/usr/bin/perl5)
+SHORT_PERL5=/usr/bin/perl5
+.else
+SHORT_PERL5=${PREFIX}/bin/perl5
+.endif
+
+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-proto.1
+	@${SED} 's:PREFIX.SED:${PREFIX}:' ${WRKSRC}/sirc-proto.1 \
+		> ${WRKSRC}/sirc-proto.2
+	@${SED} 's:PERL5.SED:${SHORT_PERL5}:' ${WRKSRC}/sirc-proto.2 \
+		> ${WRKSRC}/sirc
+.else
+	@${SED} 's:PREFIX.SED:${PREFIX}:' ${WRKSRC}/sirc-proto \
+		> ${WRKSRC}/sirc-proto.1
+	@${SED} 's:PERL5.SED:${SHORT_PERL5}:' ${WRKSRC}/sirc-proto.1 \
+		> ${WRKSRC}/sirc
+.endif
+
+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_CMD} '&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>
--- /dev/null
+++ irc/sirc/distinfo
@@ -0,0 +1,3 @@
+MD5 (sirc-2.211.tar.gz) = deff882465928be699a6324a5f788469
+SHA256 (sirc-2.211.tar.gz) = eb93187ad2a47dcc944b71dd999a3b7db4c9b92e97c32b5be9ccf406fc84848d
+SIZE (sirc-2.211.tar.gz) = 83875
--- /dev/null
+++ 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"
--- /dev/null
+++ irc/sirc/scripts/sirc-proto
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+SIRCLIB=PREFIX.SED/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 PERL5.SED ${SIRCLIB}/dsirc "$@"
+      ;;
+  *)  eval exec PREFIX.SED/bin/ssfe $SSFE PERL5.SED ${SIRCLIB}/dsirc \"\$@\"
+esac


More information about the Midnightbsd-cvs mailing list