aboutsummaryrefslogtreecommitdiff
path: root/irc/charybdis/Makefile
blob: 181ec235047eac613eba468aa6741cc1a32a4ad9 (plain) (blame)
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
# New ports collection Makefile for:	charybdis
# Date created:	 	6th March 2011
# Whom:			Chris Rees <utisoft@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	charybdis
PORTVERSION=	3.3.0
CATEGORIES=	irc net
MASTER_SITES=	http://www.stack.nl/~jilles/irc/ \
		http://www.bayofrum.net/dist/${PORTNAME}/
EXTRACT_SUFX=	.tbz2

MAINTAINER=	crees@FreeBSD.org
COMMENT=	A powerful IRC daemon, based on ircd-ratbox

LICENSE=	GPLv2

CONFLICTS=	ircd-ratbox-[0-9]* \
		ircd-ratbox-devel-[0-9]* \
		nefarious-[0-9]* \
		ircd-hybrid-[0-9]* \
		ptlink-ircd-[0-9]*

MAN8=		ircd.8

USE_LDCONFIG=	yes
USE_RC_SUBR=	${PORTNAME}
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-confdir=${ETCDIR} \
		--with-helpdir=${DATADIR}/help \
		--with-logdir=/var/log/${PORTNAME} \
		--with-moduledir=${DATADIR}/modules \
		--enable-kqueue

USERS=	ircd
GROUPS=	ircd

post-patch:
	@${REINPLACE_CMD} -e \
		's#(libdir)/pkgconfig#${PREFIX}/libdata/pkgconfig#' \
		${WRKSRC}/libratbox/Makefile.in
# Fix BANDB path madness
	@${REINPLACE_CMD} -e 's#bandb_dpath != NULL#0#' \
		${WRKSRC}/bandb/rsdb_sqlite3.c

pre-su-install:
	@${MKDIR} ${DATADIR}

.include <bsd.port.mk>