1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-07 02:06:57 +00:00
freebsd-ports/mail/rabl_server/Makefile
2013-06-04 10:32:49 +00:00

58 lines
1.4 KiB
Makefile

# Created by: Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
# $FreeBSD$
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
LDFLAGS+= -L${LOCALBASE}/lib
PORTDOCS= CHANGE README RELEASE.NOTES
OPTIONS_DEFINE= DEBUG DOCS
USE_RC_SUBR= ${PORTNAME}
RABL_GROUP?= bind
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDEBUG}
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 ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
. for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
. endfor
.endif
.include <bsd.port.mk>