1999-10-21 19:36:34 +00:00
|
|
|
# New ports collection makefile for: udmsearch
|
1999-12-23 16:05:50 +00:00
|
|
|
# Version required: 2.2.1
|
|
|
|
# Date created: 11/29/1999
|
1999-10-21 19:36:34 +00:00
|
|
|
# Whom: Kelly Yancey <kbyanc@posi.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-02-23 14:00:16 +00:00
|
|
|
DISTNAME= udmsearch-2.2.1b
|
|
|
|
CATEGORIES= www databases
|
|
|
|
MASTER_SITES= http://mysearch.udm.net/Download/ \
|
|
|
|
ftp://ftp.izhcom.ru/pub/unix/UdmSearch/ \
|
|
|
|
http://mirror.kuenzler.ch/udmsearch/Download/
|
1999-10-21 19:36:34 +00:00
|
|
|
|
2000-02-23 14:00:16 +00:00
|
|
|
MAINTAINER= dima@Chg.RU
|
1999-10-21 19:36:34 +00:00
|
|
|
|
2000-02-23 14:00:16 +00:00
|
|
|
MAN1= indexer.1
|
|
|
|
MAN5= indexer.conf.5
|
1999-10-21 19:36:34 +00:00
|
|
|
|
2000-02-23 14:00:16 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --bindir=${PREFIX}/bin/udmsearch \
|
|
|
|
--sysconfdir=${PREFIX}/etc/udmsearch
|
1999-10-21 19:36:34 +00:00
|
|
|
|
1999-11-14 02:18:01 +00:00
|
|
|
.if defined(USE_POSTGRESQL)
|
|
|
|
LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql
|
|
|
|
CONFIGURE_ARGS+= --with-pgsql
|
|
|
|
|
|
|
|
.elif defined(USE_MSQL)
|
|
|
|
BUILD_DEPENDS= ${PREFIX}/lib/libmsql.a:${PORTSDIR}/databases/msql
|
|
|
|
CONFIGURE_ARGS+= --with-msql
|
|
|
|
|
|
|
|
.else
|
|
|
|
# default to mysql
|
|
|
|
|
|
|
|
LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client
|
|
|
|
CONFIGURE_ARGS+= --with-mysql
|
|
|
|
|
|
|
|
.if !defined(USE_MYSQL)
|
|
|
|
pre-fetch:
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "Defaulting to udmsearch with mysql support."
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "You may alternately build udmsearch with either msql or"
|
|
|
|
@${ECHO} "postgresql support by invoking make with USE_MSQL=yes or"
|
|
|
|
@${ECHO} "USE_POSTGRESQL=yes respectively."
|
|
|
|
@${ECHO}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif
|
1999-10-21 19:36:34 +00:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${MKDIR} ${PREFIX}/bin/udmsearch
|
|
|
|
${MKDIR} ${PREFIX}/etc/udmsearch
|
|
|
|
|
|
|
|
post-install:
|
1999-11-14 02:18:01 +00:00
|
|
|
@cp -R ${WRKSRC}/create ${PREFIX}/etc/udmsearch
|
1999-10-21 19:36:34 +00:00
|
|
|
@strip ${PREFIX}/sbin/indexer
|
|
|
|
@strip ${PREFIX}/bin/udmsearch/search.cgi
|
|
|
|
@${ECHO}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|