summaryrefslogtreecommitdiff
path: root/net/nakenchat/Makefile
blob: 7c6807f9447864ac9fda5038bd55280cadbf3a6a (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
52
53
54
55
56
57
58
59
60
61
62
# New ports collection makefile for:   nakenchat
# Date created:        01 July 2003
# Whom:                Michael Kohn  (mike@mikekohn.net)
#
# $FreeBSD$
#

PORTNAME=	nakenchat
PORTVERSION=	2.12
CATEGORIES=	net
MASTER_SITES=	http://downloads.mikekohn.net/nakenchat/

MAINTAINER=	oleg.ginzburg@nevosoft.ru
COMMENT=	Small (under 50k) chat server with many features

HAS_CONFIGURE=	yes
USE_RC_SUBR=	nakenchat

OPTIONS=	KEEPALIVEOFF "Disable socket keepalive option" off \
		USERCHANLISTOFF "Disable userlist based on channel" off  \
		DEBUG "Compile in debug code" off \
		HIDDENCAVES "Enable hidden caves feature" off \
		DOTQ "compile in .Q option" off \
		FUSERLIST "support to save current userlist to a file" off \
		ELITEFILTER "Enable the 3li73 filter" off

.include <bsd.port.pre.mk>

.if defined(WITH_KEEPALIVEOFF)
CONFIGURE_ARGS+=	--disable-keepalive
.endif

.if defined(WITH_USERCHANLISTOFF)
CONFIGURE_ARGS+=	--disable-userchanlist
.endif

.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=	--enable-debug
.endif

.if defined(WITH_HIDDENCAVES)
CONFIGURE_ARGS+=	--enable-hidden-caves
.endif

.if defined(WITH_DOTQ)
CONFIGURE_ARGS+=	--enable-dotQ
.endif

.if defined(WITH_FUSERLIST)
CONFIGURE_ARGS+=	--enable-whofile
.endif

.if defined(WITH_ELITEFILTER)
CONFIGURE_ARGS+=	--enable-elite
.endif

post-install:
	@if [ ! -f ${PREFIX}/etc/nakenchat.conf ]; then \
		${CP} -p ${PREFIX}/etc/nakenchat.conf.sample ${PREFIX}/etc/nakenchat.conf ; \
	fi

.include <bsd.port.post.mk>