diff options
author | edwin <edwin@FreeBSD.org> | 2004-07-19 08:41:57 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2004-07-19 08:41:57 +0000 |
commit | d6d853f64c8b81977155b6fff3a31a7f1efa2758 (patch) | |
tree | d348151e6cae982375bded65e4ed0406aa4a64bd /sysutils/gkrellm2/Makefile | |
parent | 1207d83002494a981b9dd9595145c42e02f16f02 (diff) | |
download | FreeBSD-ports-d6d853f64c8b81977155b6fff3a31a7f1efa2758.zip FreeBSD-ports-d6d853f64c8b81977155b6fff3a31a7f1efa2758.tar.gz |
[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/gkrellm2/Makefile')
-rw-r--r-- | sysutils/gkrellm2/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysutils/gkrellm2/Makefile b/sysutils/gkrellm2/Makefile index adc89eb..8cc2b7e 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) |