diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-06-17 17:34:34 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-06-17 17:34:34 +0000 |
commit | 152af61e112afc270cc8140451a997d0e61f9dc1 (patch) | |
tree | 5169fbbf7cc7952797681d283ff7f7538c46a4d8 /sysutils/logtool | |
parent | c5c4c0d7578f20788d3a0b64bc63a2126bb6f173 (diff) | |
download | ports-152af61e112afc270cc8140451a997d0e61f9dc1.tar.gz ports-152af61e112afc270cc8140451a997d0e61f9dc1.zip |
Notes
Diffstat (limited to 'sysutils/logtool')
-rw-r--r-- | sysutils/logtool/Makefile | 5 | ||||
-rw-r--r-- | sysutils/logtool/pkg-plist | 22 |
2 files changed, 21 insertions, 6 deletions
diff --git a/sysutils/logtool/Makefile b/sysutils/logtool/Makefile index 9203c20e3885..483b6404dac0 100644 --- a/sysutils/logtool/Makefile +++ b/sysutils/logtool/Makefile @@ -27,6 +27,11 @@ post-patch: post-install: ${INSTALL_MAN} ${WRKSRC}/doc/logtool.1 ${PREFIX}/man/man1 + @${CP} ${WRKSRC}/conf/logtool.conf ${PREFIX}/etc/logtool/logtool.conf.dist + @${CP} ${WRKSRC}/conf/exclude ${PREFIX}/etc/logtool/exclude.dist + @${CP} ${WRKSRC}/conf/green ${PREFIX}/etc/logtool/green.dist + @${CP} ${WRKSRC}/conf/include ${PREFIX}/etc/logtool/include.dist + @${CP} ${WRKSRC}/conf/yellow ${PREFIX}/etc/logtool/yellow.dist .if !defined(NOPORTDOCS) @${ECHO_MSG} "===> Installing logtool docs in ${PREFIX}/share/doc/logtool" @${MKDIR} ${PREFIX}/share/doc/logtool && ${CHMOD} a+rx ${PREFIX}/share/doc/logtool diff --git a/sysutils/logtool/pkg-plist b/sysutils/logtool/pkg-plist index 3d13413c6013..cbeb840d8745 100644 --- a/sysutils/logtool/pkg-plist +++ b/sysutils/logtool/pkg-plist @@ -1,11 +1,21 @@ bin/logtool bin/logtail -etc/logtool/exclude -etc/logtool/green -etc/logtool/include -etc/logtool/logtool.conf -etc/logtool/yellow -@dirrm etc/logtool +@unexec if cmp -s %D/etc/logtool/exclude %D/etc/logtool/exclude.dist; then rm -f %D/etc/logtool/exclude; fi +etc/logtool/exclude.dist +@exec [ -f %B/exclude ] || cp %B/%f %B/exclude +@unexec if cmp -s %D/etc/logtool/green %D/etc/logtool/green.dist; then rm -f %D/etc/logtool/green; fi +etc/logtool/green.dist +@exec [ -f %B/green ] || cp %B/%f %B/green +@unexec if cmp -s %D/etc/logtool/include %D/etc/logtool/include.dist; then rm -f %D/etc/logtool/include; fi +etc/logtool/include.dist +@exec [ -f %B/include ] || cp %B/%f %B/include +@unexec if cmp -s %D/etc/logtool/logtool.conf %D/etc/logtool/logtool.conf.dist; then rm -f %D/etc/logtool/logtool.conf; fi +etc/logtool/logtool.conf.dist +@exec [ -f %B/logtool.conf ] || cp %B/%f %B/logtool.conf +@unexec if cmp -s %D/etc/logtool/yellow %D/etc/logtool/yellow.dist; then rm -f %D/etc/logtool/yellow; fi +etc/logtool/yellow.dist +@exec [ -f %B/yellow ] || cp %B/%f %B/yellow +@unexec rmdir %D/etc/logtool 2>/dev/null || true %%PORTDOCS%%share/doc/logtool/examples/README %%PORTDOCS%%share/doc/logtool/examples/cronjob.genwebpage.sh %%PORTDOCS%%share/doc/logtool/examples/cronjob.emailreport.sh |