2001-08-11 20:37:02 +02:00
|
|
|
# New ports collection makefile for: mnogosearch
|
2001-01-29 11:45:06 +01:00
|
|
|
# Date created: 27.01.2001
|
|
|
|
# Whom: ache
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-02-05 16:33:58 +01:00
|
|
|
PORTNAME= mnogosearch
|
2002-07-02 06:44:35 +02:00
|
|
|
PORTVERSION= 3.1.20
|
2002-07-09 10:30:31 +02:00
|
|
|
PORTREVISION= 1
|
2001-01-29 11:45:06 +01:00
|
|
|
CATEGORIES= www databases
|
2002-05-15 10:52:48 +02:00
|
|
|
MASTER_SITES= http://www.mnogosearch.org/Download/
|
2001-01-29 11:45:06 +01:00
|
|
|
|
2001-02-05 16:33:58 +01:00
|
|
|
MAINTAINER= ache@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Full featured SQL-based hypertext search engine
|
2001-01-29 11:45:06 +01:00
|
|
|
|
|
|
|
MAN1= indexer.1
|
|
|
|
MAN5= indexer.conf.5
|
|
|
|
|
2002-05-15 10:52:48 +02:00
|
|
|
USE_LIBTOOL= yes
|
2001-01-29 11:45:06 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
USE_GMAKE= yes
|
2001-02-20 18:55:27 +01:00
|
|
|
CONFIGURE_ARGS= --enable-phrase \
|
|
|
|
--enable-shared \
|
2001-01-31 16:58:02 +01:00
|
|
|
--enable-freebsd-pthreads \
|
2001-01-29 11:45:06 +01:00
|
|
|
--sysconfdir=${PREFIX}/etc/mnogosearch \
|
|
|
|
--localstatedir=/var/mnogosearch
|
|
|
|
|
2001-10-21 19:49:27 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/etc/apache/httpd.conf:${PORTSDIR}/www/apache13
|
|
|
|
|
2001-06-09 22:17:10 +02:00
|
|
|
.ifndef NO_OPENSSL
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.ifdef USE_OPENSSL
|
|
|
|
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
|
|
|
|
.endif
|
|
|
|
|
2001-01-30 00:31:17 +01:00
|
|
|
# To enable Cyrillic charset guesser, define this
|
|
|
|
# Guesser mode ignores charsets comes from HTTP header or <META> tag
|
2001-01-29 16:22:24 +01:00
|
|
|
.if defined(WITH_MNOGO_GUESSER)
|
|
|
|
CONFIGURE_ARGS+= --enable-charset-guesser
|
|
|
|
.endif
|
|
|
|
|
2001-01-29 11:45:06 +01:00
|
|
|
.if defined(WITH_MNOGO_PGSQL)
|
2003-01-04 16:53:39 +01:00
|
|
|
POSTGRESQL_PORT?= databases/postgresql7
|
|
|
|
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
2002-03-06 15:50:16 +01:00
|
|
|
CONFIGURE_ARGS+= --with-pgsql=${LOCALBASE}
|
2001-01-29 11:45:06 +01:00
|
|
|
|
|
|
|
.elif defined(WITH_MNOGO_MSQL)
|
|
|
|
LIB_DEPENDS= msql.1:${PORTSDIR}/databases/msql
|
|
|
|
CONFIGURE_ARGS+= --with-msql=${LOCALBASE}
|
|
|
|
|
2001-01-30 00:28:50 +01:00
|
|
|
.elif defined(WITH_MNOGO_MYSQL)
|
2003-06-17 13:33:19 +02:00
|
|
|
LIB_DEPENDS= mysqlclient:${PORTSDIR}/databases/mysql323-client
|
2001-01-29 11:45:06 +01:00
|
|
|
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
|
|
|
|
|
2001-01-30 00:28:50 +01:00
|
|
|
.else
|
2001-02-20 18:55:27 +01:00
|
|
|
CONFIGURE_ARGS+= --with-built-in
|
|
|
|
|
2001-01-29 11:45:06 +01:00
|
|
|
pre-fetch:
|
|
|
|
@${ECHO}
|
2001-01-30 00:28:50 +01:00
|
|
|
@${ECHO} "Defaulting to mnoGoSearch with built-in database."
|
2001-01-29 11:45:06 +01:00
|
|
|
@${ECHO}
|
2001-01-30 00:28:50 +01:00
|
|
|
@${ECHO} "You may alternately build mnoGoSearch with either msql, mysql or"
|
|
|
|
@${ECHO} "postgresql support by invoking make with WITH_MNOGO_MSQL=yes,"
|
|
|
|
@${ECHO} "WITH_MNOGO_MYSQL=yes or WITH_MNOGO_PGSQL=yes respectively."
|
2001-01-29 11:45:06 +01:00
|
|
|
@${ECHO}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${MKDIR} ${PREFIX}/share/mnogosearch
|
|
|
|
|
|
|
|
post-install:
|
2001-03-11 03:29:53 +01:00
|
|
|
cd ${WRKSRC} && ${TAR} --create --file - --exclude CVS create | (cd ${PREFIX}/share/mnogosearch && ${TAR} xf -)
|
2001-01-30 13:10:49 +01:00
|
|
|
${CHMOD} 700 /var/mnogosearch/cache
|
2001-10-21 19:49:27 +02:00
|
|
|
${CHOWN} -R www:www /var/mnogosearch/
|
2001-01-29 11:45:06 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/mnogosearch
|
2001-04-15 10:40:22 +02:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/spelld.sh-dist ${PREFIX}/etc/rc.d/
|
2001-01-29 11:45:06 +01:00
|
|
|
@${ECHO}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|