CGI:IRC is a Perl/CGI program that lets you access IRC from a web browser, it

is designed to be flexible and has many uses such as an IRC gateway for an IRC
network, a chat-room for a website or to access IRC when stuck behind a
restrictive firewall.
This commit is contained in:
adrianp 2004-10-15 18:36:55 +00:00
parent 9d37a869f2
commit ff5534b09d
6 changed files with 251 additions and 0 deletions

4
chat/cgiirc/DESCR Normal file
View file

@ -0,0 +1,4 @@
CGI:IRC is a Perl/CGI program that lets you access IRC from a web browser, it
is designed to be flexible and has many uses such as an IRC gateway for an IRC
network, a chat-room for a website or to access IRC when stuck behind a
restrictive firewall.

13
chat/cgiirc/MESSAGE Normal file
View file

@ -0,0 +1,13 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1.1.1 2004/10/15 18:36:55 adrianp Exp $
You will need to make CGI:IRC accessible through your HTTP server.
If you are running Apache then you can add the following line to httpd.conf:
Include ${PKG_SYSCONFDIR}/cgiirc.conf
to make CGI:IRC accessible through:
http://www.domain.com/cgiirc/
===========================================================================

94
chat/cgiirc/Makefile Normal file
View file

@ -0,0 +1,94 @@
# $NetBSD: Makefile,v 1.1.1.1 2004/10/15 18:36:55 adrianp Exp $
DISTNAME= cgiirc-0.5.4
CATEGORIES= chat
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=cgiirc/}
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://cgiirc.sourceforge.net/
COMMENT= Access IRC from a web browser
DEPENDS+= p5-INET6-*:../../net/p5-INET6
NO_BUILDLINK= YES
USE_PERL5= YES
NO_BUILD= YES
USE_PKGINSTALL= YES
SUBST_CLASSES= config
SUBST_STAGE.config= post-patch
SUBST_FILES.config= cgiirc.config cgiirc.config.full ${WRKDIR}/cgiirc.conf
SUBST_SED.config= -e "s|irc.blitzed.org|${IRC_SERVER}|g" \
-e "s|CGI:IRC User|${IRC_NAME}|g" \
-e "s|CGI???|${IRC_NICK}|g" \
-e "s|\#cgiirc|${IRC_CHANNEL}|g" \
-e "s|@CGIIRC@|${CGIIRC}|g"
SUBST_MESSAGE.config= "Setting defaults in configuration files."
BUILD_DEFS+= IRC_SERVER IRC_CHANNEL IRC_NAME IRC_NICK
BUILD_DEFS+= USE_INET6
CONF_FILES= ${PREFIX}/share/examples/cgiirc/cgiirc.conf \
${PKG_SYSCONFDIR}/cgiirc.conf
CONF_FILES+= ${PREFIX}/share/examples/cgiirc/cgiirc.config \
${CGIIRC}/cgiirc.config
IRC_SERVER?= irc.blitzed.org
IRC_CHANNEL?= \#cgiirc
IRC_NAME?= CGI:IRC User
IRC_NICK?= CGI???
REPLACE_PERL= client-perl.cgi irc.cgi nph-irc.cgi docs/decode.pl \
docs/identd.pl viewconnects.pl modules/parse.pl \
interfaces/interface-make/make-js-interfaces.pl
DOCFILES= identd.xinetd decode.pl identd.pl viewconnects.pl
EGFILES= cgiirc.config.full client.c ipaccess.example
CGIIRC= ${PREFIX}/share/cgiirc
pre-patch:
@${CP} ${FILESDIR}/cgiirc.conf ${WRKDIR}/cgiirc.conf
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/cgiirc
${INSTALL_DATA_DIR} ${CGIIRC}
${INSTALL_DATA_DIR} ${CGIIRC}/formats
${INSTALL_DATA_DIR} ${CGIIRC}/images
${INSTALL_DATA_DIR} ${CGIIRC}/images/taras
${INSTALL_DATA_DIR} ${CGIIRC}/interfaces
${INSTALL_DATA_DIR} ${CGIIRC}/interfaces/interface-make
${INSTALL_DATA_DIR} ${CGIIRC}/modules
${INSTALL_DATA_DIR} ${CGIIRC}/modules/IRC
${INSTALL_DATA_DIR} ${CGIIRC}/modules/IRC/Channel
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/cgiirc
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/cgiirc
. for f in ${DOCFILES}
${INSTALL_DATA} ${WRKSRC}/docs/${f} \
${PREFIX}/share/examples/cgiirc/${f}
. endfor
${INSTALL_DATA} ${WRKSRC}/cgiirc.config ${PREFIX}/share/examples/cgiirc
${INSTALL_DATA} ${WRKDIR}/cgiirc.conf ${PREFIX}/share/examples/cgiirc
. for f in ${EGFILES}
${INSTALL_DATA} ${WRKSRC}/${f} \
${PREFIX}/share/examples/cgiirc/${f}
. endfor
${INSTALL_SCRIPT} ${WRKSRC}/*.cgi ${CGIIRC}
${INSTALL_DATA} ${WRKSRC}/formats/* ${CGIIRC}/formats/
${INSTALL_DATA} ${WRKSRC}/images/*.gif ${CGIIRC}/images/
${INSTALL_DATA} ${WRKSRC}/images/*.wav ${CGIIRC}/images/
${INSTALL_DATA} ${WRKSRC}/images/*.ico ${CGIIRC}/images/
${INSTALL_DATA} ${WRKSRC}/images/taras/*.gif ${CGIIRC}/images/taras
${INSTALL_DATA} ${WRKSRC}/interfaces/*.pm ${CGIIRC}/interfaces/
${INSTALL_DATA} ${WRKSRC}/interfaces/*.css ${CGIIRC}/interfaces/
${INSTALL_DATA} ${WRKSRC}/interfaces/interface-make/*.pm \
${CGIIRC}/interfaces/interface-make/
${INSTALL_SCRIPT} ${WRKSRC}/interfaces/interface-make/*.pl \
${CGIIRC}/interfaces/interface-make/
${INSTALL_DATA} ${WRKSRC}/modules/*.pm ${CGIIRC}/modules/
${INSTALL_SCRIPT} ${WRKSRC}/modules/*.pl ${CGIIRC}/modules/
${INSTALL_DATA} ${WRKSRC}/modules/IRC/*.pm ${CGIIRC}/modules/IRC/
${INSTALL_DATA} ${WRKSRC}/modules/IRC/Channel/*.pm \
${CGIIRC}/modules/IRC/Channel/
.include "../../mk/bsd.pkg.mk"

121
chat/cgiirc/PLIST Normal file
View file

@ -0,0 +1,121 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2004/10/15 18:36:55 adrianp Exp $
share/cgiirc/client-perl.cgi
share/cgiirc/formats/dark
share/cgiirc/formats/default
share/cgiirc/formats/gothic
share/cgiirc/formats/mirc
share/cgiirc/formats/russian
share/cgiirc/images/actmsg.wav
share/cgiirc/images/actsound.gif
share/cgiirc/images/angry.gif
share/cgiirc/images/cgiirc.gif
share/cgiirc/images/cheesy.gif
share/cgiirc/images/closedn.gif
share/cgiirc/images/closeup.gif
share/cgiirc/images/confused.gif
share/cgiirc/images/cool.gif
share/cgiirc/images/cry.gif
share/cgiirc/images/embarassed.gif
share/cgiirc/images/entry.gif
share/cgiirc/images/favicon.ico
share/cgiirc/images/flat.gif
share/cgiirc/images/font.gif
share/cgiirc/images/grin.gif
share/cgiirc/images/happy.gif
share/cgiirc/images/happycry.gif
share/cgiirc/images/helpdn.gif
share/cgiirc/images/helpup.gif
share/cgiirc/images/hmmm.gif
share/cgiirc/images/join.wav
share/cgiirc/images/joinsound.gif
share/cgiirc/images/kiss.gif
share/cgiirc/images/love.gif
share/cgiirc/images/notsure.gif
share/cgiirc/images/optionsdn.gif
share/cgiirc/images/optionsup.gif
share/cgiirc/images/scrollback.gif
share/cgiirc/images/sleep.gif
share/cgiirc/images/smile.gif
share/cgiirc/images/sorry.gif
share/cgiirc/images/surprised.gif
share/cgiirc/images/taras/angry.gif
share/cgiirc/images/taras/cheesy.gif
share/cgiirc/images/taras/closedn.gif
share/cgiirc/images/taras/closeup.gif
share/cgiirc/images/taras/confused.gif
share/cgiirc/images/taras/cool.gif
share/cgiirc/images/taras/cry.gif
share/cgiirc/images/taras/embarassed.gif
share/cgiirc/images/taras/entry.gif
share/cgiirc/images/taras/flat.gif
share/cgiirc/images/taras/font.gif
share/cgiirc/images/taras/grin.gif
share/cgiirc/images/taras/happy.gif
share/cgiirc/images/taras/helpdn.gif
share/cgiirc/images/taras/helpup.gif
share/cgiirc/images/taras/love.gif
share/cgiirc/images/taras/notsure.gif
share/cgiirc/images/taras/optionsdn.gif
share/cgiirc/images/taras/optionsup.gif
share/cgiirc/images/taras/smile.gif
share/cgiirc/images/taras/surprised.gif
share/cgiirc/images/taras/time.gif
share/cgiirc/images/taras/tongue.gif
share/cgiirc/images/taras/unhappy.gif
share/cgiirc/images/taras/wink.gif
share/cgiirc/images/time.gif
share/cgiirc/images/tongue.gif
share/cgiirc/images/unhappy.gif
share/cgiirc/images/what.gif
share/cgiirc/images/wink.gif
share/cgiirc/interfaces/interface-make/fform.pm
share/cgiirc/interfaces/interface-make/fmain.pm
share/cgiirc/interfaces/interface-make/fuserlist.pm
share/cgiirc/interfaces/interface-make/fwindowlist.pm
share/cgiirc/interfaces/interface-make/main.pm
share/cgiirc/interfaces/interface-make/make-js-interfaces.pl
share/cgiirc/interfaces/default.pm
share/cgiirc/interfaces/ie.pm
share/cgiirc/interfaces/konqueror.pm
share/cgiirc/interfaces/mozilla.pm
share/cgiirc/interfaces/nonjs.pm
share/cgiirc/interfaces/opera.pm
share/cgiirc/interfaces/opera7.pm
share/cgiirc/interfaces/style-dark.css
share/cgiirc/interfaces/style-default.css
share/cgiirc/interfaces/style-gothic.css
share/cgiirc/interfaces/style-mirc.css
share/cgiirc/irc.cgi
share/cgiirc/modules/Command.pm
share/cgiirc/modules/Event.pm
share/cgiirc/modules/IRC.pm
share/cgiirc/modules/IRC/Channel.pm
share/cgiirc/modules/IRC/Channel/Nick.pm
share/cgiirc/modules/IRC/Event.pm
share/cgiirc/modules/IRC/RawCommands.pm
share/cgiirc/modules/IRC/UniqueHash.pm
share/cgiirc/modules/IRC/Util.pm
share/cgiirc/modules/Timer.pm
share/cgiirc/modules/parse.pl
share/cgiirc/nph-irc.cgi
share/doc/cgiirc/README
share/examples/cgiirc/cgiirc.config
share/examples/cgiirc/cgiirc.conf
share/examples/cgiirc/cgiirc.config.full
share/examples/cgiirc/client.c
share/examples/cgiirc/decode.pl
share/examples/cgiirc/identd.pl
share/examples/cgiirc/identd.xinetd
share/examples/cgiirc/ipaccess.example
share/examples/cgiirc/viewconnects.pl
@dirrm share/examples/cgiirc
@dirrm share/doc/cgiirc
@dirrm share/cgiirc/modules/IRC/Channel
@dirrm share/cgiirc/modules/IRC
@dirrm share/cgiirc/modules
@dirrm share/cgiirc/interfaces/interface-make
@dirrm share/cgiirc/interfaces
@dirrm share/cgiirc/images/taras
@dirrm share/cgiirc/images
@dirrm share/cgiirc/formats
@dirrm share/cgiirc

4
chat/cgiirc/distinfo Normal file
View file

@ -0,0 +1,4 @@
$NetBSD: distinfo,v 1.1.1.1 2004/10/15 18:36:55 adrianp Exp $
SHA1 (cgiirc-0.5.4.tar.gz) = 3e86bccf84df7349c4b1dd39c91bb4504d1b139a
Size (cgiirc-0.5.4.tar.gz) = 127545 bytes

View file

@ -0,0 +1,15 @@
# $NetBSD: cgiirc.conf,v 1.1.1.1 2004/10/15 18:36:55 adrianp Exp $
#
# cgiirc configuration file fragment for Apache
<IfModule mod_alias.c>
Alias /cgiirc/ "@CGIIRC@/"
</IfModule>
<Directory "@CGIIRC@">
Options +ExecCGI
AddHandler cgi-script .cgi
AllowOverride None
Order allow,deny
Allow from all
</Directory>