mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- install the 'wordbreaker' program
- install the example minimum configuration file - use OPTION dependent targets for DOCS, EXAMPLES - always install man pages, irrespective of the DOCS option
This commit is contained in:
parent
b57ef2ed70
commit
ad3f899419
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=415980
3 changed files with 28 additions and 31 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= sphinxsearch
|
PORTNAME= sphinxsearch
|
||||||
PORTVERSION= 2.2.10
|
PORTVERSION= 2.2.10
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= textproc databases
|
CATEGORIES= textproc databases
|
||||||
MASTER_SITES= http://sphinxsearch.com/files/ \
|
MASTER_SITES= http://sphinxsearch.com/files/ \
|
||||||
http://snowball.tartarus.org/dist/:libstemmer
|
http://snowball.tartarus.org/dist/:libstemmer
|
||||||
|
@ -24,7 +25,7 @@ LICENSE= GPLv2
|
||||||
LIB_DEPENDS= libexpat.so:textproc/expat2
|
LIB_DEPENDS= libexpat.so:textproc/expat2
|
||||||
|
|
||||||
OPTIONS_DEFINE= ICONV ID64 LIBSTEMMER MYSQL OPTIMIZED_CFLAGS PGSQL \
|
OPTIONS_DEFINE= ICONV ID64 LIBSTEMMER MYSQL OPTIMIZED_CFLAGS PGSQL \
|
||||||
RE2 SYSLOG UNIXODBC DOCS
|
RE2 SYSLOG UNIXODBC DOCS EXAMPLES
|
||||||
OPTIONS_DEFAULT=ICONV MYSQL SYSLOG
|
OPTIONS_DEFAULT=ICONV MYSQL SYSLOG
|
||||||
|
|
||||||
ICONV_CONFIGURE_WITH= iconv
|
ICONV_CONFIGURE_WITH= iconv
|
||||||
|
@ -56,7 +57,7 @@ LIBSTEMMER_DISTNAME= libstemmer_c
|
||||||
LIBSTEMMER_DISTFILES= ${LIBSTEMMER_DISTNAME}.tgz:libstemmer
|
LIBSTEMMER_DISTFILES= ${LIBSTEMMER_DISTNAME}.tgz:libstemmer
|
||||||
|
|
||||||
.if make(makesum) || defined(FETCH_ALL)
|
.if make(makesum) || defined(FETCH_ALL)
|
||||||
OPTIONS_SET_FORCE= LIBSTEMMER
|
OPTIONS_SET_FORCE= LIBSTEMMER
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
# The port will successfully compile with both PGSQL and MYSQL support
|
# The port will successfully compile with both PGSQL and MYSQL support
|
||||||
|
@ -89,8 +90,6 @@ UNIXODBC_LIB_DEPENDS= libodbc.so:databases/unixODBC
|
||||||
CONFLICTS= sphinxsearch-devel-[0-9]* dpsearch-[0-9]* rdb-[0-9]* \
|
CONFLICTS= sphinxsearch-devel-[0-9]* dpsearch-[0-9]* rdb-[0-9]* \
|
||||||
swish++-[0-9]* xaira-[0-9]*
|
swish++-[0-9]* xaira-[0-9]*
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
|
||||||
|
|
||||||
USERS?= _sphinx
|
USERS?= _sphinx
|
||||||
GROUPS?= _sphinx
|
GROUPS?= _sphinx
|
||||||
|
|
||||||
|
@ -114,18 +113,19 @@ SUB_LIST+= PORTNAME=${PORTNAME} \
|
||||||
SPHINX_LOG=${SPHINX_LOG}
|
SPHINX_LOG=${SPHINX_LOG}
|
||||||
SUB_FILES+= pkg-deinstall
|
SUB_FILES+= pkg-deinstall
|
||||||
|
|
||||||
|
BINS= indexer indextool spelldump wordbreaker
|
||||||
|
|
||||||
EXAMPLES= example.sql api
|
EXAMPLES= example.sql api
|
||||||
|
|
||||||
DOCS= doc/sphinx.css doc/sphinx.html doc/sphinx.txt doc/sphinx.xml
|
DOCS= doc/sphinx.css doc/sphinx.html doc/sphinx.txt doc/sphinx.xml \
|
||||||
|
sphinx-min.conf.dist
|
||||||
DOCSRC= ${WRKSRC}/doc
|
DOCSRC= ${WRKSRC}/doc
|
||||||
|
|
||||||
MAN1SRC= indexer.1 indextool.1 spelldump.1
|
MAN1SRC= indexer.1 indextool.1 spelldump.1
|
||||||
MAN8SRC= searchd.8
|
MAN8SRC= searchd.8
|
||||||
|
|
||||||
post-extract:
|
post-extract-LIBSTEMMER-on:
|
||||||
.if ${PORT_OPTIONS:MLIBSTEMMER}
|
|
||||||
@( cd ${WRKDIR} && ${COPYTREE_SHARE} ${LIBSTEMMER_DISTNAME} ${WRKSRC} )
|
@( cd ${WRKDIR} && ${COPYTREE_SHARE} ${LIBSTEMMER_DISTNAME} ${WRKSRC} )
|
||||||
.endif
|
|
||||||
|
|
||||||
# Fix up the sample configuration file to correspond to FreeBSD norms
|
# Fix up the sample configuration file to correspond to FreeBSD norms
|
||||||
post-patch:
|
post-patch:
|
||||||
|
@ -141,24 +141,12 @@ post-patch:
|
||||||
${DOCSRC}/${man}
|
${DOCSRC}/${man}
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
do-install: install-bin install-docs install-man install-examples
|
do-install:
|
||||||
|
.for bin in ${BINS}
|
||||||
install-bin:
|
${INSTALL_PROGRAM} ${WRKSRC}/src/${bin} ${STAGEDIR}${PREFIX}/bin/${bin}
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/src/indexer ${STAGEDIR}${PREFIX}/bin/indexer
|
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/src/indextool ${STAGEDIR}${PREFIX}/bin/indextool
|
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/src/spelldump ${STAGEDIR}${PREFIX}/bin/spelldump
|
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/src/searchd ${STAGEDIR}${PREFIX}/sbin/searchd
|
|
||||||
${INSTALL_DATA} ${WRKSRC}/sphinx.conf.dist ${STAGEDIR}${CFGFILE}.sample
|
|
||||||
|
|
||||||
install-docs:
|
|
||||||
.if ${PORT_OPTIONS:MDOCS}
|
|
||||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
||||||
.for doc in ${DOCS}
|
|
||||||
${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
|
|
||||||
.endfor
|
.endfor
|
||||||
.endif
|
${INSTALL_PROGRAM} ${WRKSRC}/src/searchd ${STAGEDIR}${PREFIX}/sbin/searchd
|
||||||
|
${INSTALL_DATA} ${WRKSRC}/sphinx.conf.dist ${STAGEDIR}${CFGFILE}.sample
|
||||||
install-man:
|
|
||||||
.for man in ${MAN1SRC}
|
.for man in ${MAN1SRC}
|
||||||
${INSTALL_MAN} ${DOCSRC}/${man} ${STAGEDIR}${MANPREFIX}/man/man1/${man}
|
${INSTALL_MAN} ${DOCSRC}/${man} ${STAGEDIR}${MANPREFIX}/man/man1/${man}
|
||||||
.endfor
|
.endfor
|
||||||
|
@ -166,7 +154,13 @@ install-man:
|
||||||
${INSTALL_MAN} ${DOCSRC}/${man} ${STAGEDIR}${MANPREFIX}/man/man8/${man}
|
${INSTALL_MAN} ${DOCSRC}/${man} ${STAGEDIR}${MANPREFIX}/man/man8/${man}
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
install-examples:
|
do-install-DOCS-on:
|
||||||
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
|
.for doc in ${DOCS}
|
||||||
|
${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
|
||||||
|
.endfor
|
||||||
|
|
||||||
|
do-install-EXAMPLES-on:
|
||||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||||
.for example in ${EXAMPLES}
|
.for example in ${EXAMPLES}
|
||||||
@cd ${WRKSRC} && ${COPYTREE_SHARE} ${example} ${STAGEDIR}${EXAMPLESDIR}
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} ${example} ${STAGEDIR}${EXAMPLESDIR}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
TIMESTAMP = 1464425151
|
||||||
SHA256 (sphinx-2.2.10-release.tar.gz) = 054cb86e64bd48997d89386e1224d4405063d9857b2d7c33dc6cc1b9ef6df440
|
SHA256 (sphinx-2.2.10-release.tar.gz) = 054cb86e64bd48997d89386e1224d4405063d9857b2d7c33dc6cc1b9ef6df440
|
||||||
SIZE (sphinx-2.2.10-release.tar.gz) = 3109250
|
SIZE (sphinx-2.2.10-release.tar.gz) = 3109250
|
||||||
SHA256 (libstemmer_c.tgz) = 6530c3638f29f5b03bc3786bb9212e39adaf3bf15b5b0a483b2eb5111f7f416e
|
SHA256 (libstemmer_c.tgz) = 6530c3638f29f5b03bc3786bb9212e39adaf3bf15b5b0a483b2eb5111f7f416e
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
bin/indexer
|
bin/indexer
|
||||||
bin/indextool
|
bin/indextool
|
||||||
bin/spelldump
|
bin/spelldump
|
||||||
sbin/searchd
|
bin/wordbreaker
|
||||||
@sample etc/sphinx.conf.sample
|
@sample etc/sphinx.conf.sample
|
||||||
%%PORTDOCS%%man/man1/indexer.1.gz
|
man/man1/indexer.1.gz
|
||||||
%%PORTDOCS%%man/man1/indextool.1.gz
|
man/man1/indextool.1.gz
|
||||||
%%PORTDOCS%%man/man1/spelldump.1.gz
|
man/man1/spelldump.1.gz
|
||||||
%%PORTDOCS%%man/man8/searchd.8.gz
|
man/man8/searchd.8.gz
|
||||||
|
sbin/searchd
|
||||||
|
%%PORTDOCS%%%%DOCSDIR%%/sphinx-min.conf.dist
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/sphinx.css
|
%%PORTDOCS%%%%DOCSDIR%%/sphinx.css
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/sphinx.html
|
%%PORTDOCS%%%%DOCSDIR%%/sphinx.html
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/sphinx.txt
|
%%PORTDOCS%%%%DOCSDIR%%/sphinx.txt
|
||||||
|
|
Loading…
Add table
Reference in a new issue