pkgsrc/chat/cgiirc/Makefile
adrianp ff5534b09d 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.
2004-10-15 18:36:55 +00:00

94 lines
3.3 KiB
Makefile

# $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"