blob: 5eb4ae8898aa0ca690a4955136b7c6430c5fb7fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# $NetBSD: Makefile,v 1.5 2003/07/30 12:08:47 jmmv 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
USE_BUILDLINK2= YES
USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
CONFIGURE_ARGS= --quiet
CONFIGURE_ARGS+= --with-logdir=/var/log
CONFIGURE_ARGS+= --disable-ltdl-install
CONFIGURE_ARGS+= --with-ltdl-lib=${PREFIX}/lib
CONFIGURE_ARGS+= --with-ltdl-include=${PREFIX}/include
.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"
|