Update ruby-activerecord pacakge to 1.12.1.
[pkgsrc.git] / net / radiusd-cistron / Makefile
1 # $NetBSD: Makefile,v 1.15 2005/04/11 21:46:59 tv Exp $
2
3 DISTNAME=       radiusd-cistron-1.6.7
4 PKGREVISION=    1
5 CATEGORIES=     net
6 MASTER_SITES=   ftp://ftp.cistron.nl/pub/people/miquels/radius/ \
7                 ftp://ftp.freeradius.org/pub/radius/
8
9 MAINTAINER=     tech-pkg@NetBSD.org
10 HOMEPAGE=       http://www.radius.cistron.nl/
11 COMMENT=        RADIUS-compliant remote authentication and accounting server
12
13 CONFLICTS+=     freeradius-[0-9]*
14
15 USE_PKGINSTALL= YES
16
17 MAKEFILE=       Makefile.BSD
18 BUILD_DIRS=     ${WRKSRC}/src
19 INSTALL_DIRS=   ${WRKSRC}/src
20
21 RCD_SCRIPTS=    radiusd
22
23 OWN_DIRS_PERMS= /var/log/radacct ${ROOT_USER} ${ROOT_GROUP} 700
24
25 PKG_SYSCONFSUBDIR=      raddb
26 EGDIR=          ${PREFIX}/share/examples/raddb
27 CONF_FILES=
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//}
35 .endfor
36 .undef cfile
37
38 post-install:
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/
45 .endfor
46 .for i in       radclient.1 radlast.1 radtest.1 radwho.1 radzap.1
47         ${INSTALL_MAN} ${WRKSRC}/doc/${i} ${PREFIX}/man/man1/
48 .endfor
49 .for i in       clients.5rad naslist.5rad
50         ${INSTALL_MAN} ${WRKSRC}/doc/${i} ${PREFIX}/man/man5/
51 .endfor
52 .for i in       radiusd.8 radrelay.8 radwatch.8
53         ${INSTALL_MAN} ${WRKSRC}/doc/${i} ${PREFIX}/man/man8/
54 .endfor
55
56 # The sources assume <malloc.h> exists.  Create a fake one for platforms
57 # that don't have it.
58 post-wrapper:
59         if ${TEST} ! -f /usr/include/malloc.h; then             \
60                 ${ECHO} "#include <stdlib.h>"                   \
61                         > ${BUILDLINK_DIR}/include/malloc.h;    \
62         fi
63
64 .include "../../mk/bsd.pkg.mk"