diff options
author | wiz <wiz> | 2007-09-20 20:53:30 +0000 |
---|---|---|
committer | wiz <wiz> | 2007-09-20 20:53:30 +0000 |
commit | ab2812b67bb64dc63a1986f239d88a140a8088f6 (patch) | |
tree | 2b5f2dd63ccc4c64b4265bcc3876f1d765218cb6 /textproc/namazu | |
parent | 9c4bfa082c9cee0f08a035af5125f744cfcf8569 (diff) | |
download | pkgsrc-ab2812b67bb64dc63a1986f239d88a140a8088f6.tar.gz |
Move namazu2 to namazu, to make directory name match PKGNAME.
Diffstat (limited to 'textproc/namazu')
-rw-r--r-- | textproc/namazu/DESCR | 5 | ||||
-rw-r--r-- | textproc/namazu/MESSAGE | 55 | ||||
-rw-r--r-- | textproc/namazu/Makefile | 62 | ||||
-rw-r--r-- | textproc/namazu/PLIST | 158 | ||||
-rw-r--r-- | textproc/namazu/distinfo | 6 | ||||
-rw-r--r-- | textproc/namazu/patches/patch-ab | 31 |
6 files changed, 317 insertions, 0 deletions
diff --git a/textproc/namazu/DESCR b/textproc/namazu/DESCR new file mode 100644 index 00000000000..60132615a8d --- /dev/null +++ b/textproc/namazu/DESCR @@ -0,0 +1,5 @@ +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) diff --git a/textproc/namazu/MESSAGE b/textproc/namazu/MESSAGE new file mode 100644 index 00000000000..69ebe2383ca --- /dev/null +++ b/textproc/namazu/MESSAGE @@ -0,0 +1,55 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1 2007/09/20 20:53:30 wiz Exp $ + +Here are general notes for the namazu pkgsrc package. + +1. If you customize namazu configuration, please edit "mknmzrc" file + in ${PKG_SYSCONFDIR} directory. + +2. if you upgrade from namazu 1.X, you need to rebuild index files + since index file format was changed from namazu prior to 2.0. + +3. In order to processing Japanese, you should install any of the following + WAKATI modues: + KAKASI (textproc/p5-Text-Kakasi) + ChaSen (textporc/p5-Text-ChaSen) + MeCab (textproc/p5-mcab) + And specify WAKATI module in "namazurc" file or option of mknmz: + namazurc mknmz + KAKASI $WAKATI=$KAKASI -k or --use-kakasi + ChaSen $WAKATI=$CHASEN -c or --use-chasen + MeCab $WAKATI=$MECAB -e or --use-mecab + + Then, you need to set "LC_ALL", "LANG" or "LC_CTYPE" environment to "ja". + Or use --indexing-lang option of mknmz. + +4. In order to display Japanese message, you need to set "LANGUAGE", + "LC_ALL", "LC_MESSAGES" or "LANG" environment to "ja". + +5. If perl display locale related warnings, you need to set + "PERL_BADLANG" environment. + +6. Special notes for perl 5.8.1 users: Please set environment + PERL_HASH_SEED as 0. + +7. If you want to make index of bellow file type, please install + appropriate package. + + Adobe PDF xpdf + Adobe PostScript ghostscript + JustSystem Ichitaro DocCat + Microsoft Excel xlHtml or DocCat + Microsoft PowerPoint xlHtml or DocCat + Microsoft Word wv or DocCat + Redhat RPM rpm + TeX source detex + TeX dvi dvi2tty + + For handling non-English language, you might need lv and/or nkf + package, too. + + DocCat is a commercial product from Dehenken Limited. + See http://www.dehenken.co.jp/products/products-01/products-dc01.html + in detail. + +=========================================================================== diff --git a/textproc/namazu/Makefile b/textproc/namazu/Makefile new file mode 100644 index 00000000000..5d60067378c --- /dev/null +++ b/textproc/namazu/Makefile @@ -0,0 +1,62 @@ +# $NetBSD: Makefile,v 1.1 2007/09/20 20:53:31 wiz Exp $ + +DISTNAME= namazu-2.0.17 +PKGREVISION= 1 +CATEGORIES= japanese textproc www +MASTER_SITES= http://www.namazu.org/stable/ \ + http://namazu.ipmedia.de/stable/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.namazu.org/index.html.en +COMMENT= Full-text search system intended for easy use + +DEPENDS+= p5-File-MMagic>=1.25:../../misc/p5-File-MMagic +DEPENDS+= p5-nkf>=1.7:../../converters/p5-nkf + +CONFLICTS+= namazu-[0-9]* + +USE_PKGLOCALEDIR= yes +USE_TOOLS+= perl:run +GNU_CONFIGURE= yes +USE_LANGUAGES= c +USE_LIBTOOL= yes +TEST_TARGET= check + +BUILD_DEFS+= PKG_SYSCONFBASE +CONFIGURE_ARGS+= --localstatedir=${DATADIR:Q} \ + --libexecdir=${PREFIX}/libexec/cgi-bin \ + --sysconfdir=${PKG_SYSCONFBASE:Q} +CONFIGURE_ENV+= KAKASI="module_kakasi" +CONFIGURE_ENV+= ac_cv_path_KAKASI="module_kakasi" +CONFIGURE_ENV+= CHASEN="module_chasen" +CONFIGURE_ENV+= ac_cv_path_CHASEN="module_chasen" +CONFIGURE_ENV+= MECAB="module_mecab" +CONFIGURE_ENV+= ac_cv_path_MECAB="module_mecab" +DATADIR= ${PREFIX}/libdata +EXAMPLESDIR= ${PREFIX}/share/examples/namazu +EXAMPLES= mknmzrc namazurc + +SUBST_CLASSES+= wakati +SUBST_STAGE.wakati= pre-configure +SUBST_FILES.wakati= pl/conf.pl.in +SUBST_SED.wakati= -e 's|@OPT_WAKATI_DEFAULT@|none|' + +.include "../../mk/bsd.prefs.mk" + +PKG_SYSCONFSUBDIR= namazu +.for f in ${EXAMPLES} +CONF_FILES+= ${EXAMPLESDIR}/${f} ${PKG_SYSCONFDIR}/${f} +.endfor +MAKE_DIRS+= ${DATADIR}/namazu/index +OWN_DIRS+= ${PKG_SYSCONFDIR} ${DATADIR}/namazu + +post-install: + ${INSTALL_DATA_DIR} ${DATADIR}/namazu + ${INSTALL_DATA_DIR} ${EXAMPLESDIR} +.for f in ${EXAMPLES} + cd ${WRKSRC}/conf && ${INSTALL_DATA} ${f}-sample ${EXAMPLESDIR}/${f} +.endfor + +.include "../../converters/libiconv/buildlink3.mk" +.include "../../devel/gettext-lib/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/namazu/PLIST b/textproc/namazu/PLIST new file mode 100644 index 00000000000..d3de8529c0b --- /dev/null +++ b/textproc/namazu/PLIST @@ -0,0 +1,158 @@ +@comment $NetBSD: PLIST,v 1.1 2007/09/20 20:53:31 wiz Exp $ +bin/adnmz +bin/bnamazu +bin/gcnmz +bin/kwnmz +bin/lnnmz +bin/mailutime +bin/mknmz +bin/namazu +bin/nmz-config +bin/nmzcat +bin/nmzegrep +bin/nmzgrep +bin/nmzmerge +bin/rfnmz +bin/vfnmz +include/namazu/codeconv.h +include/namazu/field.h +include/namazu/hlist.h +include/namazu/i18n.h +include/namazu/idxname.h +include/namazu/l10n-ja.h +include/namazu/libnamazu.h +include/namazu/parser.h +include/namazu/query.h +include/namazu/re.h +include/namazu/regex.h +include/namazu/score.h +include/namazu/search.h +include/namazu/util.h +include/namazu/var.h +include/namazu/wakati.h +@dirrm include/namazu +lib/libnmz.la +libexec/cgi-bin/namazu.cgi +man/man1/mknmz.1 +man/man1/namazu.1 +share/examples/namazu/mknmzrc +share/examples/namazu/namazurc +@dirrm share/examples/namazu +share/locale/es/LC_MESSAGES/namazu.mo +share/locale/fr/LC_MESSAGES/namazu.mo +share/locale/ja/LC_MESSAGES/namazu.mo +share/locale/ja_JP.SJIS/LC_MESSAGES/namazu.mo +share/namazu/doc/en/manual.html +share/namazu/doc/en/nmz.html +share/namazu/doc/en/tips.html +share/namazu/doc/en/tutorial.html +@dirrm share/namazu/doc/en +share/namazu/doc/ja/manual.html +share/namazu/doc/ja/nmz.html +share/namazu/doc/ja/tips.html +share/namazu/doc/ja/tutorial.html +@dirrm share/namazu/doc/ja +share/namazu/doc/namazu.css +@dirrm share/namazu/doc +share/namazu/etc/AUTHORS +share/namazu/etc/COPYING +share/namazu/etc/CREDITS +share/namazu/etc/ChangeLog +share/namazu/etc/ChangeLog.1 +share/namazu/etc/HACKING +share/namazu/etc/HACKING-ja +share/namazu/etc/INSTALL +share/namazu/etc/INSTALL-ja +share/namazu/etc/NEWS +share/namazu/etc/README +share/namazu/etc/README-es +share/namazu/etc/README-ja +share/namazu/etc/THANKS +share/namazu/etc/TODO +share/namazu/etc/namazu.png +@dirrm share/namazu/etc +share/namazu/filter/apachecache.pl +share/namazu/filter/bzip2.pl +share/namazu/filter/compress.pl +share/namazu/filter/deb.pl +share/namazu/filter/dvi.pl +share/namazu/filter/excel.pl +share/namazu/filter/gnumeric.pl +share/namazu/filter/gzip.pl +share/namazu/filter/hdml.pl +share/namazu/filter/hnf.pl +share/namazu/filter/html.pl +share/namazu/filter/koffice.pl +share/namazu/filter/macbinary.pl +share/namazu/filter/mailnews.pl +share/namazu/filter/man.pl +share/namazu/filter/mhonarc.pl +share/namazu/filter/mp3.pl +share/namazu/filter/msofficexml.pl +share/namazu/filter/msword.pl +share/namazu/filter/ooo.pl +share/namazu/filter/pdf.pl +share/namazu/filter/pipermail.pl +share/namazu/filter/postscript.pl +share/namazu/filter/powerpoint.pl +share/namazu/filter/rfc.pl +share/namazu/filter/rpm.pl +share/namazu/filter/rtf.pl +share/namazu/filter/taro.pl +share/namazu/filter/taro56.pl +share/namazu/filter/taro7_10.pl +share/namazu/filter/tex.pl +share/namazu/filter/visio.pl +share/namazu/filter/zip.pl +@dirrm share/namazu/filter +share/namazu/pl/codeconv.pl +share/namazu/pl/conf.pl +share/namazu/pl/document.pl +share/namazu/pl/filter.pl +share/namazu/pl/gettext.pl +share/namazu/pl/gfilter.pl +share/namazu/pl/htmlsplit.pl +share/namazu/pl/nmzidx.pl +share/namazu/pl/seed.pl +share/namazu/pl/time.pl +share/namazu/pl/usage.pl +share/namazu/pl/util.pl +share/namazu/pl/var.pl +share/namazu/pl/wakati.pl +@dirrm share/namazu/pl +share/namazu/template/NMZ.body +share/namazu/template/NMZ.body.es +share/namazu/template/NMZ.body.fr +share/namazu/template/NMZ.body.ja +share/namazu/template/NMZ.body.pl +share/namazu/template/NMZ.foot +share/namazu/template/NMZ.foot.de +share/namazu/template/NMZ.foot.es +share/namazu/template/NMZ.foot.fr +share/namazu/template/NMZ.foot.ja +share/namazu/template/NMZ.foot.pl +share/namazu/template/NMZ.head +share/namazu/template/NMZ.head.de +share/namazu/template/NMZ.head.es +share/namazu/template/NMZ.head.fr +share/namazu/template/NMZ.head.ja +share/namazu/template/NMZ.head.pl +share/namazu/template/NMZ.result.normal +share/namazu/template/NMZ.result.normal.de +share/namazu/template/NMZ.result.normal.es +share/namazu/template/NMZ.result.normal.fr +share/namazu/template/NMZ.result.normal.ja +share/namazu/template/NMZ.result.normal.pl +share/namazu/template/NMZ.result.short +share/namazu/template/NMZ.result.short.de +share/namazu/template/NMZ.result.short.es +share/namazu/template/NMZ.result.short.fr +share/namazu/template/NMZ.result.short.ja +share/namazu/template/NMZ.result.short.pl +share/namazu/template/NMZ.tips +share/namazu/template/NMZ.tips.es +share/namazu/template/NMZ.tips.fr +share/namazu/template/NMZ.tips.ja +share/namazu/template/NMZ.tips.pl +@dirrm share/namazu/template +@dirrm share/namazu diff --git a/textproc/namazu/distinfo b/textproc/namazu/distinfo new file mode 100644 index 00000000000..96bd93b36ed --- /dev/null +++ b/textproc/namazu/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2007/09/20 20:53:31 wiz Exp $ + +SHA1 (namazu-2.0.17.tar.gz) = 7a01d3fd2e5091f39fdd7ff2ce0e5c7204c05faa +RMD160 (namazu-2.0.17.tar.gz) = f6b85aae280fa6dca38dcf6c4c3427b683610994 +Size (namazu-2.0.17.tar.gz) = 1379981 bytes +SHA1 (patch-ab) = 5052026e67ffb0a235c8a4ba996cb4438bf7b622 diff --git a/textproc/namazu/patches/patch-ab b/textproc/namazu/patches/patch-ab new file mode 100644 index 00000000000..e788518439d --- /dev/null +++ b/textproc/namazu/patches/patch-ab @@ -0,0 +1,31 @@ +$NetBSD: patch-ab,v 1.1 2007/09/20 20:53:32 wiz Exp $ + +--- conf/Makefile.in.orig 2004-12-14 23:34:52.000000000 +0900 ++++ conf/Makefile.in +@@ -133,7 +133,7 @@ lispdir = @lispdir@ + AUTOMAKE_OPTIONS = 1.4 no-dependencies + + confdir = $(sysconfdir)/$(PACKAGE) +-conf_DATA = namazurc-sample mknmzrc-sample ++noinst_DATA = namazurc-sample mknmzrc-sample + EXTRA_DIST = namazurc-sample + CLEANFILES = mknmzrc-sample + subdir = conf +@@ -143,7 +143,7 @@ CONFIG_CLEAN_FILES = + depcomp = + am__depfiles_maybe = + DIST_SOURCES = +-DATA = $(conf_DATA) ++DATA = $(noinst_DATA) + + DIST_COMMON = Makefile.am Makefile.in + all: all-am +@@ -218,7 +218,7 @@ all-am: Makefile $(DATA) + installdirs: + $(mkinstalldirs) $(DESTDIR)$(confdir) + +-install: install-am ++install: + install-exec: install-exec-am + install-data: install-data-am + uninstall: uninstall-am |