Date: Thu, 11 Nov 2004 21:33:10 +0900 (JST) From: Hideyuki KURASHINA <rushani@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: knu@FreeBSD.org Subject: ports/73817: [PATCH] japanese/rskkserv: Change server (`rskkserv') path Message-ID: <20041111.213310.45701673.rushani@FreeBSD.org> Resent-Message-ID: <200411111240.iABCeM1T067779@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 73817 >Category: ports >Synopsis: [PATCH] japanese/rskkserv: Change server (`rskkserv') path >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Nov 11 12:40:21 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Hideyuki KURASHINA >Release: FreeBSD 5.3-STABLE i386 >Organization: >Environment: System: FreeBSD ***.*******.jp 5.3-STABLE FreeBSD 5.3-STABLE #0: Sun Nov 7 16:21:11 JST 2004 hideyuki@***.*******.jp:/usr/obj/usr/src/sys/*** i386 >Description: Currently, a server (`rskkserv') will be installed into ${PREFIX}/libexec/. According to hier(7), however, libexec/ system daemons & system utilities (executed by other programs) [...] sbin/ system daemons & system utilities (executed by users) It may be possible to start rskkserv by super-server like `inetd', but we start it from ${PREFIX}/rc.d/rskkserv.sh (by root, at this moment). In this case, it is better to use ${PREFIX}/sbin as server path, I believe. >How-To-Repeat: >Fix: Apply following patch, Index: Makefile =================================================================== RCS file: /home/ncvs/ports/japanese/rskkserv/Makefile,v retrieving revision 1.21 diff -u -r1.21 Makefile --- Makefile 11 Nov 2004 07:14:44 -0000 1.21 +++ Makefile 11 Nov 2004 12:01:37 -0000 @@ -27,8 +27,7 @@ --with-dicfile="${SKKJISYO_BASE}/${SKKJISYO}" \ --with-cachedir="${SKKJISYO_BASE}" \ --with-logdir="/var/log" \ - --with-piddir="/var/run" \ - --sbindir="${PREFIX}/libexec" + --with-piddir="/var/run" MAKE_ARGS= SKKSERV=rskkserv SKKJISYO_SIZE?= L @@ -67,9 +66,9 @@ ${ECHO_CMD} "#!/bin/sh"; \ ${ECHO_CMD} "case \$$1 in"; \ ${ECHO_CMD} "start)"; \ - ${ECHO_CMD} " if [ -f ${PREFIX}/libexec/rskkserv ]; then"; \ + ${ECHO_CMD} " if [ -f ${PREFIX}/sbin/rskkserv ]; then"; \ ${ECHO_CMD} " ${ECHO_CMD} -n ' rskkserv: '"; \ - ${ECHO_CMD} " ${PREFIX}/libexec/rskkserv"; \ + ${ECHO_CMD} " ${PREFIX}/sbin/rskkserv"; \ ${ECHO_CMD} " fi"; \ ${ECHO_CMD} " ;;"; \ ${ECHO_CMD} "stop)"; \ Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/japanese/rskkserv/pkg-plist,v retrieving revision 1.8 diff -u -r1.8 pkg-plist --- pkg-plist 11 Nov 2004 07:14:44 -0000 1.8 +++ pkg-plist 11 Nov 2004 12:01:45 -0000 @@ -8,7 +8,7 @@ %%RUBY_SITELIBDIR%%/skkserv/logger.rb %%RUBY_SITELIBDIR%%/skkserv/skkdic.rb @dirrm %%RUBY_SITELIBDIR%%/skkserv -libexec/rskkserv +sbin/rskkserv @unexec rm -f %D/share/skk/SKK-JISYO.[LMS].[an] 2>/dev/null || true %%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog %%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/TODO >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041111.213310.45701673.rushani>