- 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
PORTVERSION= 1.1.1
PORTREVISION= 2
PORTREVISION= 3
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/ \
http://people.FreeBSD.org/~foxfair/distfiles/
DISTNAME= logsentry-${PORTVERSION}
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sentrytools
MAINTAINER= sergei@kolobov.com
COMMENT= Auditing tool for system logs on Unix boxes
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
# Install binaries and config files readable to root only
BINMODE= 700
SHAREMODE= 600
@ -43,10 +39,8 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/logtail ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/systems/freebsd/logcheck.sh ${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
.for f in ${CONFIG_FILES}
@${INSTALL_DATA} ${WRKSRC}/systems/freebsd/${f} ${PREFIX}/etc/${f}.sample
.endfor
${TEST} -d ${LOGCHECK_TMP} || ${MKDIR} -m 700 ${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
@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
%%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%%
etc/logcheck.violations.ignore.sample
etc/logcheck.violations.sample
%%PORTDOCS%%%%DOCSDIR%%/CREDITS
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/README.how.to.interpret
%%PORTDOCS%%%%DOCSDIR%%/README.keywords
%%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