mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
- Do not overwrite the existing config files when installing as a port or
as a package - Bump PORTREVISION Reported by: Forrest Aldrich <forrie@forrie.com> PR: 50915 Submitted by: Sergei Kolobov <sergei@kolobov.com>
This commit is contained in:
parent
0f0e1b56fd
commit
bfd39978e5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78963
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= logcheck
|
||||
PORTVERSION= 1.1.1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= ftp://sensimilia.eu.org/pub/software/sys/ \
|
||||
http://www.ukc.mirror.ac.uk/sites/ftp.freebsd.org/pub/FreeBSD/ports/distfiles/ \
|
||||
@ -42,14 +42,16 @@ do-build:
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/logtail ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/systems/freebsd/logcheck.sh ${PREFIX}/etc
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
cd ${WRKSRC}/systems/freebsd && \
|
||||
${INSTALL_DATA} ${CONFIG_FILES} ${EXAMPLESDIR} && \
|
||||
${INSTALL_DATA} ${CONFIG_FILES} ${PREFIX}/etc
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
.for file in ${CONFIG_FILES}
|
||||
@${INSTALL_DATA} ${WRKSRC}/systems/freebsd/${file} ${EXAMPLESDIR}
|
||||
@${TEST} -f ${PREFIX}/etc/${file} || \
|
||||
${INSTALL_DATA} ${WRKSRC}/systems/freebsd/${file} ${PREFIX}/etc
|
||||
.endfor
|
||||
${TEST} -d ${LOGCHECK_TMP} || ${MKDIR} -m 700 ${LOGCHECK_TMP}
|
||||
${CHOWN} root:wheel ${LOGCHECK_TMP}
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
|
@ -1,13 +1,13 @@
|
||||
bin/logtail
|
||||
etc/logcheck.sh
|
||||
etc/logcheck.hacking
|
||||
etc/logcheck.ignore
|
||||
etc/logcheck.violations
|
||||
etc/logcheck.violations.ignore
|
||||
%%EXAMPLESDIR%%/logcheck.hacking
|
||||
@exec test -f %D/etc/%f || cp %D/%f %D/etc
|
||||
%%EXAMPLESDIR%%/logcheck.ignore
|
||||
@exec test -f %D/etc/%f || cp %D/%f %D/etc
|
||||
%%EXAMPLESDIR%%/logcheck.violations.ignore
|
||||
@exec test -f %D/etc/%f || cp %D/%f %D/etc
|
||||
%%EXAMPLESDIR%%/logcheck.violations
|
||||
@exec test -f %D/etc/%f || cp %D/%f %D/etc
|
||||
@dirrm %%EXAMPLESDIR%%
|
||||
%%PORTDOCS%%%%DOCSDIR%%/CREDITS
|
||||
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
|
||||
|
Loading…
Reference in New Issue
Block a user