null+****@clear*****
null+****@clear*****
2011年 1月 25日 (火) 00:51:48 JST
Kouhei Sutou 2011-01-24 15:51:48 +0000 (Mon, 24 Jan 2011) New Revision: ca0e5e4944ccd9896849317fe64a396160ba0167 Log: add libgroonga-plugin-suggest package. Modified files: apt/build-deb.sh apt/groonga-depended-packages debian/control debian/rules Modified: apt/build-deb.sh (+20 -0) =================================================================== --- apt/build-deb.sh 2011-01-24 15:11:42 +0000 (9af4c02) +++ apt/build-deb.sh 2011-01-24 15:51:48 +0000 (6eee296) @@ -24,6 +24,26 @@ fi run aptitude update -V -D run aptitude safe-upgrade -V -D -y +run aptitude install -V -D -y ruby + +if aptitude show libmsgpack-dev > /dev/null 2>&1; then + DEPENDED_PACKAGES="${DEPENDED_PACKAGES} libmsgpack-dev" +else + ruby -i'' -ne 'print $_ unless /libmsgpack/' /tmp/${PACKAGE}-debian/control +fi + +if aptitude show libzmq-dev > /dev/null 2>&1; then + DEPENDED_PACKAGES="${DEPENDED_PACKAGES} libzmq-dev" +else + ruby -i'' -ne 'print $_ unless /libzmq/' /tmp/${PACKAGE}-debian/control +fi + +if aptitude show libevent-dev > /dev/null 2>&1; then + DEPENDED_PACKAGES="${DEPENDED_PACKAGES} libevent-dev" +else + ruby -i'' -ne 'print $_ unless /libevent/' /tmp/${PACKAGE}-debian/control +fi + run aptitude install -V -D -y devscripts ${DEPENDED_PACKAGES} run aptitude clean Modified: apt/groonga-depended-packages (+1 -0) =================================================================== --- apt/groonga-depended-packages 2011-01-24 15:11:42 +0000 (d0696d4) +++ apt/groonga-depended-packages 2011-01-24 15:51:48 +0000 (7d1a8e0) @@ -1,5 +1,6 @@ debhelper cdbs autotools-dev +pkg-config quilt libmecab-dev Modified: debian/control (+26 -2) =================================================================== --- debian/control 2011-01-24 15:11:42 +0000 (b848890) +++ debian/control 2011-01-24 15:51:48 +0000 (fb3b648) @@ -1,7 +1,15 @@ Source: groonga Priority: optional Maintainer: Kouhei Sutou <kou****@clear*****> -Build-Depends: debhelper (>= 5), cdbs, autotools-dev, quilt, libmecab-dev +Build-Depends: + debhelper (>= 5), + cdbs, + autotools-dev, + quilt, + libmsgpack-dev, + libzmq-dev, + libevent-dev, + libmecab-dev Standards-Version: 3.7.3 Homepage: http://groonga.org/ @@ -37,7 +45,23 @@ Description: MeCab tokenizer for groonga. Groonga is an open-source fulltext search engine and column store. It lets you write high-performance applications that requires fulltext search. . - This package provides MeCab tokenizer plugin. + This package provides MeCab tokenizer. + +Package: libgroonga-plugin-suggest +Section: libs +Architecture: any +Depends: + ${misc:Depends}, + ${shlibs:Depends}, + libmsgpack3, + libzmq0, + libevent-1.4-2, + libgroonga (= ${binary:Version}) +Description: Suggest plugin for groonga. + Groonga is an open-source fulltext search engine and column store. + It lets you write high-performance applications that requires fulltext search. + . + This package provides suggest plugin. Package: groonga Section: database Modified: debian/rules (+11 -2) =================================================================== --- debian/rules 2011-01-24 15:11:42 +0000 (34e2df6) +++ debian/rules 2011-01-24 15:51:48 +0000 (52f5300) @@ -18,6 +18,10 @@ DEB_INSTALL_DOCS_groonga-doc = \ doc/ja/source DEB_INSTALL_DIRS_libgroonga = \ + /usr/lib/groonga/plugins + +DEB_INSTALL_DIRS_libgroonga-plugin-suggest = \ + /usr/bin \ /usr/lib/groonga/plugins/suggest DEB_INSTALL_DIRS_libgroonga-tokenizer-mecab = \ @@ -32,7 +36,8 @@ DEB_INSTALL_DIRS_groonga-munin-plugins = \ /etc/munin/plugin-conf.d install/groonga:: - cp -ar debian/tmp/usr/bin/* debian/groonga/usr/bin/ + cp -ar debian/tmp/usr/bin/groonga debian/groonga/usr/bin/ + cp -ar debian/tmp/usr/bin/grntest debian/groonga/usr/bin/ cp -ar debian/tmp/usr/share/groonga/admin_html/* \ debian/groonga/usr/share/groonga/admin_html/ cp -ar debian/tmp/usr/share/man/man1/* \ @@ -42,8 +47,12 @@ install/groonga:: install/libgroonga:: cp -ar debian/tmp/usr/lib/libgroonga* debian/libgroonga/usr/lib/ + +install/libgroonga-plugin-suggest:: + cp -ar debian/tmp/usr/bin/groonga-suggest-* \ + debian/libgroonga-plugin-suggest/usr/bin/ cp -ar debian/tmp/usr/lib/groonga/plugins/suggest \ - debian/libgroonga/usr/lib/groonga/plugins/ + debian/libgroonga-plugin-suggest/usr/lib/groonga/plugins/ install/libgroonga-tokenizer-mecab:: cp -ar debian/tmp/usr/lib/groonga/plugins/tokenizers/mecab* \