aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2004-11-11 15:14:44 +0800
committerknu <knu@FreeBSD.org>2004-11-11 15:14:44 +0800
commite9103275bf6323332a24bd62aef98a3bcc9ca530 (patch)
tree7057d2defb5b7a9ba6d1d482c6f5070fdd02f305 /japanese
parent922c0d053773dcb85dc72537491cae2bcbefa87a (diff)
downloadfreebsd-ports-gnome-e9103275bf6323332a24bd62aef98a3bcc9ca530.tar.gz
freebsd-ports-gnome-e9103275bf6323332a24bd62aef98a3bcc9ca530.tar.zst
freebsd-ports-gnome-e9103275bf6323332a24bd62aef98a3bcc9ca530.zip
Do not overrite or remove rskkserv.conf.
PR: ports/73550 Submitted by: rushani
Diffstat (limited to 'japanese')
-rw-r--r--japanese/rskkserv/Makefile3
-rw-r--r--japanese/rskkserv/pkg-plist6
2 files changed, 6 insertions, 3 deletions
diff --git a/japanese/rskkserv/Makefile b/japanese/rskkserv/Makefile
index fbd51ae23795..ece35890741b 100644
--- a/japanese/rskkserv/Makefile
+++ b/japanese/rskkserv/Makefile
@@ -61,7 +61,6 @@ post-patch:
${WRKSRC}/doc/conf-o2n.rb
post-install:
- ${INSTALL_DATA} ${WRKSRC}/doc/rskkserv.conf.sample ${PREFIX}/etc/
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
${ECHO} "Installing ${STARTUP_SCRIPT} file."; \
( \
@@ -102,5 +101,7 @@ post-install:
.endif
${MKDIR} ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/doc/conf-o2n.rb ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/rskkserv.conf ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/rskkserv.conf.sample ${EXAMPLESDIR}
.include <bsd.port.mk>
diff --git a/japanese/rskkserv/pkg-plist b/japanese/rskkserv/pkg-plist
index 3681b00ab6ac..86ae29092eea 100644
--- a/japanese/rskkserv/pkg-plist
+++ b/japanese/rskkserv/pkg-plist
@@ -1,6 +1,5 @@
etc/rc.d/rskkserv.sh
-etc/rskkserv.conf
-etc/rskkserv.conf.sample
+@unexec if cmp -s %D/etc/rskkserv.conf %D/%%EXAMPLESDIR%%/rskkserv.conf; then rm -f %D/etc/rskkserv.conf; fi
%%RUBY_SITEARCHLIBDIR%%/skkserv/skkdic.so
@dirrm %%RUBY_SITEARCHLIBDIR%%/skkserv
%%RUBY_SITELIBDIR%%/skkserv/bdbdic.rb
@@ -16,4 +15,7 @@ libexec/rskkserv
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/ja
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%
%%EXAMPLESDIR%%/conf-o2n.rb
+%%EXAMPLESDIR%%/rskkserv.conf
+@exec [ -f %D/etc/rskkserv.conf ] || cp %B/%f %D/etc/rskkserv.conf
+%%EXAMPLESDIR%%/rskkserv.conf.sample
@dirrm %%EXAMPLESDIR%%