aboutsummaryrefslogtreecommitdiff
path: root/net/tac_plus4/Makefile
diff options
context:
space:
mode:
authorMasafumi Max NAKANE <max@FreeBSD.org>1997-09-17 04:51:47 +0000
committerMasafumi Max NAKANE <max@FreeBSD.org>1997-09-17 04:51:47 +0000
commit12da0f136383c99bfb84ec7d401fc9d5be5aaef1 (patch)
treed0a88b4850a31815ae1b491a318e227859339198 /net/tac_plus4/Makefile
parent9294836028be9f8f7d95ecb8f7699d192805f497 (diff)
downloadports-12da0f136383c99bfb84ec7d401fc9d5be5aaef1.tar.gz
ports-12da0f136383c99bfb84ec7d401fc9d5be5aaef1.zip
Notes
Diffstat (limited to 'net/tac_plus4/Makefile')
-rw-r--r--net/tac_plus4/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/net/tac_plus4/Makefile b/net/tac_plus4/Makefile
index ecb051ca9631..8031028b52f5 100644
--- a/net/tac_plus4/Makefile
+++ b/net/tac_plus4/Makefile
@@ -17,18 +17,23 @@ MAINTAINER= igor@zynaps.ru
EXTRACT_BEFORE_ARGS= -C ${WRKDIR} -xf
ALL_TARGET= tac_plus
MAN8= tac_plus.8
+EXTRA_PATCH= patch-ba
-post-patch:
- @${MV} -f ${WRKSRC}/tac_plus.1 ${WRKSRC}/tac_plus.8
+# 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
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/
+ ${INSTALL_MAN} ${WRKSRC}/tac_plus.1 ${PREFIX}/man/man8/tac_plus.8
+ ${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."; \
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; \
+ 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; \
chmod 751 ${PREFIX}/etc/rc.d/tac_plus.sh; \
fi
.if !defined(NOPORTDOCS)
@@ -36,4 +41,7 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/users_guide ${PREFIX}/share/doc/tac_plus
.endif
+pre-clean:
+ @${RM} -f ${PATCHDIR}/${EXTRA_PATCH}
+
.include <bsd.port.mk>