freebsd-ports/net/openradius/Makefile
Joerg Wunsch 0573e251a5 Make LDAP support an option.
Previously, it was conditionally compiled into the package depending
on whether ${LOCALBASE}/include/ldap.h was present in the host system,
but without even considering to also conditionally modify the PLIST.

This has been fixed now.

Pointed out by:		pointyhat's build log
2005-04-08 09:32:25 +00:00

39 lines
834 B
Makefile

# New ports collection makefile for: openradius
# Date created: 23 May 2003
# Whom: Adam Jette <jettea46@yahoo.com>
#
# $FreeBSD$
#
PORTNAME= openradius
PORTVERSION= 0.9.9
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.xs4all.nl/~evbergen/openradius/download/ \
http://www.mirrors.wiretapped.net/security/authentication/radius/openradius/
MAINTAINER= jettea46@yahoo.com
COMMENT= A RADIUS server with some actual documentation
CONFLICTS= freeradius-0.* gnu-radius-1.* radiusd-cistron-1.*
CC?= gcc
CXX?= g++
USE_GMAKE= yes
OPTIONS= LDAP "With LDAP user database" off
.include <bsd.port.pre.mk>
.if defined(WITH_LDAP)
USE_OPENLDAP= YES
PLIST_SUB+= LDAP=""
SCRIPTS_ENV+= USE_LDAP=yes
.else
PLIST_SUB+= LDAP="@comment "
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>