- Change MASTER_SITES: the project finally found a new home

(thanks Paulius Bulotas for reporting)
- Avoid ever touching existing configs by installing example files
  with .sample suffix into ${PREFIX}/etc; do not install duplicates
  in ${EXAMPLESDIR}
- Removed unneeded @cwd in pkg-plist
- Bump PORTREVISION due to changed package

PR:		55971
Submitted by:	Sergei Kolobov <sergei@kolobov.com>
This commit is contained in:
Yen-Ming Lee 2003-08-26 00:15:32 +00:00
parent 9a345016ba
commit eb84bb0770
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=87703
3 changed files with 13 additions and 24 deletions

View file

@ -7,20 +7,16 @@
PORTNAME= logcheck PORTNAME= logcheck
PORTVERSION= 1.1.1 PORTVERSION= 1.1.1
PORTREVISION= 2 PORTREVISION= 3
CATEGORIES= security CATEGORIES= security
MASTER_SITES= ftp://sensimilia.eu.org/pub/software/sys/ \ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
http://www.ukc.mirror.ac.uk/sites/ftp.freebsd.org/pub/FreeBSD/ports/distfiles/ \ MASTER_SITE_SUBDIR= sentrytools
http://people.FreeBSD.org/~foxfair/distfiles/
DISTNAME= logsentry-${PORTVERSION}
MAINTAINER= sergei@kolobov.com MAINTAINER= sergei@kolobov.com
COMMENT= Auditing tool for system logs on Unix boxes COMMENT= Auditing tool for system logs on Unix boxes
USE_REINPLACE= yes USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
# Install binaries and config files readable to root only # Install binaries and config files readable to root only
BINMODE= 700 BINMODE= 700
SHAREMODE= 600 SHAREMODE= 600
@ -43,10 +39,8 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/logtail ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/src/logtail ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/systems/freebsd/logcheck.sh ${PREFIX}/etc ${INSTALL_SCRIPT} ${WRKSRC}/systems/freebsd/logcheck.sh ${PREFIX}/etc
@${MKDIR} ${EXAMPLESDIR} @${MKDIR} ${EXAMPLESDIR}
.for file in ${CONFIG_FILES} .for f in ${CONFIG_FILES}
@${INSTALL_DATA} ${WRKSRC}/systems/freebsd/${file} ${EXAMPLESDIR} @${INSTALL_DATA} ${WRKSRC}/systems/freebsd/${f} ${PREFIX}/etc/${f}.sample
@${TEST} -f ${PREFIX}/etc/${file} || \
${INSTALL_DATA} ${WRKSRC}/systems/freebsd/${file} ${PREFIX}/etc
.endfor .endfor
${TEST} -d ${LOGCHECK_TMP} || ${MKDIR} -m 700 ${LOGCHECK_TMP} ${TEST} -d ${LOGCHECK_TMP} || ${MKDIR} -m 700 ${LOGCHECK_TMP}
${CHOWN} root:wheel ${LOGCHECK_TMP} ${CHOWN} root:wheel ${LOGCHECK_TMP}

View file

@ -1 +1 @@
MD5 (logsentry-1.1.1.tar.gz) = e97c2f096e219e20310c1b80e9e1bc29 MD5 (logcheck-1.1.1.tar.gz) = e97c2f096e219e20310c1b80e9e1bc29

View file

@ -1,20 +1,15 @@
@comment $FreeBSD$
bin/logtail bin/logtail
@exec test -d %%LOGCHECK_TMP%% || mkdir -m 700 %%LOGCHECK_TMP%% && chown root:wheel %%LOGCHECK_TMP%%
@unexec rmdir %%LOGCHECK_TMP%% 2>/dev/null || true
etc/logcheck.hacking.sample
etc/logcheck.ignore.sample
etc/logcheck.sh etc/logcheck.sh
%%EXAMPLESDIR%%/logcheck.hacking etc/logcheck.violations.ignore.sample
@exec test -f %D/etc/%f || cp %D/%f %D/etc etc/logcheck.violations.sample
%%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%%/CREDITS
%%PORTDOCS%%%%DOCSDIR%%/INSTALL %%PORTDOCS%%%%DOCSDIR%%/INSTALL
%%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/README.how.to.interpret %%PORTDOCS%%%%DOCSDIR%%/README.how.to.interpret
%%PORTDOCS%%%%DOCSDIR%%/README.keywords %%PORTDOCS%%%%DOCSDIR%%/README.keywords
%%PORTDOCS%%@dirrm %%DOCSDIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%%
@cwd /
@exec test -d %%LOGCHECK_TMP%% || mkdir -m 700 %%LOGCHECK_TMP%% && chown root:wheel %%LOGCHECK_TMP%%
@unexec rmdir %%LOGCHECK_TMP%% 2>/dev/null || true