mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Fix the startup script.
This commit is contained in:
parent
70ea316afc
commit
2219f8b818
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39570
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= rskkserv
|
||||
PORTVERSION= 2.94.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= japanese ruby
|
||||
MASTER_SITES= http://www.unixuser.org/~ysjj/rskkserv/
|
||||
DIST_SUBDIR= ruby
|
||||
@ -51,25 +52,25 @@ post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/rskkserv.conf.sample ${PREFIX}/etc/
|
||||
@if [ ! -f ${STARTUP_SCRIPT} ]; then \
|
||||
${ECHO} "Installing ${STARTUP_SCRIPT} file."; \
|
||||
${ECHO} "#!/bin/sh" > ${STARTUP_SCRIPT}; \
|
||||
${ECHO} 'case $$1 in' >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} "start)" >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} " if [ -f ${PREFIX}/libexec/rskkserv ]; then" >> \
|
||||
${STARTUP_SCRIPT}; \
|
||||
${ECHO} " ${ECHO} -n ' rskkserv';" >> \
|
||||
${ECHO} " if [ ${SKKJISYO_BASE}/${SKKJISYO} -nt ${SKKJISYO_BASE}/${SKKJISYO}.a ]; then" >> \
|
||||
${ECHO} " ${ECHO} -n ' (updading index cache..)'; " >> \
|
||||
${ECHO} " fi; " >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} " ${PREFIX}/libexec/rskkserv" >> \
|
||||
${STARTUP_SCRIPT}; \
|
||||
${ECHO} " fi" >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} " ;;" >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} "stop)" >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} " ;;" >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} "*)" >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} ' ${ECHO} "usage: $$0 {start|stop}" 1>&2' >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} " ;;" >> ${STARTUP_SCRIPT}; \
|
||||
${ECHO} 'esac' >> ${STARTUP_SCRIPT}; \
|
||||
( \
|
||||
${ECHO} "#!/bin/sh"; \
|
||||
${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} " fi"; \
|
||||
${ECHO} " ;;"; \
|
||||
${ECHO} "stop)"; \
|
||||
${ECHO} " ;;"; \
|
||||
${ECHO} "*)"; \
|
||||
${ECHO} ' ${ECHO} "usage: $$0 {start|stop}" 1>&2'; \
|
||||
${ECHO} " ;;"; \
|
||||
${ECHO} 'esac'; \
|
||||
) > ${STARTUP_SCRIPT}; \
|
||||
${CHMOD} ${BINMODE} ${STARTUP_SCRIPT}; \
|
||||
fi
|
||||
.if !defined(NOPORTDOCS)
|
||||
|
Loading…
Reference in New Issue
Block a user