freebsd-ports/mail/rabl_server/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

64 lines
1.7 KiB
Makefile

# New ports collection makefile for: rabl_server
# Date created: 2005-10-25
# Whom: 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://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/
MAINTAINER= itetcu@people.tecnik93.com
COMMENT= Reactive Autonomous Blackhole List server
USE_AUTOTOOLS= libtool:15
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_REINPLACE= yes
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>