Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Apr 2008 21:39:10 GMT
From:      Oleg Alexeenkov <proler@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/123280: Update port: net/prosearch
Message-ID:  <200804302139.m3ULdAVi043377@www.freebsd.org>
Resent-Message-ID: <200804302140.m3ULe0tZ075722@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         123280
>Category:       ports
>Synopsis:       Update port: net/prosearch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 30 21:40:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Oleg Alexeenkov
>Release:        
>Organization:
>Environment:
>Description:

>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	prosearch
#	prosearch/files
#	prosearch/files/pkg-message.in
#	prosearch/pkg-descr
#	prosearch/pkg-plist
#	prosearch/Makefile
#	prosearch/distinfo
#
echo c - prosearch
mkdir -p prosearch > /dev/null 2>&1
echo c - prosearch/files
mkdir -p prosearch/files > /dev/null 2>&1
echo x - prosearch/files/pkg-message.in
sed 's/^X//' >prosearch/files/pkg-message.in << 'END-of-prosearch/files/pkg-message.in'
X=======================================================================
XPro-search is now installed. If you intall it for the first time,
Xyou may have to follow this steps to make it work correctly:
X
X1. Create the MySQL database:
X# mysqladmin --user=root create prosearch
X2. Create a mysql user/password for prosearch:
X   (change user and/or password if requered)
X# echo "GRANT ALL ON prosearch.* TO prosearch@localhost IDENTIFIED BY 'prosearch'; FLUSH PRIVILEGES;" | mysql
X4.# cp %%PREFIX%%/%%SEARCHDIR%%/config.pl.dist %%PREFIX%%/%%SEARCHDIR%%/config.pl
X5.# ee %%PREFIX%%/%%SEARCHDIR%%/config.pl
X6. install the default prosearch database:
X# perl crawler.pl install
X7. Add alias in apache config for the prosearch web dir:
XAlias /search "%%PREFIX%%/%%SEARCHDIR%%/web"
Xor 
X# cp %%PREFIX%%/%%SEARCHDIR%%/tools/search.conf %%PREFIX%%/etc/apache22/Includes/
X# ee %%PREFIX%%/etc/apache22/Includes/search.conf
X8. scan your resources
X# perl crawler.pl 10.0.0.0/24 ftp://files.net 
X9. enjoy: http://your.site/search/ or cd web && perl index.cgi q=test
X=======================================================================
END-of-prosearch/files/pkg-message.in
echo x - prosearch/pkg-descr
sed 's/^X//' >prosearch/pkg-descr << 'END-of-prosearch/pkg-descr'
XFile search and navigation system
X
XWWW: http://sourceforge.net/projects/pro-search
XRU: http://pro.setun.net/search/
END-of-prosearch/pkg-descr
echo x - prosearch/pkg-plist
sed 's/^X//' >prosearch/pkg-plist << 'END-of-prosearch/pkg-plist'
X%%SEARCHDIR%%/010.search.purge
X%%SEARCHDIR%%/AUTHORS
X%%SEARCHDIR%%/confdef.pl
X%%SEARCHDIR%%/config.pl.dist
X%%SEARCHDIR%%/COPYING
X%%SEARCHDIR%%/crawler.pl
X%%SEARCHDIR%%/search.sh.dist
X%%SEARCHDIR%%/TODO
X%%SEARCHDIR%%/WHATSNEW
X%%SEARCHDIR%%/dcppp/dcppp.pm
X%%SEARCHDIR%%/dcppp/dcppp/clicli.pm
X%%SEARCHDIR%%/dcppp/dcppp/clihub.pm
X%%SEARCHDIR%%/dcppp/dcppp/hubcli.pm
X%%SEARCHDIR%%/dcppp/dcppp/hubhub.pm
X%%SEARCHDIR%%/doc/Makefile
X%%SEARCHDIR%%/doc/cuted.old
X%%SEARCHDIR%%/doc/doc.css
X%%SEARCHDIR%%/doc/doc.html
X%%SEARCHDIR%%/doc/doc.sgml
X%%SEARCHDIR%%/doc/doc.txt
X%%SEARCHDIR%%/doc/html2txt.pl
X%%SEARCHDIR%%/doc/make-cygwin.cmd
X%%SEARCHDIR%%/lib/psmisc.pm
X%%SEARCHDIR%%/lib/lib.css
X%%SEARCHDIR%%/lib/lib.js
X%%SEARCHDIR%%/lib/player.js
X%%SEARCHDIR%%/lib/search1.js
X%%SEARCHDIR%%/lib/psconn.pm
X%%SEARCHDIR%%/lib/pssql.pm
X%%SEARCHDIR%%/lib/psweb.pm
X%%SEARCHDIR%%/tools/cp_auto_gen.pl
X%%SEARCHDIR%%/tools/grant.sql
X%%SEARCHDIR%%/tools/search.conf
X%%SEARCHDIR%%/tools/size.sh
X%%SEARCHDIR%%/tools/test
X%%SEARCHDIR%%/tools/test.zip
X%%SEARCHDIR%%/tools/tidy.pl
X%%SEARCHDIR%%/tools/prosearch/Makefile
X%%SEARCHDIR%%/tools/prosearch/pkg-descr
X%%SEARCHDIR%%/tools/prosearch/pkg-plist
X%%SEARCHDIR%%/tools/prosearch/files/pkg-message.in
X%%SEARCHDIR%%/web/.htaccess.dist
X%%SEARCHDIR%%/web/about.htm
X%%SEARCHDIR%%/web/base.css
X%%SEARCHDIR%%/web/boolean.htm
X%%SEARCHDIR%%/web/config.pl.dist
X%%SEARCHDIR%%/web/crawlrul.htm
X%%SEARCHDIR%%/web/help.js
X%%SEARCHDIR%%/web/help_en.js
X%%SEARCHDIR%%/web/help_ru.js
X%%SEARCHDIR%%/web/index.cgi
X%%SEARCHDIR%%/web/index.fcgi
X%%SEARCHDIR%%/web/JsHttpRequest.js
X%%SEARCHDIR%%/web/JsHttpRequest.pm
X%%SEARCHDIR%%/web/newstyle.css
X%%SEARCHDIR%%/web/regexp.htm
X%%SEARCHDIR%%/web/robots.txt.dist
X%%SEARCHDIR%%/web/search.css
X%%SEARCHDIR%%/web/search1.css
X%%SEARCHDIR%%/web/search2.css
X%%SEARCHDIR%%/web/dcppp/dcppp.pm
X%%SEARCHDIR%%/web/dcppp/dcppp/clicli.pm
X%%SEARCHDIR%%/web/dcppp/dcppp/clihub.pm
X%%SEARCHDIR%%/web/dcppp/dcppp/hubcli.pm
X%%SEARCHDIR%%/web/dcppp/dcppp/hubhub.pm
X%%SEARCHDIR%%/web/img/archive.png
X%%SEARCHDIR%%/web/img/apache.png
X%%SEARCHDIR%%/web/img/audio.png
X%%SEARCHDIR%%/web/img/bat.png
X%%SEARCHDIR%%/web/img/cd.png
X%%SEARCHDIR%%/web/img/chm.png
X%%SEARCHDIR%%/web/img/css.png
X%%SEARCHDIR%%/web/img/dchub.png
X%%SEARCHDIR%%/web/img/dcuser.png
X%%SEARCHDIR%%/web/img/dir.png
X%%SEARCHDIR%%/web/img/doc.png
X%%SEARCHDIR%%/web/img/exec.png
X%%SEARCHDIR%%/web/img/file.png
X%%SEARCHDIR%%/web/img/firefox.png
X%%SEARCHDIR%%/web/img/ftp.png
X%%SEARCHDIR%%/web/img/gif.png
X%%SEARCHDIR%%/web/img/ie.png
X%%SEARCHDIR%%/web/img/image.png
X%%SEARCHDIR%%/web/img/ini.png
X%%SEARCHDIR%%/web/img/mod_perl.png
X%%SEARCHDIR%%/web/img/mov.png
X%%SEARCHDIR%%/web/img/mysql.png
X%%SEARCHDIR%%/web/img/nrg.png
X%%SEARCHDIR%%/web/img/opera.png
X%%SEARCHDIR%%/web/img/pdf.png
X%%SEARCHDIR%%/web/img/perl.png
X%%SEARCHDIR%%/web/img/ppt.png
X%%SEARCHDIR%%/web/img/postgres.png
X%%SEARCHDIR%%/web/img/psd.png
X%%SEARCHDIR%%/web/img/res.png
X%%SEARCHDIR%%/web/img/rss.png
X%%SEARCHDIR%%/web/img/sqlite.png
X%%SEARCHDIR%%/web/img/swf.png
X%%SEARCHDIR%%/web/img/text.png
X%%SEARCHDIR%%/web/img/unk.png
X%%SEARCHDIR%%/web/img/url.png
X%%SEARCHDIR%%/web/img/video.png
X%%SEARCHDIR%%/web/img/wmv.png
X%%SEARCHDIR%%/web/img/xls.png
X%%SEARCHDIR%%/web/img/xhtml11.png
X%%SEARCHDIR%%/web/img/xml.png
X%%SEARCHDIR%%/web/lib/psmisc.pm
X%%SEARCHDIR%%/web/lib/lib.css
X%%SEARCHDIR%%/web/lib/lib.js
X%%SEARCHDIR%%/web/lib/player.js
X%%SEARCHDIR%%/web/lib/search1.js
X%%SEARCHDIR%%/web/lib/psconn.pm
X%%SEARCHDIR%%/web/lib/pssql.pm
X%%SEARCHDIR%%/web/lib/psweb.pm
X@dirrm %%SEARCHDIR%%/dcppp/dcppp
X@dirrm %%SEARCHDIR%%/tools/prosearch/files
X@dirrm %%SEARCHDIR%%/tools/prosearch
X@dirrm %%SEARCHDIR%%/web/dcppp/dcppp
X@dirrm %%SEARCHDIR%%/web/dcppp
X@dirrm %%SEARCHDIR%%/web/img
X@dirrm %%SEARCHDIR%%/web/lib
X@dirrm %%SEARCHDIR%%/dcppp
X@dirrm %%SEARCHDIR%%/doc
X@dirrm %%SEARCHDIR%%/example
X@dirrm %%SEARCHDIR%%/lib
X@dirrm %%SEARCHDIR%%/tools
X@dirrmtry %%SEARCHDIR%%/tmp
X@dirrmtry %%SEARCHDIR%%/var
X@dirrmtry %%SEARCHDIR%%/web
X@dirrmtry %%SEARCHDIR%%
END-of-prosearch/pkg-plist
echo x - prosearch/Makefile
sed 's/^X//' >prosearch/Makefile << 'END-of-prosearch/Makefile'
X# New ports collection makefile for: prosearch
X# Date created:		20 May 2006
X# Whom:			Oleg Alexeenkov <proler@gmail.com>
X#
X# $FreeBSD: ports/net/prosearch/Makefile,v 1.3 2008/01/18 01:21:34 beech Exp $
X#
X
XPORTNAME=	prosearch
XPORTVERSION=	0.18.2
XCATEGORIES=	net www
XMASTER_SITES=	http://pro.setun.net/search/download/ SF
XMASTER_SITE_SUBDIR=	pro-search
X
XMAINTAINER=	proler@gmail.com
XCOMMENT=	Powerful file search
X
XUSE_BZIP2=	yes
XSUB_FILES=	pkg-message
XSUB_LIST=	SEARCHDIR=${SEARCHDIR}
XNO_BUILD=	yes
XSEARCHDIR?=	www/search
XPLIST_SUB+=	SEARCHDIR=${SEARCHDIR}
X
X#todo
X# user and group for crawler
XOPTIONS=\
X		CRAWLER "With crawler deps" on \
X		SAMBA "crawler with SAMBA (file://)" on \
X		RSYNC " crawler with RSYNC " off \
X		WEB "With web deps (APACHE)" on \
X		MOD_PERL2 "With MOD_PERL2" off \
X		MOD_FASTCGI "With MOD_FASTCGI" off \
X		DB "With database server deps" on \
X		MYSQL "mysql" on \
X		PGSQL "postgres" off \
X		PGPP "postgres pure perl connection" off \
X		SQLITE "sqlite" off
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_CRAWLER)
XRUN_DEPENDS+=\
X${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww \
Xnmap:${PORTSDIR}/security/nmap
X.endif
X
X.if defined(WITH_SAMBA)
XRUN_DEPENDS+=	smbclient:${PORTSDIR}/net/samba3
X.endif
X
X.if defined(WITH_RSYNC)
XRUN_DEPENDS+=	rsync:${PORTSDIR}/net/rsync
X.endif
X
X.if defined(WITH_WEB)
XUSE_APACHE=	2.0+
X.endif
X
X.if defined(WITH_MOD_PERL2)
XRUN_DEPENDS+=\
X${LOCALBASE}/${APACHEMODDIR}/mod_perl.so:${PORTSDIR}/www/mod_perl2
X.endif
X
X.if defined(WITH_MOD_FASTCGI)
XRUN_DEPENDS+=\
X${LOCALBASE}/${APACHEMODDIR}/mod_fastcgi.so:${PORTSDIR}/www/mod_fastcgi	\
X${SITE_PERL}/${PERL_ARCH}/FCGI.pm:${PORTSDIR}/www/p5-FastCGI
X.endif
X
X.if defined(WITH_MYSQL)
XUSE_MYSQL=	YES
XUSE_PERL5_RUN=	YES
XRUN_DEPENDS+=\
X${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql${MYSQL_VER}
X.endif
X
X.if defined(WITH_DB) && defined(WITH_MYSQL)
XRUN_DEPENDS+=\
X${LOCALBASE}/libexec/mysqld:${PORTSDIR}/databases/mysql${MYSQL_VER}-server \
Xmysqlhotcopy:${PORTSDIR}/databases/mysql${MYSQL_VER}-scripts
X.endif
X
X.if defined(WITH_PGSQL)
XUSE_PGSQL=	yes
XRUN_DEPENDS+=\
X${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
X.endif
X
X.if  defined(WITH_PGPP)
XRUN_DEPENDS+=\
X${SITE_PERL}/DBD/PgPP.pm:${PORTSDIR}/databases/p5-DBD-PgPP
X.endif
X
X.if (defined(WITH_PGSQL) || defined(WITH_PGPP)) && defined(WITH_DB)
XRUN_DEPENDS+=\
X${LOCALBASE}/bin/postgres:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
X.endif
X
X.if defined(WITH_SQLITE)
XUSE_SQLITE=	yes
XRUN_DEPENDS+=\
X${SITE_PERL}/${PERL_ARCH}/DBD/SQLite.pm:${PORTSDIR}/databases/p5-DBD-SQLite
X.endif
X
XWRKSRC=	${WRKDIR}/search
X
Xdo-install:
X	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${SEARCHDIR}/
X	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${SEARCHDIR}
X	@${ECHO_CMD} @exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
X		${SEARCHDIR:S|^${PREFIX}/|%D/|} >> ${TMPPLIST}
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-prosearch/Makefile
echo x - prosearch/distinfo
sed 's/^X//' >prosearch/distinfo << 'END-of-prosearch/distinfo'
XMD5 (prosearch-0.18.2.tar.bz2) = ded54dc1eaff8e20d09c373bdd6251a8
XSHA256 (prosearch-0.18.2.tar.bz2) = b66795a90dc1989a5d796ff31780b22422621f4780b2e22975e29313c33fb476
XSIZE (prosearch-0.18.2.tar.bz2) = 281418
END-of-prosearch/distinfo
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804302139.m3ULdAVi043377>