diff options
author | edwin <edwin@FreeBSD.org> | 2004-07-19 16:41:57 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2004-07-19 16:41:57 +0800 |
commit | d6d853f64c8b81977155b6fff3a31a7f1efa2758 (patch) | |
tree | d348151e6cae982375bded65e4ed0406aa4a64bd /sysutils | |
parent | 1207d83002494a981b9dd9595145c42e02f16f02 (diff) | |
download | freebsd-ports-gnome-d6d853f64c8b81977155b6fff3a31a7f1efa2758.tar.gz freebsd-ports-gnome-d6d853f64c8b81977155b6fff3a31a7f1efa2758.tar.zst freebsd-ports-gnome-d6d853f64c8b81977155b6fff3a31a7f1efa2758.zip |
[PATCH] sysutils/gkrellm2: Utilize EXAMPLESDIR
Utilize EXAMPLESDIR to improves layout; i.e.,
configuration file -> ${PREFIX}/etc
sample configuration file -> ${PREFIX}/share/examples/${PORTNAME}
This change helps if many configuration files and sample ones exist.
PR: ports/58386
Submitted by: Hideyuki KURASHINA <rushani@FreeBSD.org>
Approved by: maintainer timeout
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 |