mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
better etc file management
Submitted by: olgeni
This commit is contained in:
parent
c5c4c0d757
commit
152af61e11
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=44114
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user