1 # $NetBSD: Makefile,v 1.15 2005/04/11 21:46:59 tv Exp $
3 DISTNAME= radiusd-cistron-1.6.7
6 MASTER_SITES= ftp://ftp.cistron.nl/pub/people/miquels/radius/ \
7 ftp://ftp.freeradius.org/pub/radius/
9 MAINTAINER= tech-pkg@NetBSD.org
10 HOMEPAGE= http://www.radius.cistron.nl/
11 COMMENT= RADIUS-compliant remote authentication and accounting server
13 CONFLICTS+= freeradius-[0-9]*
17 MAKEFILE= Makefile.BSD
18 BUILD_DIRS= ${WRKSRC}/src
19 INSTALL_DIRS= ${WRKSRC}/src
23 OWN_DIRS_PERMS= /var/log/radacct ${ROOT_USER} ${ROOT_GROUP} 700
25 PKG_SYSCONFSUBDIR= raddb
26 EGDIR= ${PREFIX}/share/examples/raddb
28 .for cfile in clients.sample dictionary dictionary.ascend dictionary.bay \
29 dictionary.cisco dictionary.cistron dictionary.compat \
30 dictionary.erx dictionary.livingston dictionary.redback \
31 dictionary.shiva dictionary.tunnel dictionary.usr \
32 dictionary.versanet hints.sample huntgroups.sample \
33 naslist.sample naspasswd.sample realms.sample users.sample
34 CONF_FILES+= ${EGDIR}/${cfile} ${PKG_SYSCONFDIR}/${cfile:S/.sample//}
39 ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/radiusd-cistron
40 ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${PREFIX}/share/doc/radiusd-cistron/
41 .for i in ChangeLog README README.CVX README.Y2K README.cisco \
42 README.pam README.proxy README.radrelay README.simul \
43 README.tunnel README.usersfile
44 ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/doc/radiusd-cistron/
46 .for i in radclient.1 radlast.1 radtest.1 radwho.1 radzap.1
47 ${INSTALL_MAN} ${WRKSRC}/doc/${i} ${PREFIX}/man/man1/
49 .for i in clients.5rad naslist.5rad
50 ${INSTALL_MAN} ${WRKSRC}/doc/${i} ${PREFIX}/man/man5/
52 .for i in radiusd.8 radrelay.8 radwatch.8
53 ${INSTALL_MAN} ${WRKSRC}/doc/${i} ${PREFIX}/man/man8/
56 # The sources assume <malloc.h> exists. Create a fake one for platforms
59 if ${TEST} ! -f /usr/include/malloc.h; then \
60 ${ECHO} "#include <stdlib.h>" \
61 > ${BUILDLINK_DIR}/include/malloc.h; \
64 .include "../../mk/bsd.pkg.mk"