aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorade <ade@FreeBSD.org>2000-08-18 23:09:37 +0800
committerade <ade@FreeBSD.org>2000-08-18 23:09:37 +0800
commit29cff9a7cbef35452775e29a8c21d74dc9ef8743 (patch)
tree5373e793ee712305ecfc69e202cdbaaebe083ea6
parent81381eab0e7e21a81b21df76d61a0c753729201c (diff)
downloadfreebsd-ports-gnome-29cff9a7cbef35452775e29a8c21d74dc9ef8743.tar.gz
freebsd-ports-gnome-29cff9a7cbef35452775e29a8c21d74dc9ef8743.tar.zst
freebsd-ports-gnome-29cff9a7cbef35452775e29a8c21d74dc9ef8743.zip
Medusa is software that allows you to quickly search your system for
particular types of files, using an index, aimed for the GNOME environment in general, and Nautilus in particular.
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/medusa/Makefile42
-rw-r--r--sysutils/medusa/distinfo1
-rw-r--r--sysutils/medusa/files/patch-aa12
-rw-r--r--sysutils/medusa/files/patch-ab14
-rw-r--r--sysutils/medusa/files/patch-ac14
-rw-r--r--sysutils/medusa/pkg-comment1
-rw-r--r--sysutils/medusa/pkg-descr4
-rw-r--r--sysutils/medusa/pkg-plist16
9 files changed, 105 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 42f96810d2a4..5a1cfcdad219 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -55,6 +55,7 @@
SUBDIR += logrotate
SUBDIR += lsof
SUBDIR += manck
+ SUBDIR += medusa
SUBDIR += mei
SUBDIR += memtest
SUBDIR += mkisofs
diff --git a/sysutils/medusa/Makefile b/sysutils/medusa/Makefile
new file mode 100644
index 000000000000..4f340c2b310a
--- /dev/null
+++ b/sysutils/medusa/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: medusa
+# Date created: 17th August 2000
+# Whom: Ade Lovett <ade@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= medusa
+PORTVERSION= 0.2
+CATEGORIES= sysutils gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= unstable/sources/medusa
+
+MAINTAINER= ade@FreeBSD.org
+
+LIB_DEPENDS= gnome.4:${PORTSDIR}/x11/gnomelibs \
+ oaf.0:${PORTSDIR}/devel/oaf \
+ gnomevfs.0:${PORTSDIR}/devel/gnomevfs \
+ gconf-1.0:${PORTSDIR}/devel/gconf
+
+GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config
+GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
+
+USE_GMAKE= yes
+USE_X_PREFIX= yes
+USE_LIBTOOL= yes
+CONFIGURE_ARGS= --localstatedir=${PREFIX}/share/gnome \
+ --datadir=${PREFIX}/share/gnome \
+ --enable-shared --enable-static
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ GLIB_CONFIG="${GLIB_CONFIG}" \
+ GTK_CONFIG="${GTK_CONFIG}" \
+ LIBS="-L${LOCALBASE}/lib"
+
+pre-patch:
+ @${PERL} -pi -e 's|-lpthread|-pthread|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+ @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
+ 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
+ s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
+
+.include <bsd.port.mk>
diff --git a/sysutils/medusa/distinfo b/sysutils/medusa/distinfo
new file mode 100644
index 000000000000..20a3df161aac
--- /dev/null
+++ b/sysutils/medusa/distinfo
@@ -0,0 +1 @@
+MD5 (medusa-0.2.tar.gz) = 65e6fe67ebbf5e12406836a18baa1cee
diff --git a/sysutils/medusa/files/patch-aa b/sysutils/medusa/files/patch-aa
new file mode 100644
index 000000000000..56b2c43eab5b
--- /dev/null
+++ b/sysutils/medusa/files/patch-aa
@@ -0,0 +1,12 @@
+--- libmedusa-internal/medusa-io-handler.c.orig Sun Aug 6 04:10:06 2000
++++ libmedusa-internal/medusa-io-handler.c Thu Aug 17 10:27:10 2000
+@@ -208,6 +208,9 @@
+
+ /* We open the file synchronously here to make sure the header gets
+ written before returning the FILE * */
++#ifdef __FreeBSD__
++#define O_SYNC 0
++#endif
+ file_descriptor = open (file_name, O_RDWR | O_CREAT | O_SYNC, S_IRUSR | S_IWUSR);
+ write_header_to_file_descriptor (file_descriptor, magic_number, version_number, 0);
+ close (file_descriptor);
diff --git a/sysutils/medusa/files/patch-ab b/sysutils/medusa/files/patch-ab
new file mode 100644
index 000000000000..4a762825a9ef
--- /dev/null
+++ b/sysutils/medusa/files/patch-ab
@@ -0,0 +1,14 @@
+--- libmedusa-internal/medusa-rdb-query.c.orig Fri Jul 28 05:14:34 2000
++++ libmedusa-internal/medusa-rdb-query.c Thu Aug 17 10:04:48 2000
+@@ -26,7 +26,11 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
++#ifdef __FreeBSD__
++#include <gnuregex.h>
++#else
+ #include <regex.h>
++#endif
+ #include <medusa-test.h>
+
+ #include "medusa-rdb-query-private.h"
diff --git a/sysutils/medusa/files/patch-ac b/sysutils/medusa/files/patch-ac
new file mode 100644
index 000000000000..d215ec53282b
--- /dev/null
+++ b/sysutils/medusa/files/patch-ac
@@ -0,0 +1,14 @@
+--- libmedusa-internal/medusa-text-index-mime-module.c.orig Fri Jul 14 21:54:26 2000
++++ libmedusa-internal/medusa-text-index-mime-module.c Thu Aug 17 10:06:12 2000
+@@ -32,7 +32,11 @@
+ #include <glib.h>
+ #include <ctype.h>
+ #include <string.h>
++#ifdef __FreeBSD__
++#include <gnuregex.h>
++#else
+ #include <regex.h>
++#endif
+
+ struct MedusaTextIndexMimeModule {
+ /* These lists should be short */
diff --git a/sysutils/medusa/pkg-comment b/sysutils/medusa/pkg-comment
new file mode 100644
index 000000000000..fa995db9cb4e
--- /dev/null
+++ b/sysutils/medusa/pkg-comment
@@ -0,0 +1 @@
+GNOME filesystem indexer
diff --git a/sysutils/medusa/pkg-descr b/sysutils/medusa/pkg-descr
new file mode 100644
index 000000000000..39e6120276cd
--- /dev/null
+++ b/sysutils/medusa/pkg-descr
@@ -0,0 +1,4 @@
+Medusa is software that allows you to quickly search your system for
+particular types of files, using an index.
+
+WWW: http://www.gnome.org/
diff --git a/sysutils/medusa/pkg-plist b/sysutils/medusa/pkg-plist
new file mode 100644
index 000000000000..8949744d78c0
--- /dev/null
+++ b/sysutils/medusa/pkg-plist
@@ -0,0 +1,16 @@
+bin/medusa-config
+bin/medusa-indexd
+bin/medusa-searchd
+bin/msearch
+etc/vfs/modules/search-methods.conf
+include/libmedusa/medusa-common-private.h
+include/libmedusa/medusa-index-service-private.h
+include/libmedusa/medusa-search-service-private.h
+include/libmedusa/medusa-search-service.h
+lib/libmedusa.a
+lib/libmedusa.so
+lib/libmedusa.so.0
+lib/vfs/modules/libvfs-search.so
+share/gnome/medusa/file-index-stoplist
+@dirrm share/gnome/medusa
+@dirrm include/libmedusa