summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2002-05-31 13:01:39 +0000
committerseb <seb@pkgsrc.org>2002-05-31 13:01:39 +0000
commitfa0f6e46a770b8deccc56fbc93d26ba5154dab15 (patch)
tree768b9bad1f962a142f9bec34e6c1fb92d74a902e /textproc
parentc3b498ceffeb390ba58ca64926b90ae1674221fa (diff)
downloadpkgsrc-fa0f6e46a770b8deccc56fbc93d26ba5154dab15.tar.gz
Reimport of package namazu from japanese/namazu1 into textproc/namazu1.
This is part of the japanese category retirement. Pathnames to japanese/ adjusted.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/namazu1/DEINSTALL18
-rw-r--r--textproc/namazu1/DESCR9
-rw-r--r--textproc/namazu1/INSTALL27
-rw-r--r--textproc/namazu1/Makefile60
-rw-r--r--textproc/namazu1/PLIST44
-rw-r--r--textproc/namazu1/distinfo5
-rw-r--r--textproc/namazu1/patches/patch-aa52
7 files changed, 215 insertions, 0 deletions
diff --git a/textproc/namazu1/DEINSTALL b/textproc/namazu1/DEINSTALL
new file mode 100644
index 00000000000..dd415c6c93d
--- /dev/null
+++ b/textproc/namazu1/DEINSTALL
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# $NetBSD: DEINSTALL,v 1.1.1.1 2002/05/31 13:01:39 seb Exp $
+#
+
+case "$2" in
+ DEINSTALL) cat <<EOF
+
+=============================================================
+Note that namazu configuration (@CONFDIR@/*), index
+files (@INDEXDIR@/*) are not removed in the
+de-installation process. You should remove those by hand,
+if you no longer need them.
+=============================================================
+
+EOF
+ ;;
+esac
diff --git a/textproc/namazu1/DESCR b/textproc/namazu1/DESCR
new file mode 100644
index 00000000000..a6fceb9c648
--- /dev/null
+++ b/textproc/namazu1/DESCR
@@ -0,0 +1,9 @@
+Namazu is a full-text search system intended for easy use. Not only it works
+as a CGI program for a small or medium scale Web search engine, but also works
+as a personal use search system for your pile of email.
+
+(The Japanese word `Namazu' means `catfish' in English.)
+
+Note: Namazu's newer version already exists. Since index file format has
+changed, this pacakge is provided for users who want to continute to use
+existing index files.
diff --git a/textproc/namazu1/INSTALL b/textproc/namazu1/INSTALL
new file mode 100644
index 00000000000..644e305eac7
--- /dev/null
+++ b/textproc/namazu1/INSTALL
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $NetBSD: INSTALL,v 1.1.1.1 2002/05/31 13:01:39 seb Exp $
+
+PKGNAME=$1
+STAGE=$2
+
+case ${STAGE} in
+PRE-INSTALL)
+ ;;
+POST-INSTALL)
+ cat <<EOF
+
+=============================================================
+If you customize namazu configuration, copy
+@DOCDIR@/namazu.conf-dist to
+@CONFDIR@ and edit them.
+=============================================================
+
+EOF
+ ;;
+*)
+ echo "Unexpected argument: ${STAGE}"
+ exit 1
+ ;;
+esac
+exit 0
diff --git a/textproc/namazu1/Makefile b/textproc/namazu1/Makefile
new file mode 100644
index 00000000000..d7f23319bfd
--- /dev/null
+++ b/textproc/namazu1/Makefile
@@ -0,0 +1,60 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/05/31 13:01:39 seb Exp $
+# FreeBSD Id: Makefile,v 1.1.1.1 1999/03/31 11:52:07 flathill Exp $
+
+DISTNAME= namazu-1.3.0.11
+PKGREVISION= 1
+CATEGORIES= japanese textproc
+MASTER_SITES= http://www.namazu.org/stable/
+
+MAINTAINER= tech-pkg-ja@jp.netbsd.org
+HOMEPAGE= http://www.namazu.org/index.html.en
+COMMENT= Namazu is a search engine software intended for easy use
+
+DEPENDS= kakasi>=2.3.1:../../textproc/kakasi
+DEPENDS+= nkf-1.7:../../converters/nkf
+.if !defined(WITH_CHASEN) || ${WITH_CHASEN} != NO
+DEPENDS+= p5-Text-ChaSen>=1.0:../../textproc/p5-Text-ChaSen
+.endif
+
+CONFIGURE_ARGS+= --with-cgi-dir=${LOCALBASE}/libexec/cgi-bin
+.if defined(WITH_CHASEN) && ${WITH_CHASEN} == NO
+CONFIGURE_ARGS+= -without-chasen
+.else
+CONFIGURE_ARGS+= -with-chasen
+.endif
+
+DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
+INSTALL_FILE= ${WRKDIR}/INSTALL
+
+USE_PERL5= yes
+GNU_CONFIGURE= yes
+
+CONFLICTS+= namazu-[0-9]*
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+CONTRIBDIR= ${WRKDIR}/${DISTNAME}/contrib
+
+CONFDIR= ${LOCALBASE}/etc/namazu
+DOCDIR= ${LOCALBASE}/share/namazu/doc
+INDEXDIR= ${LOCALBASE}/libdata/namazu
+
+post-build:
+ @${SED} -e 's|/usr/bin/perl|${LOCALBASE}/bin/perl|g' \
+ < ${CONTRIBDIR}/bnamazu > ${WRKDIR}/bnamazu
+ @for FILE in \
+ ${PKGDIR}/DEINSTALL \
+ ${PKGDIR}/INSTALL; \
+ do \
+ ${SED} -e 's|@CONFDIR@|${CONFDIR}|g' \
+ -e 's|@INDEXDIR@|${INDEXDIR}|g' \
+ -e 's|@DOCDIR@|${DOCDIR}|g' \
+ < $${FILE} > ${WRKDIR}/`basename $${FILE}`; \
+ done
+
+post-install:
+ @cd ${WRKSRC}; ${MAKE} install_cgi
+ @${INSTALL_SCRIPT} ${WRKDIR}/bnamazu ${LOCALBASE}/bin
+ @${TEST} -d ${LOCALBASE}/etc/namazu || ${INSTALL_DATA_DIR} ${LOCALBASE}/etc/namazu
+ @${SH} ${WRKDIR}/INSTALL ${PKGNAME} POST-INSTALL
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/namazu1/PLIST b/textproc/namazu1/PLIST
new file mode 100644
index 00000000000..1c1f3ab7f6c
--- /dev/null
+++ b/textproc/namazu1/PLIST
@@ -0,0 +1,44 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/05/31 13:01:39 seb Exp $
+bin/bnamazu
+bin/clnmz
+bin/gcnmz
+bin/gtnmz
+bin/mailutime
+bin/mknmz
+bin/namazu
+bin/rvnmz
+bin/vfnmz
+bin/wdnmz
+@exec ${MKDIR} %D/etc/namazu 2>/dev/null || /usr/bin/true
+@dirrm etc/namazu
+@exec ${MKDIR} %D/libdata/namazu 2>/dev/null || /usr/bin/true
+@exec ${MKDIR} %D/libdata/namazu/index 2>/dev/null || /usr/bin/true
+@dirrm libdata/namazu/index
+@dirrm libdata/namazu
+libexec/cgi-bin/namazu.cgi
+share/namazu/doc/COPYING
+share/namazu/doc/ChangeLog
+share/namazu/doc/ToDo
+share/namazu/doc/en/README.en
+share/namazu/doc/en/intro.html
+share/namazu/doc/en/manual.html
+share/namazu/doc/ja/FAQ.html
+share/namazu/doc/ja/README.ja
+share/namazu/doc/ja/history.html
+share/namazu/doc/ja/intro.html
+share/namazu/doc/ja/lynxcgi.html
+share/namazu/doc/ja/manual.html
+share/namazu/doc/ja/nmz_files.txt
+share/namazu/doc/ja/security.html
+share/namazu/doc/namazu.conf-dist
+share/namazu/template/NMZ.body.en
+share/namazu/template/NMZ.body.ja
+share/namazu/template/NMZ.foot.en
+share/namazu/template/NMZ.foot.ja
+share/namazu/template/NMZ.head.en
+share/namazu/template/NMZ.head.ja
+@dirrm share/namazu/template
+@dirrm share/namazu/doc/ja
+@dirrm share/namazu/doc/en
+@dirrm share/namazu/doc
+@dirrm share/namazu
diff --git a/textproc/namazu1/distinfo b/textproc/namazu1/distinfo
new file mode 100644
index 00000000000..df2f72926e5
--- /dev/null
+++ b/textproc/namazu1/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/05/31 13:01:39 seb Exp $
+
+SHA1 (namazu-1.3.0.11.tar.gz) = 6fca105ad77e1a2940bbfa4e0d74073fd602f411
+Size (namazu-1.3.0.11.tar.gz) = 343632 bytes
+SHA1 (patch-aa) = de27b5877c85c581bfb5b459da96caec1433c7b2
diff --git a/textproc/namazu1/patches/patch-aa b/textproc/namazu1/patches/patch-aa
new file mode 100644
index 00000000000..2d89b5f1a4d
--- /dev/null
+++ b/textproc/namazu1/patches/patch-aa
@@ -0,0 +1,52 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/05/31 13:01:39 seb Exp $
+
+--- Makefile.in.orig Wed Jan 26 22:38:51 2000
++++ Makefile.in
+@@ -21,18 +21,16 @@
+
+ BASEDIR = @prefix@
+ CGIDIR = @CGIDIR@
+-NAMAZUDIR = $(BASEDIR)/namazu
+-BINDIR_SYS = $(BASEDIR)/bin # install 'namazu' 'mknmz' command.
+-BINDIR = $(NAMAZUDIR)/bin
+-INDEXDIR = $(NAMAZUDIR)/index
+-DOCDIR = $(NAMAZUDIR)/doc
+-LIBDIR = $(NAMAZUDIR)/lib
+-CONTRIBDIR = $(NAMAZUDIR)/contrib
++BINDIR = $(BASEDIR)/bin
++CONFDIR = $(BASEDIR)/etc/namazu
++INDEXDIR = $(BASEDIR)/libdata/namazu/index
++DOCDIR = $(BASEDIR)/share/namazu/doc
++LIBDIR = $(BASEDIR)/share/namazu/template
+
+ ##################################################################
+ ## Pathname of namazu.conf
+
+-OPT_NAMAZU_CONF = $(LIBDIR)/namazu.conf
++OPT_NAMAZU_CONF = $(CONFDIR)/namazu.conf
+
+ ##################################################################
+ ## Programs' pathname
+@@ -307,19 +305,13 @@
+ if [ ! -d $(LIBDIR) ]; then \
+ mkdir -p $(LIBDIR); \
+ fi
+- if [ ! -d $(CONTRIBDIR) ]; then \
+- mkdir -p $(CONTRIBDIR); \
+- fi
+- if [ ! -d $(BINDIR_SYS) ]; then \
+- mkdir -p $(BINDIR_SYS); \
+- fi
+ cp mknmz wdnmz rvnmz clnmz namazu vfnmz mailutime gcnmz gtnmz $(BINDIR)
+ cp ../COPYING ../ToDo ../ChangeLog $(DOCDIR)
+ cp ../README.ja ../doc/ja/* "$(DOCDIR)/ja"
+ cp ../README.en ../doc/en/* "$(DOCDIR)/en"
+- cp ../lib/* $(LIBDIR)
+- cp ../contrib/* $(CONTRIBDIR)
+- cp namazu mknmz $(BINDIR_SYS)
++ rm -f ../lib/*.bak
++ cp ../lib/NMZ.* $(LIBDIR)
++ cp ../lib/namazu.conf-dist $(DOCDIR)
+
+ clean:
+ $(RM) $(TARGET) *.o config.cache config.log config.status