diff options
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/gkrellm2/Makefile | 5 | ||||
-rw-r--r-- | sysutils/gkrellm2/pkg-plist | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sysutils/gkrellm2/Makefile b/sysutils/gkrellm2/Makefile index adc89eb6da08..8cc2b7e91b40 100644 --- a/sysutils/gkrellm2/Makefile +++ b/sysutils/gkrellm2/Makefile @@ -95,10 +95,11 @@ post-install: @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ ${FILESDIR}/gkrellmd.sh > ${PREFIX}/etc/rc.d/gkrellmd.sh @${CHMOD} ${BINMODE} ${PREFIX}/etc/rc.d/gkrellmd.sh + @${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/server/gkrellmd.conf \ - ${PREFIX}/etc/gkrellmd.conf.sample + ${EXAMPLESDIR}/gkrellmd.conf if [ ! -f ${PREFIX}/etc/gkrellmd.conf ]; then \ - ${CP} -p ${PREFIX}/etc/gkrellmd.conf.sample \ + ${CP} -p ${EXAMPLESDIR}/gkrellmd.conf \ ${PREFIX}/etc/gkrellmd.conf; \ fi .if !defined(NOPORTDOCS) diff --git a/sysutils/gkrellm2/pkg-plist b/sysutils/gkrellm2/pkg-plist index 0b592c7eb866..9d126da448a2 100644 --- a/sysutils/gkrellm2/pkg-plist +++ b/sysutils/gkrellm2/pkg-plist @@ -5,10 +5,11 @@ sbin/gkrellmd %%PORTDOCS%%share/doc/gkrellm/Themes.html %%PORTDOCS%%@dirrm share/doc/gkrellm @exec mkdir -p %D/libexec/gkrellm2/plugins-gkrellmd -@unexec if cmp -s %D/etc/gkrellmd.conf %D/etc/gkrellmd.conf.sample; then rm -f %D/etc/gkrellmd.conf; fi -etc/gkrellmd.conf.sample +@unexec if cmp -s %D/etc/gkrellmd.conf %%EXAMPLESDIR%%/gkrellmd.conf; then rm -f %D/etc/gkrellmd.conf; fi +%%EXAMPLESDIR%%/gkrellmd.conf @exec [ -f %B/gkrellmd.conf ] || cp %B/%f %B/gkrellmd.conf etc/rc.d/gkrellmd.sh +@dirrm %%EXAMPLESDIR%% @cwd %%X11BASE%% %%CLIENT%%include/gkrellm2/gkrellm.h %%CLIENT%%include/gkrellm2/gkrellm-public-proto.h |