Add option to log user history to syslog.

PR:		155780
Submitted by:	Alexander Kriventsov <avk@vl.ru>
This commit is contained in:
David E. O'Brien 2011-04-06 17:47:52 +00:00
parent 42d6517384
commit bf7ad139d5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=272309
2 changed files with 7 additions and 1 deletions

View file

@ -104,6 +104,11 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
post-patch:
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/doc/bash.1
.if defined(WITH_SYSLOG)
@${REINPLACE_CMD} \
-e "s|/\*.*#define SYSLOG_HISTORY .*\*/|#define SYSLOG_HISTORY|g" \
${WRKSRC}/config-top.h
.endif
.if defined(WITHOUT_NLS)
@${REINPLACE_CMD} -e "s|@LIBICONV@||g" ${WRKSRC}/Makefile.in
.endif

View file

@ -3,4 +3,5 @@ OPTIONS= IMPLICITCD "Use directory name alone to cd into it" on \
HELP "Install the help files" on \
INST_READL "Use readline from base, otherwise bash's" on \
NLS "National Language Support" on \
STATIC_BASH "Compile without shared libs" off
STATIC_BASH "Compile without shared libs" off \
SYSLOG "Compile with syslog support" off