summaryrefslogtreecommitdiffstats
path: root/www/udmsearch
diff options
context:
space:
mode:
authorfoxfair <foxfair@FreeBSD.org>2003-10-30 14:37:30 +0000
committerfoxfair <foxfair@FreeBSD.org>2003-10-30 14:37:30 +0000
commitab383d51895f0dda4aa2ca0ccda4457b5a11002b (patch)
tree076dcf6a1986987f60061dc34f2438bcf98fce01 /www/udmsearch
parent2bcbbce6d74162ac7604ef07830f651aedbf2d14 (diff)
downloadFreeBSD-ports-ab383d51895f0dda4aa2ca0ccda4457b5a11002b.zip
FreeBSD-ports-ab383d51895f0dda4aa2ca0ccda4457b5a11002b.tar.gz
PR: 57927
Submitted by: Cheng-Lung Sung <clsung@dragon2.net> Unbreak www/udmsearch.
Diffstat (limited to 'www/udmsearch')
-rw-r--r--www/udmsearch/Makefile4
-rw-r--r--www/udmsearch/files/patch-sql.c12
2 files changed, 13 insertions, 3 deletions
diff --git a/www/udmsearch/Makefile b/www/udmsearch/Makefile
index 78d3861..2f1f092 100644
--- a/www/udmsearch/Makefile
+++ b/www/udmsearch/Makefile
@@ -7,7 +7,7 @@
PORTNAME= udmsearch
PORTVERSION= 3.0.23
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www databases
MASTER_SITES= http://search.mnogo.ru/Download/ \
http://udmsearch.real-time.com/Download/ \
@@ -16,8 +16,6 @@ MASTER_SITES= http://search.mnogo.ru/Download/ \
MAINTAINER= ports@FreeBSD.org
COMMENT= Full featured SQL-based hypertext search engine
-BROKEN= Does not build
-
MAN1= indexer.1
MAN5= indexer.conf.5
diff --git a/www/udmsearch/files/patch-sql.c b/www/udmsearch/files/patch-sql.c
new file mode 100644
index 0000000..453bd67
--- /dev/null
+++ b/www/udmsearch/files/patch-sql.c
@@ -0,0 +1,12 @@
+--- src/sql.c.orig Tue Sep 19 17:14:21 2000
++++ src/sql.c Mon Oct 13 09:59:28 2003
+@@ -204,7 +204,8 @@
+ #define unlock_url(db) sql_query(db,"UNLOCK TABLES")
+
+ static int InitDB(DB*db){
+- if (!(mysql_connect(&(db->mysql),DBHost,DBUser,DBPass))){
++ mysql_init(&(db->mysql));
++ if (!(mysql_real_connect(&(db->mysql),DBHost,DBUser,DBPass,DB_DEFAULT,0,NULL,0))){
+ db->errcode=1;
+ return(1);
+ }
OpenPOWER on IntegriCloud