1997-06-23 15:39:59 +00:00
|
|
|
# New ports collection makefile for: tac_plus
|
|
|
|
# Version required: 2.1
|
|
|
|
# Date created: 4 Mar 1997
|
|
|
|
# Whom: Igor Vinokurov <igor@zynaps.ru>
|
|
|
|
#
|
1998-01-16 04:06:17 +00:00
|
|
|
# $Id: Makefile,v 1.2 1997/09/17 04:51:30 max Exp $
|
1997-06-23 15:39:59 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= tac_plus.2.1
|
|
|
|
PKGNAME= tac_plus-2.1
|
|
|
|
CATEGORIES= net
|
1998-01-16 04:06:17 +00:00
|
|
|
MASTER_SITES= ftp://ftpeng.cisco.com/pub/tacacs/old/
|
1997-06-23 15:39:59 +00:00
|
|
|
EXTRACT_SUFX= .tar
|
|
|
|
|
|
|
|
MAINTAINER= igor@zynaps.ru
|
|
|
|
|
|
|
|
EXTRACT_BEFORE_ARGS= -C ${WRKDIR} -xf
|
|
|
|
ALL_TARGET= tac_plus
|
|
|
|
MAN8= tac_plus.8
|
1997-09-17 04:51:47 +00:00
|
|
|
EXTRA_PATCH= patch-ba
|
1997-06-23 15:39:59 +00:00
|
|
|
|
1997-09-17 04:51:47 +00:00
|
|
|
# To change the text displayed when users are prompted to enter
|
|
|
|
# a username, set appropriately TAC_CHANGE_PROMPT variable.
|
|
|
|
.if defined(TAC_CHANGE_PROMPT) && ${TAC_CHANGE_PROMPT} == YES
|
|
|
|
pre-patch:
|
|
|
|
@${CP} ${FILESDIR}/${EXTRA_PATCH} ${PATCHDIR}
|
|
|
|
.endif
|
1997-06-23 15:39:59 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tac_plus ${PREFIX}/sbin
|
1997-09-17 04:51:47 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/tac_plus.1 ${PREFIX}/man/man8/tac_plus.8
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/tac_plus.conf.example ${PREFIX}/etc/
|
1997-06-23 15:39:59 +00:00
|
|
|
@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; \
|
1997-09-17 04:51:47 +00:00
|
|
|
echo "[ -x ${PREFIX}/sbin/tac_plus -a -f ${PREFIX}/etc/tac_plus.conf ] && ${PREFIX}/sbin/tac_plus -C ${PREFIX}/etc/tac_plus.conf && echo -n ' tac_plus'" >> ${PREFIX}/etc/rc.d/tac_plus.sh; \
|
1997-06-23 15:39:59 +00:00
|
|
|
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
|
|
|
|
|
1997-09-17 04:51:47 +00:00
|
|
|
pre-clean:
|
|
|
|
@${RM} -f ${PATCHDIR}/${EXTRA_PATCH}
|
|
|
|
|
1997-06-23 15:39:59 +00:00
|
|
|
.include <bsd.port.mk>
|