diff options
author | Peter Volkov <pva@gentoo.org> | 2006-06-11 18:41:19 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2006-06-11 18:41:19 +0000 |
commit | d235f13d1a2eefc18f967cb990061be87642df91 (patch) | |
tree | 02e0fb900a21fcbc60df9822a3d9c2aa051f8955 /www-apps/mnogosearch | |
parent | Version bump to sphpblog-0.4.7.2 (diff) | |
download | webapps-experimental-d235f13d1a2eefc18f967cb990061be87642df91.tar.gz webapps-experimental-d235f13d1a2eefc18f967cb990061be87642df91.tar.bz2 webapps-experimental-d235f13d1a2eefc18f967cb990061be87642df91.zip |
www-apps/mnogosearch initial bump.
svn path=/experimental/; revision=186
Diffstat (limited to 'www-apps/mnogosearch')
-rw-r--r-- | www-apps/mnogosearch/ChangeLog | 11 | ||||
-rw-r--r-- | www-apps/mnogosearch/Manifest | 28 | ||||
-rw-r--r-- | www-apps/mnogosearch/files/digest-mnogosearch-3.2.38 | 3 | ||||
-rw-r--r-- | www-apps/mnogosearch/files/mnogosearch-3.2.38-configure.in.patch | 12 | ||||
-rw-r--r-- | www-apps/mnogosearch/files/mnogosearch-indexer.conf.patch | 14 | ||||
-rw-r--r-- | www-apps/mnogosearch/files/postinstall-en.txt | 29 | ||||
-rw-r--r-- | www-apps/mnogosearch/metadata.xml | 18 | ||||
-rw-r--r-- | www-apps/mnogosearch/mnogosearch-3.2.38.ebuild | 112 |
8 files changed, 227 insertions, 0 deletions
diff --git a/www-apps/mnogosearch/ChangeLog b/www-apps/mnogosearch/ChangeLog new file mode 100644 index 0000000..d1fd5c5 --- /dev/null +++ b/www-apps/mnogosearch/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for www-apps/mnogosearch +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*mnogosearch-3.2.38.ebuild (11 Jun 2006) + + 11 Jun 2006; Peter Volkov <pva@gentoo.org> ChangeLog: + +files/mnogosearch-indexer.conf.patch + +files/mnogosearch-3.2.38-configure.in.patch +files/postinstall-en.txt + +mnogosearch-3.2.38.ebuild +metadata.xml Initial bump. Enjoy :) + diff --git a/www-apps/mnogosearch/Manifest b/www-apps/mnogosearch/Manifest new file mode 100644 index 0000000..fe6b4a0 --- /dev/null +++ b/www-apps/mnogosearch/Manifest @@ -0,0 +1,28 @@ +AUX mnogosearch-3.2.38-configure.in.patch 472 RMD160 c185c9ce50ca454cee3a6cadcb9a3b347953cf1a SHA1 33184ad4383948b42638ef1fbe144bb5961db0e9 SHA256 06651d4e255c8cf3088671b83629b1aea56436eb627d40b1c073d3c18954d017 +MD5 19261d421aba6168380fd05784bccef0 files/mnogosearch-3.2.38-configure.in.patch 472 +RMD160 c185c9ce50ca454cee3a6cadcb9a3b347953cf1a files/mnogosearch-3.2.38-configure.in.patch 472 +SHA256 06651d4e255c8cf3088671b83629b1aea56436eb627d40b1c073d3c18954d017 files/mnogosearch-3.2.38-configure.in.patch 472 +AUX mnogosearch-indexer.conf.patch 829 RMD160 6d0d91d8170e8ab95d777d953a8adbb5f4ca864a SHA1 573504e1a315ff671e575c5e3de08494446cf4ba SHA256 eac520e3cdb2956fb1dc49a8e28bf2bb236e69e7a396e8e2bde5f7362ba9ae9e +MD5 196ce5bf9d0952d91ad337ed327c5866 files/mnogosearch-indexer.conf.patch 829 +RMD160 6d0d91d8170e8ab95d777d953a8adbb5f4ca864a files/mnogosearch-indexer.conf.patch 829 +SHA256 eac520e3cdb2956fb1dc49a8e28bf2bb236e69e7a396e8e2bde5f7362ba9ae9e files/mnogosearch-indexer.conf.patch 829 +AUX postinstall-en.txt 1161 RMD160 45abe76526f52088f7cc841bd12994c105fb293e SHA1 7f9fb7397f1c92c63a0dcbf63f5ad5bd00ec1a09 SHA256 86b5065d8c532e1de15f18df458754821f216566a61906091b265b9e9018ed0b +MD5 5f55fd72767c3e3e4a14465972a3c042 files/postinstall-en.txt 1161 +RMD160 45abe76526f52088f7cc841bd12994c105fb293e files/postinstall-en.txt 1161 +SHA256 86b5065d8c532e1de15f18df458754821f216566a61906091b265b9e9018ed0b files/postinstall-en.txt 1161 +DIST mnogosearch-3.2.38.tar.gz 3422447 RMD160 3545da15ec3463a0fdcc658d2e1cc24961ade423 SHA1 18a910f474be8504b27e4c011aca7f11410818ee SHA256 486c29d5beb988f5e4e9dd18bebb17486954d19562a776967eefe23d62001231 +EBUILD mnogosearch-3.2.38.ebuild 3299 RMD160 0fe1f1e9f7e730b0d36aebcc879c90a48b6130f2 SHA1 18308da243370d8bf8af32083ebe1164fe1f863d SHA256 479cf72b8e635d251fd328f8e7ddc8cdc61490c494465168036aab0c2cd004a7 +MD5 ab2766215e259d9af2c533263ca64f1b mnogosearch-3.2.38.ebuild 3299 +RMD160 0fe1f1e9f7e730b0d36aebcc879c90a48b6130f2 mnogosearch-3.2.38.ebuild 3299 +SHA256 479cf72b8e635d251fd328f8e7ddc8cdc61490c494465168036aab0c2cd004a7 mnogosearch-3.2.38.ebuild 3299 +MISC ChangeLog 399 RMD160 521faffc7038bc6dc55ca51b028e602ca5599021 SHA1 7327a43bc8fbb079756898d1fad73cdeaf9134b1 SHA256 e48c460cb16fa33f57b9f6cf6c9d3a9cbfed7d839723d375cdaaff9626c8143a +MD5 51c2810a5e23393014d5f393c5994a5e ChangeLog 399 +RMD160 521faffc7038bc6dc55ca51b028e602ca5599021 ChangeLog 399 +SHA256 e48c460cb16fa33f57b9f6cf6c9d3a9cbfed7d839723d375cdaaff9626c8143a ChangeLog 399 +MISC metadata.xml 715 RMD160 aefe5b5ec31e623a3296839cf5d3314880446e59 SHA1 0294c3e4e16c40b017d855e9f3f62b4135cf2369 SHA256 ad90d833d218f6c89d8d39842b88bbbcc8f863733a62432e5e5f33257aed082b +MD5 e2326d30a74898ed80d6b1cc3d34bad7 metadata.xml 715 +RMD160 aefe5b5ec31e623a3296839cf5d3314880446e59 metadata.xml 715 +SHA256 ad90d833d218f6c89d8d39842b88bbbcc8f863733a62432e5e5f33257aed082b metadata.xml 715 +MD5 75703f0c0c058c696a6cdf792a23cd1c files/digest-mnogosearch-3.2.38 259 +RMD160 bffa8dc6a3e0506d18c124cef9ffbdca151d3dff files/digest-mnogosearch-3.2.38 259 +SHA256 100a49c79aa6a9e9deed14cd65545a08b34991e699e68a7eba9aa50f032dc572 files/digest-mnogosearch-3.2.38 259 diff --git a/www-apps/mnogosearch/files/digest-mnogosearch-3.2.38 b/www-apps/mnogosearch/files/digest-mnogosearch-3.2.38 new file mode 100644 index 0000000..987935a --- /dev/null +++ b/www-apps/mnogosearch/files/digest-mnogosearch-3.2.38 @@ -0,0 +1,3 @@ +MD5 2aa9a123857a3a6ee77daac762979310 mnogosearch-3.2.38.tar.gz 3422447 +RMD160 3545da15ec3463a0fdcc658d2e1cc24961ade423 mnogosearch-3.2.38.tar.gz 3422447 +SHA256 486c29d5beb988f5e4e9dd18bebb17486954d19562a776967eefe23d62001231 mnogosearch-3.2.38.tar.gz 3422447 diff --git a/www-apps/mnogosearch/files/mnogosearch-3.2.38-configure.in.patch b/www-apps/mnogosearch/files/mnogosearch-3.2.38-configure.in.patch new file mode 100644 index 0000000..f9a2be0 --- /dev/null +++ b/www-apps/mnogosearch/files/mnogosearch-3.2.38-configure.in.patch @@ -0,0 +1,12 @@ +diff -Naur mnogosearch-3.2.38.orig/configure.in mnogosearch-3.2.38/configure.in +--- mnogosearch-3.2.38.orig/configure.in 2006-03-10 17:08:04.000000000 +0000 ++++ mnogosearch-3.2.38/configure.in 2006-04-30 09:52:33.000000000 +0000 +@@ -1458,7 +1458,7 @@ + + AC_MSG_CHECKING(for additional character sets) + +-if test "$extra_charsets" = none; then ++if test "$extra_charsets" = none -o "$extra_charsets" = no ; then + CHARSETS="" + else + if test "$extra_charsets" = all; then diff --git a/www-apps/mnogosearch/files/mnogosearch-indexer.conf.patch b/www-apps/mnogosearch/files/mnogosearch-indexer.conf.patch new file mode 100644 index 0000000..24eeac0 --- /dev/null +++ b/www-apps/mnogosearch/files/mnogosearch-indexer.conf.patch @@ -0,0 +1,14 @@ +diff -Naur mnogosearch-3.2.38.orig/etc/indexer.conf-dist mnogosearch-3.2.38/etc/indexer.conf-dist +--- mnogosearch-3.2.38.orig/etc/indexer.conf-dist 2005-10-11 04:23:29.000000000 +0000 ++++ mnogosearch-3.2.38/etc/indexer.conf-dist 2006-04-30 16:08:01.000000000 +0000 +@@ -2,9 +2,7 @@ + + ########################################################################### + # This is a sample indexer config file. +-# To start using it please edit and rename to indexer.conf. +-# You can also make this file executable and run it directly. +-# You may want to keep the original indexer.conf-dist for future references. ++# You can make this file executable and run it directly. + # Use '#' to comment out lines. + # All command names are case insensitive (DBAddr=DBADDR=dbaddr). + # You may use '\' character to prolong current command to next line diff --git a/www-apps/mnogosearch/files/postinstall-en.txt b/www-apps/mnogosearch/files/postinstall-en.txt new file mode 100644 index 0000000..d74c2cc --- /dev/null +++ b/www-apps/mnogosearch/files/postinstall-en.txt @@ -0,0 +1,29 @@ +To start using mnogosearch you need configure database (create database user +account and database itself) and edit at least indexer.conf and search.htm so +that indexer and search.cgi could connect to database. + +1.Fex for mysql database. Connect to database with root account and create user. + + mysql> GRANT ALTER, CREATE, CREATE TEMPORARY TABLES, DELETE, DROP, INSERT, + LOCK TABLES, SELECT, UPDATE ON mnogosearch.* TO 'foo'@'localhost' IDENTIFIED + BY 'bar'; + + Now create database: + + mysqladmin -u foo -p create mnogosearch + +2.Edit DBAdr in ${VHOST_ROOT}/mnogosearch/indexer.conf + file to reflect your database user and password. + + After that run indexer with + "-d ${VHOST_ROOT}/mnogosearch/indexer.conf" + option. You may wish to add alias into your ~/.bashrc: + alias indexer="indexer -d ${VHOST_ROOT}/mnogosearch/indexer.conf" + +3.Edit DBAdr in ${VHOST_ROOT}/mnogosearch/search.htm. + +Run "indexer -d ${VHOST_ROOT}/mnogosearch/indexer.conf -Ecreate" +to create tables in database. After that add "Server http://www.foo.org" +parameter into indexer.conf and run indexer to index that server. + +Point your browser to http://${VHOST_CGIBINDIR}/search.cgi ;) diff --git a/www-apps/mnogosearch/metadata.xml b/www-apps/mnogosearch/metadata.xml new file mode 100644 index 0000000..70c5b88 --- /dev/null +++ b/www-apps/mnogosearch/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>web-apps</herd> +<maintainer> + <email>pva@gentoo.org</email> + <name>Peter Volkov</name> +</maintainer> +<longdescription lang="en"> + mnoGoSearch consists of a command line indexer and a search program which + can be run under Apache Web Server, or any other HTTP server supporting CGI + interface. mnoGoSearch for Unix is distributed in sources and can be + compiled with a number of databases, depending on user's choice. It is known + to work on a wide variety of the modern Unix operating systems including + Linux, FreeBSD, Mac OSX, Solaris and others. +</longdescription> +</pkgmetadata> + diff --git a/www-apps/mnogosearch/mnogosearch-3.2.38.ebuild b/www-apps/mnogosearch/mnogosearch-3.2.38.ebuild new file mode 100644 index 0000000..babe4e0 --- /dev/null +++ b/www-apps/mnogosearch/mnogosearch-3.2.38.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit webapp eutils autotools + +DESCRIPTION="Web search engine software for intranet and internet servers." +HOMEPAGE="http://search.mnogo.ru/" +SRC_URI="http://search.mnogo.ru/Download/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~x86 ~amd64" +# TODO: +# Create use.local.dest with: +# www-apps/mnogosearch:zlib - enable HTTP Content encoding, this also enable cache support +# www-apps/mnogosearch:utf8 - Use UTF8 encoding instead of LATIN1. + +IUSE="doc zlib ssl mysql postgres sqlite cjk utf8" + +RDEPEND="zlib? ( sys-libs/zlib ) + ssl? ( dev-libs/openssl ) + sqlite? ( =dev-db/sqlite-2.8* )" +DEPEND="${RDEPEND} + doc? ( app-text/openjade + app-text/docbook-dsssl-stylesheets ) + mysql? ( dev-db/mysql ) + postgres? ( dev-db/postgresql )" + +pkg_setup() { + webapp_pkg_setup + use mysql || use postgres || use sqlite || { + ewarn "No database selected! indexing part will not be compiled!" ; + ewarn "If it's incorrect, add mysql, postgres or sqlite in USE flags." ; + ebeep ; } +} + +src_unpack() { + unpack ${A} + epatch ${FILESDIR}/${P}-configure.in.patch + epatch ${FILESDIR}/${PN}-indexer.conf.patch + + einfo Sedding files... + + find ${S} -name Makefile.am -exec \ + sed -i \ + -e "s:\$[(]DESTDIR[)]\$[(]prefix[)]/doc:$\(DESTDIR\)/usr/share/doc/${PF}:" \ + -e "s:datadir:pkgdatadir:" \{\} \; || die "sed of find Makefile.am failed" + + use utf8 && { sed -i \ + -e "s:^#LocalCharset UTF-8:LocalCharset UTF-8:" \ + ${S}/etc/indexer.conf-dist || die "sed of indexer.conf-dist failed" ; } + + use utf8 && { sed -i \ + -e "s:^LocalCharset iso-8859-1:LocalCharset UTF-8:" \ + -e "s:^BrowserCharset iso-8859-1:BrowserCharset UTF-8:" \ + ${S}/etc/search.htm-dist || die "sed of search.htm-dist failed" ; } + + sed -i \ + -e "s%e.g. http://www.mnogosearch.org,%e.g. http://www.gentoo.org,%" \ + -e 's:<td align="left">:<td align="center">:' \ + -e "s:bar@localhost/udm/:bar@localhost/mnogosearch/:" \ + ${S}/etc/search.htm-dist || die "sed of search.htm-dist failed" + + sed -i \ + -e 's:UdmStrdup(UDM_CONF_DIR):UdmStrdup("../mnogosearch/"):' \ + ${S}/src/search.c || die "sed of search.c failed" + + sed -i -e "s:-dist::" ${S}/etc/Makefile.am || die "sed -dist failed" + cd ${S}/etc/ + rename -dist '' *-dist || \ + ewarn "rename failed... You'll have to rename -dist files by yourself." + + cd ${S} + AT_M4DIR="build/m4" + eautoreconf +} + +src_compile() { + econf $(use_with doc docs) \ + $(use_with ssl openssl) \ + $(use_with cjk extra-charsets all) \ + $(use_with zlib) \ + $(use_with mysql) \ + $(use_with postgres pgsql) \ + $(use_with sqlite sqlite /usr) \ + --sysconfdir=${MY_HOSTROOTDIR}/mnogosearch || die "./configure failed" + + emake || die "compilation failed" +} + +src_install() { + webapp_src_preinst + make DESTDIR="${D}" install + mv ${D}/usr/bin/search.cgi ${D}/${MY_CGIBINDIR} + + webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt + + for CFG in $(find ${D}${MY_HOSTROOTDIR}/mnogosearch/*) ; do + local configfile=${CFG/${D}/} + webapp_configfile ${configfile} + done + + webapp_src_install +} + +pkg_postinst() { + use mysql || use postgres || use sqlite || { + ewarn "No database selected! indexing part is not compiled!" ; + ewarn "If it's incorrect, add mysql, postgres or sqlite in USE flags." ; } + echo + webapp_pkg_postinst +} |