diff options
author | knu <knu@FreeBSD.org> | 2001-09-12 01:07:59 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-09-12 01:07:59 +0800 |
commit | e31c3cd9c648fd2c85d35f72a3dfeb5e3af82cdc (patch) | |
tree | fa81fe1acb1cb11b752458297ad9fee749f30253 | |
parent | 8c6edd3af09ef8a5f93dd52ccfbeb1a7c8b1e400 (diff) | |
download | freebsd-ports-gnome-e31c3cd9c648fd2c85d35f72a3dfeb5e3af82cdc.tar.gz freebsd-ports-gnome-e31c3cd9c648fd2c85d35f72a3dfeb5e3af82cdc.tar.zst freebsd-ports-gnome-e31c3cd9c648fd2c85d35f72a3dfeb5e3af82cdc.zip |
Update to 2.94.12 and unbreak.
-rw-r--r-- | japanese/rskkserv/Makefile | 27 | ||||
-rw-r--r-- | japanese/rskkserv/distinfo | 2 |
2 files changed, 17 insertions, 12 deletions
diff --git a/japanese/rskkserv/Makefile b/japanese/rskkserv/Makefile index e40c9513d384..dc60d6f583f6 100644 --- a/japanese/rskkserv/Makefile +++ b/japanese/rskkserv/Makefile @@ -6,8 +6,7 @@ # PORTNAME= rskkserv -PORTVERSION= 2.94.0 -PORTREVISION= 1 +PORTVERSION= 2.94.12 CATEGORIES= japanese ruby MASTER_SITES= http://www.unixuser.org/~ysjj/rskkserv/ DIST_SUBDIR= ruby @@ -26,7 +25,9 @@ CONFIGURE_ARGS= --with-ruby="${RUBY}" \ --with-dicfile="${SKKJISYO_BASE}/${SKKJISYO}" \ --with-cachedir="${SKKJISYO_BASE}" \ --with-logdir="/var/log" \ + --with-piddir="/var/run" \ --sbindir="${PREFIX}/libexec" +MAKE_ARGS= SKKSERV=rskkserv SKKJISYO_SIZE?= L SKKJISYO_BASE= ${LOCALBASE}/share/skk @@ -34,12 +35,12 @@ SKKJISYO= SKK-JISYO.${SKKJISYO_SIZE} SKK_MASTERDIR= ${PORTSDIR}/japanese/skk-jisyo STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/rskkserv.sh -MAKE_ARGS= SKKSERV=rskkserv DOCS_EN= ChangeLog DOCS_JA= README TODO post-patch: + ${RUBY} -i -ne 'if $$. == 1 then puts "#!@RUBY@" else puts $$_ end' ${WRKSRC}/skkserv.rb.in ${RUBY} -i -p \ -e 'gsub %r:/usr/share/skk:, %q:${SKKJISYO_BASE}:' \ -e 'gsub %r:/opt/epwing/(\w+):, %q:${LOCALBASE}/share/dict/\\1-fpw:' \ @@ -54,22 +55,26 @@ post-install: ${ECHO} "Installing ${STARTUP_SCRIPT} file."; \ ( \ ${ECHO} "#!/bin/sh"; \ - ${ECHO} 'case $$1 in'; \ + ${ECHO} "case \$$1 in"; \ ${ECHO} "start)"; \ ${ECHO} " if [ -f ${PREFIX}/libexec/rskkserv ]; then"; \ - ${ECHO} " ${ECHO} -n ' rskkserv';"; \ - ${ECHO} " if [ ${SKKJISYO_BASE}/${SKKJISYO} -nt ${SKKJISYO_BASE}/${SKKJISYO}.a ]; then"; \ - ${ECHO} " ${ECHO} -n ' (updading index cache..)'; "; \ - ${ECHO} " fi; "; \ - ${ECHO} " ${PREFIX}/libexec/rskkserv"; \ + ${ECHO} " ${ECHO} -n ' rskkserv: '"; \ + ${ECHO} " ${PREFIX}/libexec/rskkserv --verbose"; \ ${ECHO} " fi"; \ ${ECHO} " ;;"; \ ${ECHO} "stop)"; \ + ${ECHO} " pidfile=/var/run/rskkserv.pid"; \ + ${ECHO} " if [ -f \$$pidfile ]; then"; \ + ${ECHO} " kill \`cat \$$pidfile\` && echo -n ' rskkserv'"; \ + ${ECHO} " ${RM} \$$pidfile"; \ + ${ECHO} " else"; \ + ${ECHO} " ${ECHO} ' rskkserv: not running'"; \ + ${ECHO} " fi"; \ ${ECHO} " ;;"; \ ${ECHO} "*)"; \ - ${ECHO} ' ${ECHO} "usage: $$0 {start|stop}" 1>&2'; \ + ${ECHO} " ${ECHO} \"usage: \$$0 {start|stop}\" 1>&2"; \ ${ECHO} " ;;"; \ - ${ECHO} 'esac'; \ + ${ECHO} "esac"; \ ) > ${STARTUP_SCRIPT}; \ ${CHMOD} ${BINMODE} ${STARTUP_SCRIPT}; \ fi diff --git a/japanese/rskkserv/distinfo b/japanese/rskkserv/distinfo index 93cdb75ee2fd..31333bf9f5b4 100644 --- a/japanese/rskkserv/distinfo +++ b/japanese/rskkserv/distinfo @@ -1 +1 @@ -MD5 (ruby/rskkserv-2.94.0.tar.gz) = ff4f73dab57d79619e7deacca3342f4c +MD5 (ruby/rskkserv-2.94.12.tar.gz) = 14b73c2e987b342aa504afffb37324e9 |