2003-09-27 09:29:44 +02:00
|
|
|
# New ports collection makefile for: openradius
|
|
|
|
# Date created: 23 May 2003
|
|
|
|
# Whom: Adam Jette <jettea46@yahoo.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2004-10-28 02:17:34 +02:00
|
|
|
PORTNAME= openradius
|
2005-04-11 18:19:53 +02:00
|
|
|
PORTVERSION= 0.9.10
|
2005-04-14 16:30:21 +02:00
|
|
|
PORTREVISION= 1
|
2004-10-28 02:17:34 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://www.xs4all.nl/~evbergen/openradius/download/ \
|
|
|
|
http://www.mirrors.wiretapped.net/security/authentication/radius/openradius/
|
2003-09-27 09:29:44 +02:00
|
|
|
|
2004-10-28 02:17:34 +02:00
|
|
|
MAINTAINER= jettea46@yahoo.com
|
|
|
|
COMMENT= A RADIUS server with some actual documentation
|
2003-09-27 09:29:44 +02:00
|
|
|
|
2005-04-14 16:30:21 +02:00
|
|
|
LOGFILE?= /var/log/openradius.log
|
|
|
|
|
2003-10-14 17:47:28 +02:00
|
|
|
CONFLICTS= freeradius-0.* gnu-radius-1.* radiusd-cistron-1.*
|
2003-09-27 09:29:44 +02:00
|
|
|
|
2004-10-28 02:17:34 +02:00
|
|
|
CC?= gcc
|
|
|
|
CXX?= g++
|
|
|
|
USE_GMAKE= yes
|
2003-09-27 09:29:44 +02:00
|
|
|
|
2005-04-08 11:32:25 +02: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
|
|
|
|
|
2005-04-14 16:30:21 +02:00
|
|
|
post-patch:
|
|
|
|
@${SED} -e "s|%%PREFIX%%|${PREFIX}|g" -e "s|%%LOGFILE%%|${LOGFILE}|g" \
|
|
|
|
< ${FILESDIR}/openradiusd.sh > ${WRKDIR}/openradiusd.sh
|
|
|
|
|
2003-09-27 09:29:44 +02:00
|
|
|
post-install:
|
2005-04-14 16:30:21 +02: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}
|
|
|
|
${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/behaviour.sample-usersfile-longpass ${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/redhat-sysv-init-script ${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 18:19:53 +02:00
|
|
|
# Configuration, copy over to sample files
|
|
|
|
${MKDIR} ${PREFIX}/etc/${PORTNAME}
|
|
|
|
.for FILE in dictionary behaviour configuration
|
|
|
|
${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 16:30:21 +02:00
|
|
|
${INSTALL} -m 0600 ${WRKSRC}/etc/legacy/${FILE} \
|
2005-04-11 18:19:53 +02:00
|
|
|
${PREFIX}/etc/${PORTNAME}/legacy/${FILE}.sample
|
|
|
|
.endfor
|
2005-04-14 16:30:21 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/openradiusd.sh ${PREFIX}/etc/rc.d
|
2003-09-27 09:29:44 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2005-04-08 11:32:25 +02:00
|
|
|
.include <bsd.port.post.mk>
|