1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/net/tac_plus4/Makefile
Masafumi Max NAKANE e632592b39 New port, tac_plus:
tac_plus provides Cisco systems routers and access servers
with authentication, authorisation and accounting services.

A configuration file controls the details of authentication,
authorisation and accounting.

PR:		2869
Submitted by:	Igor Vinokurov<igor@zynaps.ru>
Note: Although there is no terms and conditions on redistribution found,
the author says there is no restriction.  (This is stated in more
recent alpha version.)  The only concern is the U.S. Export restriction,
but Cisco has been granted with the right to export their software,
according to the author.  And also I haven't been able to find any
implementation that may violate the export control in the source code,
either.  So, I import this without any RESTRICTED or NO_CDROM defined.
1997-06-23 15:39:59 +00:00

40 lines
1.2 KiB
Makefile

# New ports collection makefile for: tac_plus
# Version required: 2.1
# Date created: 4 Mar 1997
# Whom: Igor Vinokurov <igor@zynaps.ru>
#
# $Id$
#
DISTNAME= tac_plus.2.1
PKGNAME= tac_plus-2.1
CATEGORIES= net
MASTER_SITES= ftp://ftpeng.cisco.com/pub/tacacs/
EXTRACT_SUFX= .tar
MAINTAINER= igor@zynaps.ru
EXTRACT_BEFORE_ARGS= -C ${WRKDIR} -xf
ALL_TARGET= tac_plus
MAN8= tac_plus.8
post-patch:
@${MV} -f ${WRKSRC}/tac_plus.1 ${WRKSRC}/tac_plus.8
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tac_plus ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/tac_plus.8 ${PREFIX}/man/man8
${INSTALL_DATA} ${FILESDIR}/tacacs.conf.example ${PREFIX}/etc/
@if [ ! -f ${PREFIX}/etc/rc.d/tac_plus.sh ]; then \
${ECHO} "Installing ${PREFIX}/etc/rc.d/tac_plus.sh startup file."; \
echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/tac_plus.sh; \
echo "[ -x ${PREFIX}/sbin/tac_plus -a -f ${PREFIX}/etc/tac_plus.conf ] && ${PREFIX}/sbin/tac_plus -C ${PREFIX}/etc/tacacs.conf && echo -n ' tac_plus'" >> ${PREFIX}/etc/rc.d/tac_plus.sh; \
chmod 751 ${PREFIX}/etc/rc.d/tac_plus.sh; \
fi
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/tac_plus
${INSTALL_DATA} ${WRKSRC}/users_guide ${PREFIX}/share/doc/tac_plus
.endif
.include <bsd.port.mk>