aboutsummaryrefslogtreecommitdiff
path: root/www/udmsearch
diff options
context:
space:
mode:
authorFoxfair Hu <foxfair@FreeBSD.org>2003-10-30 14:37:30 +0000
committerFoxfair Hu <foxfair@FreeBSD.org>2003-10-30 14:37:30 +0000
commite3885fc9a35cbc5be38509010f9bcb186b446bee (patch)
tree484c5e15110b6a4d5883bdface749de03dc05ece /www/udmsearch
parente433db1745fdfb3edd3d511bb28222064e30a44b (diff)
Notes
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 78d38613f3b6..2f1f0922db57 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 000000000000..453bd67c3585
--- /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);
+ }