pkgsrc/net/freeradius/Makefile

52 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2003/05/02 11:56:01 wiz Exp $
DISTNAME= freeradius-0.7
CATEGORIES= net
PKGREVISION= 2
MASTER_SITES= ftp://ftp.freeradius.org/pub/radius/ \
ftp://ftp.Awfulhak.org/pub/radius/
MAINTAINER= david@netbsd-fr.org
HOMEPAGE= http://www.freeradius.org/
COMMENT= Free RADIUS server implementation
CONFLICTS+= radiusd-cistron*
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --quiet --with-logdir=/var/log --disable-ltdl-install --with-ltdl-lib=${PREFIX}/lib --with-ltdl-include=${PREFIX}/include
USE_BUILDLINK2= YES
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
.include "../../mk/bsd.prefs.mk"
# Needs semaphore functions as well as thread libs.
.if ${OPSYS} == "NetBSD"
. if ${OS_VERSION:M1.[0-5]*} || ${OS_VERSION} == "1.6" || ${OS_VERSION:M1.6[A-M]*} || ${OS_VERSION:M1.6.1*}
CONFIGURE_ARGS+= --with-threads=no
. endif
.endif
RADDB= acct_users attrs clients clients.conf dictionary \
dictionary.acc dictionary.aptis dictionary.ascend \
dictionary.bay dictionary.cisco dictionary.compat \
dictionary.erx dictionary.foundry dictionary.freeradius \
dictionary.livingston dictionary.microsoft dictionary.nomadix \
dictionary.quintum dictionary.redback dictionary.shasta \
dictionary.shiva dictionary.tunnel dictionary.usr \
dictionary.versanet hints huntgroups ldap.attrmap naslist \
naspasswd postgresql.conf proxy.conf radiusd.conf realms \
snmp.conf sql.conf users x99.conf
post-install:
@${INSTALL_DATA_DIR} ${PREFIX}/etc/raddb
.for db in ${RADDB}
${INSTALL_DATA} ${WRKSRC}/raddb/${db} ${PREFIX}/etc/raddb/${db}.sample
.endfor
@${SED} -e "s=!!PREFIX!!=${PREFIX}=g" ${FILESDIR}/radiusd \
> ${PREFIX}/etc/rc.d/radiusd
.include "../../databases/gdbm/buildlink2.mk"
.include "../../mk/pthread.buildlink2.mk"
.include "../../devel/libtool/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"