1999-10-21 19:36:34 +00:00
|
|
|
# New ports collection makefile for: udmsearch
|
1999-12-23 16:05:50 +00:00
|
|
|
# Date created: 11/29/1999
|
1999-10-21 19:36:34 +00:00
|
|
|
# Whom: Kelly Yancey <kbyanc@posi.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-10 00:07:29 +00:00
|
|
|
PORTNAME= udmsearch
|
2000-08-23 14:04:15 +00:00
|
|
|
PORTVERSION= 3.0.21
|
2000-02-23 14:00:16 +00:00
|
|
|
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
|
2000-07-13 11:56:31 +00:00
|
|
|
CONFIGURE_ARGS= --enable-charset-guesser \
|
2000-08-23 14:04:15 +00:00
|
|
|
--enable-freebsd-pthreads \
|
2000-07-13 11:56:31 +00:00
|
|
|
--sysconfdir=${PREFIX}/etc/udmsearch \
|
2000-07-27 16:03:24 +00:00
|
|
|
--localstatedir=/var/udmsearch
|
1999-10-21 19:36:34 +00:00
|
|
|
|
2000-08-26 20:14:13 +00:00
|
|
|
.if defined(WITH_PGSQL)
|
2000-07-13 11:56:31 +00:00
|
|
|
LIB_DEPENDS= pq.2:${PORTSDIR}/databases/postgresql7
|
1999-11-14 02:18:01 +00:00
|
|
|
CONFIGURE_ARGS+= --with-pgsql
|
|
|
|
|
2000-04-17 00:19:02 +00:00
|
|
|
.elif defined(WITH_MSQL)
|
1999-11-14 02:18:01 +00:00
|
|
|
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
|
|
|
|
|
2000-04-17 00:19:02 +00:00
|
|
|
.if !defined(WITH_MYSQL)
|
1999-11-14 02:18:01 +00:00
|
|
|
pre-fetch:
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "Defaulting to udmsearch with mysql support."
|
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "You may alternately build udmsearch with either msql or"
|
2000-04-17 00:19:02 +00:00
|
|
|
@${ECHO} "postgresql support by invoking make with WITH_MSQL=yes or"
|
|
|
|
@${ECHO} "WITH_POSTGRESQL=yes respectively."
|
1999-11-14 02:18:01 +00:00
|
|
|
@${ECHO}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.endif
|
1999-10-21 19:36:34 +00:00
|
|
|
|
|
|
|
pre-install:
|
2000-07-27 16:03:24 +00:00
|
|
|
@${MKDIR} ${PREFIX}/share/udmsearch
|
1999-10-21 19:36:34 +00:00
|
|
|
|
|
|
|
post-install:
|
2000-07-27 16:03:24 +00:00
|
|
|
@cp -R ${WRKSRC}/create ${PREFIX}/share/udmsearch
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/udmsearch
|
|
|
|
@strip ${PREFIX}/sbin/indexer
|
|
|
|
@strip ${PREFIX}/share/udmsearch/search.cgi
|
1999-10-21 19:36:34 +00:00
|
|
|
@${ECHO}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|