From 378087f007b44f0ce46011285c749852c473247f Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Mon, 29 Jan 2001 10:45:06 +0000 Subject: Re-import under different name to minimize confusion and left "mnoGoSearch" name for udmsearch. --- www/mnogosearch/Makefile | 66 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 www/mnogosearch/Makefile (limited to 'www/mnogosearch/Makefile') diff --git a/www/mnogosearch/Makefile b/www/mnogosearch/Makefile new file mode 100644 index 000000000000..096310588ece --- /dev/null +++ b/www/mnogosearch/Makefile @@ -0,0 +1,66 @@ +# New ports collection makefile for: mnoGoSearch-current +# Date created: 27.01.2001 +# Whom: ache +# +# $FreeBSD$ +# + +PORTNAME= mnogosearch +PORTVERSION= 3.1.9 +CATEGORIES= www databases +MASTER_SITES= http://search.mnogo.ru/Download/ + +MAINTAINER= ache@FreeBSD.org + +MAN1= indexer.1 +MAN5= indexer.conf.5 + +NO_LATEST_LINK= yes + +INSTALLS_SHLIB= yes +USE_GMAKE= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --enable-shared \ + --enable-charset-guesser \ + --sysconfdir=${PREFIX}/etc/mnogosearch \ + --localstatedir=/var/mnogosearch + +.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} + +.else +# default to mysql + +LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client +CONFIGURE_ARGS+= --with-mysql=${LOCALBASE} + +.if !defined(WITH_MNOGO_MYSQL) +pre-fetch: + @${ECHO} + @${ECHO} "Defaulting to mnoGoSearch with mysql support." + @${ECHO} + @${ECHO} "You may alternately build mnoGoSearch with either msql or" + @${ECHO} "postgresql support by invoking make with WITH_MNOGO_MSQL=yes or" + @${ECHO} "WITH_MNOGO_PGSQL=yes respectively." + @${ECHO} +.endif + +.endif + +pre-install: + @${MKDIR} ${PREFIX}/share/mnogosearch + +post-install: + cp -R ${WRKSRC}/create ${PREFIX}/share/mnogosearch + /bin/chmod 700 /var/mnogosearch/cache + /usr/sbin/chown nobody.nogroup /var/mnogosearch/cache + ${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/mnogosearch + @${ECHO} + @${CAT} ${PKGMESSAGE} + +.include -- cgit v1.2.3