diff options
author | jmmv <jmmv@pkgsrc.org> | 2003-05-01 18:35:46 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2003-05-01 18:35:46 +0000 |
commit | 4a5fce631cda91fbfb9e339cd1f33a17e301a69b (patch) | |
tree | 59bd0c629aae54cd052ae8226350779a2ae4a4e4 /net/radiusd-cistron/Makefile | |
parent | 109ad3c5d6180d1c283405ca52e80a7877a43740 (diff) | |
download | pkgsrc-4a5fce631cda91fbfb9e339cd1f33a17e301a69b.tar.gz |
Convert to use bsd.pkg.install.mk:
- Honour PKG_SYSCONFDIR.
- Use OWN_DIRS_PERMS to handle the /var/log/radacct directory.
- Use RCD_SCRIPTS to install a NetBSD rc.d compatible script.
Bump PKGREVISION to 1.
Diffstat (limited to 'net/radiusd-cistron/Makefile')
-rw-r--r-- | net/radiusd-cistron/Makefile | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/net/radiusd-cistron/Makefile b/net/radiusd-cistron/Makefile index 9f9cfb61563..af6d6600979 100644 --- a/net/radiusd-cistron/Makefile +++ b/net/radiusd-cistron/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.7 2003/05/01 18:05:26 jmmv Exp $ +# $NetBSD: Makefile,v 1.8 2003/05/01 18:35:46 jmmv Exp $ DISTNAME= radiusd-cistron-1.6.6 +PKGREVISION= 1 CATEGORIES= net MASTER_SITES= ftp://ftp.cistron.nl/pub/people/miquels/radius/ \ ftp://ftp.freeradius.org/pub/radius/ @@ -12,13 +13,30 @@ COMMENT= RADIUS-compliant remote authentication and accouting server CONFLICTS+= freeradius* USE_BUILDLINK2= YES +USE_PKGINSTALL= YES MAKEFILE= Makefile.BSD BUILD_DIRS= ${WRKSRC}/src INSTALL_DIRS= ${WRKSRC}/src +RCD_SCRIPTS= radiusd + +OWN_DIRS_PERMS= /var/log/radacct ${ROOT_USER} ${ROOT_GROUP} 700 + +PKG_SYSCONFSUBDIR= raddb +EGDIR= ${PREFIX}/share/examples/raddb +CONF_FILES= +.for cfile in clients.sample dictionary dictionary.ascend dictionary.bay \ + dictionary.cisco dictionary.cistron dictionary.compat \ + dictionary.erx dictionary.livingston dictionary.redback \ + dictionary.shiva dictionary.tunnel dictionary.usr \ + dictionary.versanet hints.sample huntgroups.sample \ + naslist.sample naspasswd.sample realms.sample users.sample +CONF_FILES+= ${EGDIR}/${cfile} ${PKG_SYSCONFDIR}/${cfile:S/.sample//} +.endfor +.undef cfile + post-install: - @${MKDIR} -m 700 /var/log/radacct ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/radiusd-cistron ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${PREFIX}/share/doc/radiusd-cistron ${INSTALL_DATA} ${WRKSRC}/doc/ChangeLog ${PREFIX}/share/doc/radiusd-cistron @@ -43,9 +61,5 @@ post-install: ${INSTALL_MAN} ${WRKSRC}/doc/radiusd.8 ${PREFIX}/man/man8 ${INSTALL_MAN} ${WRKSRC}/doc/radrelay.8 ${PREFIX}/man/man8 ${INSTALL_MAN} ${WRKSRC}/doc/radwatch.8 ${PREFIX}/man/man8 - @${SED} -e "s=!!PREFIX!!=${PREFIX}=g" ${FILESDIR}/radiusd.sh.tmpl \ - > ${PREFIX}/etc/rc.d/radiusd - @${CHMOD} 555 ${PREFIX}/etc/rc.d/radiusd - @${CHOWN} ${ROOT_USER}:${ROOT_GROUP} ${PREFIX}/etc/rc.d/radiusd .include "../../mk/bsd.pkg.mk" |