diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-06-04 07:24:48 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-06-04 07:24:48 +0000 |
commit | 61a5ff520a2230bbe3d741ee0ab66840ebf1a0a8 (patch) | |
tree | 5187478bfe68878525d88e33fe307e21cfb231fc /textproc/sphinxsearch/files | |
parent | c1fa8f8e701b4113165e8bd46c1803882e4c0912 (diff) | |
download | ports-61a5ff520a2230bbe3d741ee0ab66840ebf1a0a8.tar.gz ports-61a5ff520a2230bbe3d741ee0ab66840ebf1a0a8.zip |
Notes
Diffstat (limited to 'textproc/sphinxsearch/files')
-rw-r--r-- | textproc/sphinxsearch/files/patch-src-sphinxsearch.h | 14 | ||||
-rw-r--r-- | textproc/sphinxsearch/files/sphinxsearch.sh.in | 28 |
2 files changed, 26 insertions, 16 deletions
diff --git a/textproc/sphinxsearch/files/patch-src-sphinxsearch.h b/textproc/sphinxsearch/files/patch-src-sphinxsearch.h index b869576a62ed..b1da5d68c74f 100644 --- a/textproc/sphinxsearch/files/patch-src-sphinxsearch.h +++ b/textproc/sphinxsearch/files/patch-src-sphinxsearch.h @@ -1,11 +1,13 @@ ---- src/sphinxstd.h.orig Sun Apr 15 20:16:11 2007 -+++ src/sphinxstd.h Sun Apr 15 20:17:25 2007 -@@ -57,7 +57,7 @@ +--- src/sphinxstd.h.orig Tue May 29 19:50:47 2007 ++++ src/sphinxstd.h Tue May 29 19:52:23 2007 +@@ -57,9 +57,7 @@ #error "Internal 64-bit integer macros already defined." #endif -#if __STDC_VERSION__>=199901L || __STDC_VERSION>=199901L || defined(_STDINT_H) || defined(_STDINT_H_) -+#if __STDC_VERSION__>=199901L || __STDC_VERSION>=199901L || defined(_STDINT_H) || defined(_STDINT_H_) || defined(_SYS_STDINT_H_) - #include <stdint.h> - #else // no stdint.h +-#include <stdint.h> +-#else // no stdint.h ++#if !HAVE_STDINT_H + #if defined(_MSC_VER) + typedef __int64 int64_t; diff --git a/textproc/sphinxsearch/files/sphinxsearch.sh.in b/textproc/sphinxsearch/files/sphinxsearch.sh.in index 83c2ff67b760..5fe3887eafa5 100644 --- a/textproc/sphinxsearch/files/sphinxsearch.sh.in +++ b/textproc/sphinxsearch/files/sphinxsearch.sh.in @@ -30,21 +30,20 @@ name=%%PORTNAME%% rcvar=`set_rcvar` -%%PORTNAME%%_enable=${%%PORTNAME%%_enable-"NO"} -%%PORTNAME%%_conffile=${%%PORTNAME%%_conffile-"%%CFGFILE%%"} -%%PORTNAME%%_pidfile=${%%PORTNAME%%_pidfile-"%%SPHINX_RUN%%/searchd.pid"} -%%PORTNAME%%_user=${%%PORTNAME%%_user-"%%SPHINX_USR%%"} -%%PORTNAME%%_group=${%%PORTNAME%%_group-"%%SPHINX_GRP%%"} -%%PORTNAME%%_logdir=${%%PORTNAME%%_logdir-"%%SPHINX_LOG%%"} +load_rc_config ${name} -start_precmd="create_dirs" +: ${%%PORTNAME%%_enable="NO"} +: ${%%PORTNAME%%_conffile="%%CFGFILE%%"} +: ${%%PORTNAME%%_pidfile="%%SPHINX_RUN%%/searchd.pid"} +: ${%%PORTNAME%%_user="%%SPHINX_USR%%"} +: ${%%PORTNAME%%_group="%%SPHINX_GRP%%"} +: ${%%PORTNAME%%_logdir="%%SPHINX_LOG%%"} command=%%PREFIX%%/sbin/searchd pidfile=${%%PORTNAME%%_pidfile} required_files=${%%PORTNAME%%_conffile} -%%PORTNAME%%_flags="--config ${%%PORTNAME%%_conffile}" -create_dirs () +%%PORTNAME%%_precmd () { piddir=$(dirname ${%%PORTNAME%%_pidfile}) if [ ! -d ${piddir} ]; then @@ -58,5 +57,14 @@ create_dirs () fi } -load_rc_config ${name} +case "${%%PORTNAME%%_flags}" in + *--config\ *) + echo "Warning \$%%PORTNAME%%_flags includes --config option." \ + "Please use \$%%PORTNAME%%_conffile instead." + ;; + *) + %%PORTNAME%%_flags="--config ${%%PORTNAME%%_conffile} ${%%PORTNAME%%_flags}" + ;; +esac + run_rc_command "$1" |