summaryrefslogtreecommitdiff
path: root/chat/cgiirc/Makefile
blob: 18b92df0bae98ac21a0357301f361bd5a03aa432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# $NetBSD: Makefile,v 1.23 2014/11/21 12:10:35 mef Exp $

DISTNAME=	cgiirc-0.5.11
CATEGORIES=	chat
MASTER_SITES=	http://cgiirc.org/releases/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://cgiirc.org/
COMMENT=	Access IRC from a web browser
LICENSE=	gnu-gpl-v2

USE_TOOLS+=	perl:run
NO_BUILD=	YES

CONF_FILES=	${PREFIX}/share/examples/cgiirc/cgiirc.conf \
			${PKG_SYSCONFDIR}/cgiirc.conf
CONF_FILES+=	${PREFIX}/share/examples/cgiirc/cgiirc.config \
			${CGIIRC}/cgiirc.config

PKG_OPTIONS_VAR=	PKG_OPTIONS.cgiirc
PKG_SUPPORTED_OPTIONS=	inet6
PKG_SUGGESTED_OPTIONS=	inet6

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Minet6)
DEPENDS+=	p5-IO-Socket-INET6-[0-9]*:../../net/p5-IO-Socket-INET6
.endif

REPLACE_PERL+=	client-perl.cgi irc.cgi nph-irc.cgi docs/decode.pl \
		docs/identd.pl docs/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

INSTALLATION_DIRS+=	share/doc/cgiirc
INSTALLATION_DIRS+=	share/examples/cgiirc
do-configure:
	${SED} -e "s|@CGIIRC@|${CGIIRC}|g" ${FILESDIR}/cgiirc.conf	\
		> ${WRKDIR}/cgiirc.conf

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}
	${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}/formats
	${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}/images
	${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}/images/taras
	${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}/interfaces
	${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}/interfaces/interface-make
	${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}/modules
	${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}/modules/IRC
	${INSTALL_DATA_DIR} ${DESTDIR}${CGIIRC}/modules/IRC/Channel

	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/cgiirc
.	for f in ${DOCFILES}
		${INSTALL_DATA} ${WRKSRC}/docs/${f} \
			${DESTDIR}${PREFIX}/share/examples/cgiirc/${f}
.	endfor
	${INSTALL_DATA} ${WRKSRC}/cgiirc.config \
		${DESTDIR}${PREFIX}/share/examples/cgiirc
	${INSTALL_DATA} ${WRKDIR}/cgiirc.conf \
		${DESTDIR}${PREFIX}/share/examples/cgiirc
.	for f in ${EGFILES}
		${INSTALL_DATA} ${WRKSRC}/${f} \
			${DESTDIR}${PREFIX}/share/examples/cgiirc/${f}
.	endfor
	${INSTALL_SCRIPT} ${WRKSRC}/*.cgi ${DESTDIR}${CGIIRC}
	${INSTALL_DATA} ${WRKSRC}/formats/* ${DESTDIR}${CGIIRC}/formats/
	${INSTALL_DATA} ${WRKSRC}/images/*.gif ${DESTDIR}${CGIIRC}/images/
	${INSTALL_DATA} ${WRKSRC}/images/*.wav ${DESTDIR}${CGIIRC}/images/
	${INSTALL_DATA} ${WRKSRC}/images/*.ico ${DESTDIR}${CGIIRC}/images/
	${INSTALL_DATA} ${WRKSRC}/images/taras/*.gif \
		${DESTDIR}${CGIIRC}/images/taras
	${INSTALL_DATA} ${WRKSRC}/interfaces/*.pm ${DESTDIR}${CGIIRC}/interfaces/
	${INSTALL_DATA} ${WRKSRC}/interfaces/*.css ${DESTDIR}${CGIIRC}/interfaces/
	${INSTALL_DATA} ${WRKSRC}/interfaces/interface-make/*.pm \
		${DESTDIR}${CGIIRC}/interfaces/interface-make/
	${INSTALL_SCRIPT} ${WRKSRC}/interfaces/interface-make/*.pl \
		${DESTDIR}${CGIIRC}/interfaces/interface-make/
	${INSTALL_DATA} ${WRKSRC}/modules/*.pm ${DESTDIR}${CGIIRC}/modules/
	${INSTALL_SCRIPT} ${WRKSRC}/modules/*.pl ${DESTDIR}${CGIIRC}/modules/
	${INSTALL_DATA} ${WRKSRC}/modules/IRC/*.pm ${DESTDIR}${CGIIRC}/modules/IRC/
	${INSTALL_DATA} ${WRKSRC}/modules/IRC/Channel/*.pm \
		${DESTDIR}${CGIIRC}/modules/IRC/Channel/

.include "../../mk/bsd.pkg.mk"