Fixup fromcvs/togit conversion
[pkgsrcv2.git] / net / radiusd-cistron / Makefile
1 # $NetBSD: Makefile,v 1.25 2007/12/22 12:39:57 obache Exp $
2
3 DISTNAME=       radiusd-cistron-1.6.8
4 CATEGORIES=     net
5 MASTER_SITES=   ftp://ftp.cistron.nl/pub/people/miquels/radius/
6
7 MAINTAINER=     pkgsrc-users@NetBSD.org
8 HOMEPAGE=       http://www.radius.cistron.nl/
9 COMMENT=        RADIUS-compliant remote authentication and accounting server
10
11 PKG_DESTDIR_SUPPORT=    user-destdir
12
13 CONFLICTS+=     freeradius-[0-9]*
14
15 USE_TOOLS+=     perl:run
16
17 REPLACE_PERL=   src/checkrad.pl
18
19 MAKE_FILE=      Makefile.BSD
20 BUILD_DIRS=     src
21 INSTALL_DIRS=   src
22 INSTALLATION_DIRS=      bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 \
23                         ${PKGMANDIR}/man8 sbin share/examples/raddb \
24                         share/doc/radiusd-cistron
25
26 RCD_SCRIPTS=    radiusd
27
28 OWN_DIRS_PERMS= /var/log/radacct ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 700
29
30 PKG_SYSCONFSUBDIR=      raddb
31 EGDIR=          ${PREFIX}/share/examples/raddb
32 CONF_FILES=
33 .for cfile in   clients.sample dictionary dictionary.ascend dictionary.bay \
34                 dictionary.cisco dictionary.cistron dictionary.compat \
35                 dictionary.erx dictionary.livingston dictionary.redback \
36                 dictionary.shiva dictionary.tunnel dictionary.usr \
37                 dictionary.versanet hints.sample huntgroups.sample \
38                 naslist.sample naspasswd.sample realms.sample users.sample
39 CONF_FILES+=    ${EGDIR}/${cfile} ${PKG_SYSCONFDIR}/${cfile:S/.sample//}
40 .endfor
41
42 post-install:
43         ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${DESTDIR}${PREFIX}/share/doc/radiusd-cistron/
44 .for i in       ChangeLog README README.CVX README.Y2K README.cisco     \
45                 README.pam README.proxy README.radrelay README.simul    \
46                 README.tunnel README.usersfile
47         ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DESTDIR}${PREFIX}/share/doc/radiusd-cistron/
48 .endfor
49 .for i in       radclient.1 radlast.1 radtest.1 radwho.1 radzap.1
50         ${INSTALL_MAN} ${WRKSRC}/doc/${i} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
51 .endfor
52 .for i in       clients.5rad naslist.5rad
53         ${INSTALL_MAN} ${WRKSRC}/doc/${i} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/
54 .endfor
55 .for i in       radiusd.8 radrelay.8 radwatch.8
56         ${INSTALL_MAN} ${WRKSRC}/doc/${i} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/
57 .endfor
58
59 .include "../../mk/bsd.pkg.mk"