summaryrefslogtreecommitdiff
path: root/mail/rabl_server/Makefile
blob: dc3dbc0c019375e0165b33c513892c2f5e0e19d7 (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
63
# New ports collection makefile for:	rabl_server
# Date created:				2005-10-25
# Whom:					Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
#
# $FreeBSD$
#
# $Tecnik: ports/mail/rabl_server/Makefile,v 1.7 2005/12/09 19:54:50 itetcu Exp $
#

PORTNAME=	rabl_server
PORTVERSION=	1.0.0
CATEGORIES=	mail dns
MASTER_SITES=	http://www.nuclearelephant.com/projects/rabl/sources/ \
		http://sce-tindy.tecnik93.com/FreeBSD/ports/${PORTNAME}/sources/

MAINTAINER=	itetcu@FreeBSD.org
COMMENT=	Reactive Autonomous Blackhole List server

GNU_CONFIGURE=		yes
USE_LDCONFIG=		yes
CONFIGURE_ENV=		LDFLAGS="-L${LOCALBASE}/lib"

PORTDOCS=	CHANGE README RELEASE.NOTES

OPTIONS=	DEBUG "Enable DEBUG messages"	off

USE_RC_SUBR=	${PORTNAME}.sh

RABL_GROUP?=	bind

.include <bsd.port.pre.mk>

.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=	--enable-debug
CFLAGS+=		-g -DDEBUG
STRIP_CMD=		# empty
.endif

.pre-everything::
	${ECHO_CMD}
	${ECHO_CMD} "If you plan to run ${PORTNAME} as an other user that the"
	${ECHO_CMD} "default 'bind' define RABL_GROUP to the group that user belongs"
	${ECHO_CMD} "RABL_GROUP=${RABL_GROUP} (default: bind)"
	${ECHO_CMD}

post-patch:
	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure

post-install:
	${INSTALL} -o ${SHAREOWN} -g ${RABL_GROUP} -m 0640 \
		${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample
.if !exists(${PREFIX}/etc/${PORTNAME}.conf)
	${INSTALL} -o ${SHAREOWN} -g ${RABL_GROUP} -m 0640 \
		${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc
.endif
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.	for i in ${PORTDOCS}
		${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.	endfor
.endif

.include <bsd.port.post.mk>