2001-01-29 10:45:06 +00:00
|
|
|
# New ports collection makefile for: mnoGoSearch-current
|
|
|
|
# Date created: 27.01.2001
|
|
|
|
# Whom: ache
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2001-02-05 15:33:58 +00:00
|
|
|
PORTNAME= mnogosearch
|
2001-02-13 22:34:47 +00:00
|
|
|
PORTVERSION= 3.1.10
|
2001-01-29 10:45:06 +00:00
|
|
|
CATEGORIES= www databases
|
2001-02-05 15:33:58 +00:00
|
|
|
MASTER_SITES= http://search.mnogo.ru/Download/
|
2001-01-29 10:45:06 +00:00
|
|
|
|
2001-02-05 15:33:58 +00:00
|
|
|
MAINTAINER= ache@FreeBSD.org
|
2001-01-29 10:45:06 +00:00
|
|
|
|
|
|
|
MAN1= indexer.1
|
|
|
|
MAN5= indexer.conf.5
|
|
|
|
|
|
|
|
NO_LATEST_LINK= yes
|
|
|
|
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --enable-shared \
|
2001-01-31 15:58:02 +00:00
|
|
|
--enable-freebsd-pthreads \
|
2001-01-29 10:45:06 +00:00
|
|
|
--sysconfdir=${PREFIX}/etc/mnogosearch \
|
|
|
|
--localstatedir=/var/mnogosearch
|
|
|
|
|
2001-01-29 23:31:17 +00:00
|
|
|
# To enable Cyrillic charset guesser, define this
|
|
|
|
# Guesser mode ignores charsets comes from HTTP header or <META> tag
|
2001-01-29 15:22:24 +00:00
|
|
|
.if defined(WITH_MNOGO_GUESSER)
|
|
|
|
CONFIGURE_ARGS+= --enable-charset-guesser
|
|
|
|
.endif
|
|
|
|
|
2001-01-29 10:45:06 +00:00
|
|
|
.if defined(WITH_MNOGO_PGSQL)
|
|
|
|
LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql7
|
|
|
|
CONFIGURE_ARGS+= --with-pgsql=${LOCALBASE}/pgsql
|
|
|
|
|
|
|
|
.elif defined(WITH_MNOGO_MSQL)
|
|
|
|
LIB_DEPENDS= msql.1:${PORTSDIR}/databases/msql
|
|
|
|
CONFIGURE_ARGS+= --with-msql=${LOCALBASE}
|
|
|
|
|
2001-01-29 23:28:50 +00:00
|
|
|
.elif defined(WITH_MNOGO_MYSQL)
|
2001-01-29 10:45:06 +00:00
|
|
|
LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
|
|
|
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
|
|
|
|
|
2001-01-29 23:28:50 +00:00
|
|
|
.else
|
2001-01-29 10:45:06 +00:00
|
|
|
pre-fetch:
|
|
|
|
@${ECHO}
|
2001-01-29 23:28:50 +00:00
|
|
|
@${ECHO} "Defaulting to mnoGoSearch with built-in database."
|
2001-01-29 10:45:06 +00:00
|
|
|
@${ECHO}
|
2001-01-29 23:28:50 +00: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 10:45:06 +00:00
|
|
|
@${ECHO}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@${MKDIR} ${PREFIX}/share/mnogosearch
|
|
|
|
|
|
|
|
post-install:
|
2001-01-30 12:10:49 +00:00
|
|
|
${CP} -R ${WRKSRC}/create ${PREFIX}/share/mnogosearch
|
|
|
|
${CHMOD} 700 /var/mnogosearch/cache
|
|
|
|
${CHOWN} nobody.nogroup /var/mnogosearch/cache
|
2001-01-29 10:45:06 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/mnogosearch
|
|
|
|
@${ECHO}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|