summaryrefslogtreecommitdiff
path: root/chat/ircu/Makefile
blob: 76549e0d42dacbb72ef227466f701230b6030496 (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
# $NetBSD: Makefile,v 1.2 2001/02/16 13:51:27 wiz Exp $
#

DISTNAME=	ircu2.10.04
PKGNAME=	ircu-2.10.04
CATEGORIES=	chat
MASTER_SITES=	ftp://ftp.undernet.org/pub/irc/servers/current/ \
		ftp://ftp.asu.net/pub/irc/servers/undernet/
EXTRACT_SUFX=	.tgz

MAINTAINER=	tv@netbsd.org
HOMEPAGE=	http://coder-com.undernet.org/
COMMENT=	Internet Relay Chat server customized for Undernet

GNU_CONFIGURE=	yes
IS_INTERACTIVE=	yes

post-configure:
	@${CP} ${FILESDIR}/config ${WRKSRC}/config/.config
	@cd ${WRKSRC} && \
		${MAKE} PREFIX="${PREFIX}" CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" config

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/etc/ircd ${PREFIX}/share/doc/ircd
	${INSTALL_PROGRAM} ${WRKSRC}/ircd/ircd ${PREFIX}/sbin/
	${INSTALL_PROGRAM} ${WRKSRC}/ircd/chkconf ${PREFIX}/sbin/ircd-chkconf
	${INSTALL_MAN} ${WRKSRC}/doc/ircd.8 ${PREFIX}/man/man8/
	${INSTALL_DATA} ${WRKSRC}/doc/example.conf \
		${PREFIX}/etc/ircd/ircd.conf.example
	cd ${WRKSRC}/doc && ${INSTALL_DATA} readme.crules readme.who \
		${PREFIX}/share/doc/ircd/

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