2003-09-27 07:29:44 +00:00
|
|
|
# New ports collection makefile for: openradius
|
|
|
|
# Date created: 23 May 2003
|
|
|
|
# Whom: Adam Jette <jettea46@yahoo.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2004-10-28 00:17:34 +00:00
|
|
|
PORTNAME= openradius
|
2007-03-28 09:57:50 +00:00
|
|
|
PORTVERSION= 0.9.12c
|
2008-01-25 19:55:35 +00:00
|
|
|
PORTREVISION= 1
|
2004-10-28 00:17:34 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://www.xs4all.nl/~evbergen/openradius/download/ \
|
|
|
|
http://www.mirrors.wiretapped.net/security/authentication/radius/openradius/
|
2003-09-27 07:29:44 +00:00
|
|
|
|
2006-11-08 09:28:33 +00:00
|
|
|
MAINTAINER= farrokhi@FreeBSD.org
|
2004-10-28 00:17:34 +00:00
|
|
|
COMMENT= A RADIUS server with some actual documentation
|
2003-09-27 07:29:44 +00:00
|
|
|
|
2005-04-14 14:30:21 +00:00
|
|
|
LOGFILE?= /var/log/openradius.log
|
|
|
|
|
2003-10-14 15:47:28 +00:00
|
|
|
CONFLICTS= freeradius-0.* gnu-radius-1.* radiusd-cistron-1.*
|
2003-09-27 07:29:44 +00:00
|
|
|
|
2004-10-28 00:17:34 +00:00
|
|
|
CC?= gcc
|
|
|
|
CXX?= g++
|
2006-02-04 00:38:34 +00:00
|
|
|
|
2004-10-28 00:17:34 +00:00
|
|
|
USE_GMAKE= yes
|
2006-02-04 00:38:34 +00:00
|
|
|
USE_RC_SUBR= openradius
|
|
|
|
SUB_LIST= LOGFILE="${LOGFILE}"
|
2003-09-27 07:29:44 +00:00
|
|
|
|
2005-04-08 09:32:25 +00:00
|
|
|
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
|
|
|
|
|
2008-06-13 17:59:37 +00:00
|
|
|
.if ${OSVERSION} >= 800034 || (${OSVERSION} >= 700109 && ${OSVERSION} < 800000) || (${OSVERSION} >= 603103 && ${OSVERSION} < 700000)
|
2008-04-25 22:57:14 +00:00
|
|
|
BROKEN= does not compile
|
|
|
|
.endif
|
|
|
|
|
2003-09-27 07:29:44 +00:00
|
|
|
post-install:
|
2005-04-14 14:30:21 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${MKDIR} ${EXAMPLESDIR}/accounts
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/async-iface-notes ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/language.html ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/module-interface.html ${DOCSDIR}
|
2006-11-01 08:02:14 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/note-behaviourfile ${DOCSDIR}
|
2005-04-14 14:30:21 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/note-struct-ownership ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/using-openradius.html ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-ldap ${EXAMPLESDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-ldap-authbind ${EXAMPLESDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-mysql ${EXAMPLESDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-postgres ${EXAMPLESDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-unixpass ${EXAMPLESDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/examples/behaviour.sample-usersfile ${EXAMPLESDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-ldap ${EXAMPLESDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-ldap-authbind ${EXAMPLESDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-mysql ${EXAMPLESDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-postgres ${EXAMPLESDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-unixpass ${EXAMPLESDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/examples/configuration.sample-usersfile ${EXAMPLESDIR}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/examples/accounts/README ${EXAMPLESDIR}/accounts
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/examples/accounts/accounts.mysql ${EXAMPLESDIR}/accounts
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/examples/accounts/behaviour ${EXAMPLESDIR}/accounts
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/examples/accounts/configuration ${EXAMPLESDIR}/accounts
|
|
|
|
.endif
|
2005-04-11 16:19:53 +00:00
|
|
|
# Configuration, copy over to sample files
|
|
|
|
${MKDIR} ${PREFIX}/etc/${PORTNAME}
|
2006-11-01 08:02:14 +00:00
|
|
|
.for FILE in dictionary
|
2005-04-11 16:19:53 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/${FILE} \
|
|
|
|
${PREFIX}/etc/${PORTNAME}/${FILE}.sample
|
|
|
|
.endfor
|
|
|
|
# Copy over legacy config files to sample
|
|
|
|
${MKDIR} ${PREFIX}/etc/${PORTNAME}/legacy
|
|
|
|
.for FILE in clients nases realms users
|
2005-04-14 14:30:21 +00:00
|
|
|
${INSTALL} -m 0600 ${WRKSRC}/etc/legacy/${FILE} \
|
2005-04-11 16:19:53 +00:00
|
|
|
${PREFIX}/etc/${PORTNAME}/legacy/${FILE}.sample
|
|
|
|
.endfor
|
2006-11-01 08:02:14 +00:00
|
|
|
|
|
|
|
${MKDIR} ${PREFIX}/etc/${PORTNAME}/modules
|
|
|
|
.for FILE in radldap.attrmap
|
|
|
|
${INSTALL} -m 0600 ${WRKSRC}/etc/modules/${FILE} \
|
|
|
|
${PREFIX}/etc/${PORTNAME}/modules/${FILE}.sample
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
${MKDIR} ${PREFIX}/etc/${PORTNAME}/subdicts
|
|
|
|
.for FILE in dict.*
|
|
|
|
${INSTALL} -m 0600 ${WRKSRC}/etc/subdicts/${FILE} \
|
|
|
|
${PREFIX}/etc/${PORTNAME}/subdicts/
|
|
|
|
.endfor
|
|
|
|
|
2006-02-04 00:38:34 +00:00
|
|
|
@${ECHO_CMD}
|
2003-09-27 07:29:44 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2006-02-04 00:38:34 +00:00
|
|
|
@${ECHO_CMD}
|
2003-09-27 07:29:44 +00:00
|
|
|
|
2005-04-08 09:32:25 +00:00
|
|
|
.include <bsd.port.post.mk>
|