mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
Add some missing content to the package:
-install indextool -install man pages Submitted by: David@ibendit.com
This commit is contained in:
parent
c1a9f352a6
commit
f2003b5ee6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=309660
@ -1,12 +1,13 @@
|
||||
# Created by: Matthew Seaman
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# Note: the Sphinx Storage Engine MySQL plugin is not supported by
|
||||
# this port. You need a patched version of mysql server for that.
|
||||
# See http://www.infracaninophile.co.uk/articles/sphinxse.html
|
||||
|
||||
PORTNAME= sphinxsearch
|
||||
PORTVERSION= 2.0.6
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= textproc databases
|
||||
MASTER_SITES= http://sphinxsearch.com/files/
|
||||
DISTNAME= sphinx-${PORTVERSION}-release
|
||||
@ -23,7 +24,7 @@ LICENSE= GPLv2
|
||||
LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2
|
||||
|
||||
OPTIONS_DEFINE= ICONV ID64 LIBSTEMMER MYSQL OPTIMIZED_CFLAGS PGSQL \
|
||||
SYSLOG UNIXODBC
|
||||
SYSLOG UNIXODBC
|
||||
|
||||
#ICONV_DESC= Iconv support
|
||||
ID64_DESC= use 64-bit document and word IDs
|
||||
@ -36,7 +37,7 @@ UNIXODBC_DESC= unixODBC support
|
||||
|
||||
OPTIONS_DEFAULT= ICONV MYSQL SYSLOG
|
||||
|
||||
CONFLICTS= sphinxsearch-devel-[0-9]* dpsearch-[0-9]* rdb-2.6d \
|
||||
CONFLICTS= sphinxsearch-devel-[0-9]* dpsearch-[0-9]* rdb-[0-9]* \
|
||||
swish++-[0-9]* xaira-[0-9]*
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
@ -150,6 +151,9 @@ PORTEXAMPLES= *
|
||||
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
DOCS= doc/sphinx.css doc/sphinx.html doc/sphinx.txt doc/sphinx.xml
|
||||
MAN1= indexer.1 indextool.1 search.1 spelldump.1
|
||||
MAN8= searchd.8
|
||||
DOCSRC= ${WRKSRC}/doc
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
@ -167,14 +171,22 @@ post-patch:
|
||||
-e "s!@CONFDIR@/log/searchd.log!${SPHINX_LOG}/searchd.log!" \
|
||||
-e "s!@CONFDIR@!${SPHINX_DIR}!" \
|
||||
${WRKSRC}/sphinx.conf.in
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
${SED} -e 's/"1"/"8"/' ${DOCSRC}/searchd.1 > ${DOCSRC}/searchd.8
|
||||
.for man in ${MAN1}
|
||||
${SED} -i~ -e 's/\\fBsearchd\\fR(1)/\\fBsearchd\\fR(8)/' \
|
||||
${DOCSRC}/${man}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
do-install: install-bin install-docs install-examples
|
||||
do-install: install-bin install-docs install-man install-examples
|
||||
|
||||
install-bin:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/indexer ${PREFIX}/bin/indexer
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/search ${PREFIX}/bin/search
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/indexer ${PREFIX}/bin/indexer
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/indextool ${PREFIX}/bin/indextool
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/search ${PREFIX}/bin/search
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/spelldump ${PREFIX}/bin/spelldump
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/searchd ${PREFIX}/sbin/searchd
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/src/searchd ${PREFIX}/sbin/searchd
|
||||
${INSTALL_DATA} ${WRKSRC}/sphinx.conf.dist ${CFGFILE}.sample
|
||||
|
||||
install-docs:
|
||||
@ -185,6 +197,16 @@ install-docs:
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
install-man:
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
.for man in ${MAN1}
|
||||
${INSTALL_MAN} ${DOCSRC}/${man} ${MANPREFIX}/man/man1/${man}
|
||||
.endfor
|
||||
.for man in ${MAN8}
|
||||
${INSTALL_MAN} ${DOCSRC}/${man} ${MANPREFIX}/man/man8/${man}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
install-examples:
|
||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
|
@ -1,4 +1,5 @@
|
||||
bin/indexer
|
||||
bin/indextool
|
||||
bin/search
|
||||
bin/spelldump
|
||||
sbin/searchd
|
||||
|
Loading…
Reference in New Issue
Block a user