blob: 7d12d5579999bffb2df0382fd24783d63382a802 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# New ports collection makefile for: tac_plus
# Date created: 4 Mar 1997
# Whom: Igor Vinokurov <igor@zynaps.ru>
#
# $FreeBSD$
#
PORTNAME= tac_plus
PORTVERSION= F4.0.4
PORTREVISION= 3
CATEGORIES= net
MASTER_SITES= ftp://ftp-eng.cisco.com/pub/tacacs/
DISTNAME= tac_plus.F4.0.4.alpha
EXTRACT_SUFX= .tar.Z
MAINTAINER= marcus@FreeBSD.org
COMMENT= The Cisco remote authentication/authorization/accounting server
ALL_TARGET= tac_plus
MAN1= tac_plus.1
CONFLICTS= ru-tac+ia-* tac_plus-libradius-*
# 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
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-ba
.endif
# check expiration dates against 'expire' field of master.passwd file
.if defined(TAC_EXPIRE_MASTER_PASSWD) && ${TAC_EXPIRE_MASTER_PASSWD} == YES
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-bb
.endif
# finger output differs for CISCO IOS versions 11 and 12.
# Define version of your IOS (default is 11):
# Example: make TAC_IOS_VERSION=12
#
.if defined(TAC_IOS_VERSION)
CFLAGS+= -DTAC_IOS_VERSION=${TAC_IOS_VERSION}
.else
CFLAGS+= -DTAC_IOS_VERSION=11
.endif
.if exists(/usr/include/skey.h) && !defined(WITHOUT_SKEY)
MAKE_ENV+= WITH_SKEY=1
.endif
.if exists(/usr/include/opie.h) && !defined(WITHOUT_OPIE)
MAKE_ENV+= WITH_OPIE=1
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tac_plus ${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/generate_passwd ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/tac_plus.1 ${PREFIX}/man/man1/tac_plus.1
${INSTALL_DATA} ${FILESDIR}/tac_plus.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."; \
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/tac_plus.sh ${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
${INSTALL_SCRIPT} ${WRKSRC}/convert.pl ${PREFIX}/share/doc/tac_plus
.endif
post-install:
${STRIP_CMD} ${PREFIX}/sbin/tac_plus
.include <bsd.port.mk>
|