diff options
Diffstat (limited to 'net/ascend-radius/Makefile')
-rw-r--r-- | net/ascend-radius/Makefile | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/net/ascend-radius/Makefile b/net/ascend-radius/Makefile new file mode 100644 index 000000000000..b213348493dd --- /dev/null +++ b/net/ascend-radius/Makefile @@ -0,0 +1,59 @@ +# New ports collection makefile for: ascend-radius +# Version required: 960919 (v1.16) +# Date created: August 28th 96 +# Whom: James FitzGibbon <jfitz@FreeBSD.org> +# +# $Id$ +# + +DISTNAME= rad0919 +PKGNAME= ascend-radius-960919 +CATEGORIES+= net +MASTER_SITES= ftp://ftp.ascend.com/pub/Software-Releases/Radius/Current/ +EXTRACT_SUFX= .gz + +MAINTAINER= jfitz@FreeBSD.ORG + +WRKPREFIX= radius-960919/radius-1.16-ascend +WRKSRC= ${WRKDIR}/${WRKPREFIX}/ascendd + +ALL_TARGET= all dbm + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/radiusd ${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKSRC}/radiusd.dbm ${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKSRC}/builddbm ${PREFIX}/sbin +.ifdef NOMANCOMPRESS + ${INSTALL_MAN} ${WRKDIR}/${WRKPREFIX}/man1/users-file-syntax.1 ${PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKDIR}/${WRKPREFIX}/man1/builddbm.1 ${PREFIX}/man/man1 +.else + @ ${CP} ${WRKDIR}/${WRKPREFIX}/man1/users-file-syntax.1 ${WRKSRC} + @ ${CP} ${WRKDIR}/${WRKPREFIX}/man1/builddbm.1 ${WRKSRC} + @ gzip -9nf ${WRKSRC}/users-file-syntax.1 + @ gzip -9nf ${WRKSRC}/builddbm.1 + ${INSTALL_MAN} ${WRKSRC}/users-file-syntax.1.gz ${PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/builddbm.1.gz ${PREFIX}/man/man1 +.endif +.ifndef NOPORTDOCS + @ mkdir -p ${PREFIX}/share/doc/ascend-radius + for file in ascend.doc draft-ietf-radius-accounting-01.txt draft-ietf-radius-radius-03.txt draft-ietf-radius-radius-04.txt; do \ + ${INSTALL_DATA} ${WRKDIR}/${WRKPREFIX}/doc/$$file ${PREFIX}/share/doc/ascend-radius; \ + done + for file in ChangeLog README README.cexample README.dict; do \ + ${INSTALL_DATA} ${WRKDIR}/${WRKPREFIX}/$$file ${PREFIX}/share/doc/ascend-radius; \ + done +.endif + @ mkdir -p ${PREFIX}/etc/raddb + @ chown root.wheel ${PREFIX}/etc/raddb + @ chmod 700 ${PREFIX}/etc/raddb + for file in clients.example dictionary users.example; do \ + ${INSTALL} -c -o root -g wheel -m 0400 ${WRKDIR}/${WRKPREFIX}/raddb/$$file ${PREFIX}/etc/raddb; \ + done + @ mkdir -p /var/log/radacct + @ chown root.wheel /var/log/radacct + @ chmod 700 /var/log/radacct + +pre-clean: + @ ${RM} -f ${PATCHDIR}/patch-zz + +.include <bsd.port.mk> |