Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Sep 2007 22:22:52 GMT
From:      Oleg Alexeenkov <proler@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/116641: New port: net/pro-search File search and navigation system
Message-ID:  <200709252222.l8PMMqkm047201@www.freebsd.org>
Resent-Message-ID: <200709252230.l8PMU1sB099223@freefall.freebsd.org>

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

>Number:         116641
>Category:       ports
>Synopsis:       New port: net/pro-search File search and navigation system
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 25 22:30:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Oleg Alexeenkov
>Release:        
>Organization:
>Environment:
>Description:
Powerful file search
>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:
#
#	pro-search
#	pro-search/files
#	pro-search/files/pkg-message.in
#	pro-search/pkg-descr
#	pro-search/pkg-plist
#	pro-search/Makefile
#	pro-search/distinfo
#
echo c - pro-search
mkdir -p pro-search > /dev/null 2>&1
echo c - pro-search/files
mkdir -p pro-search/files > /dev/null 2>&1
echo x - pro-search/files/pkg-message.in
sed 's/^X//' >pro-search/files/pkg-message.in << 'END-of-pro-search/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%%/www/search/config.pl.dist %%PREFIX%%/www/search/config.pl
X5.# ee %%PREFIX%%/www/search/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%%/www/search/web"
Xor 
X# cp %%PREFIX%%/www/search/tools/search.conf %%PREFIX%%/etc/apache22/Includes/
X# ee %%PREFIX%%/etc/apache22/Includes/search.conf
X=======================================================================
END-of-pro-search/files/pkg-message.in
echo x - pro-search/pkg-descr
sed 's/^X//' >pro-search/pkg-descr << 'END-of-pro-search/pkg-descr'
XFile search and navigation system
END-of-pro-search/pkg-descr
echo x - pro-search/pkg-plist
sed 's/^X//' >pro-search/pkg-plist << 'END-of-pro-search/pkg-plist'
X@comment @unexec if diff -q %D/www/search/config.pl %D/www/search/config.pl.dist; then rm %D/www/search/config.pl; fi
X@comment #@exec  if [ ! -f %B/www/search/config.pl ]; then cp %B/www/search/config.pl.dist %B/www/search/config.pl; fi
X@comment #@unexec if diff -q %%PREFIX%%/etc/apache%%APACHE_VERSION%%/Includes/search.conf %D/www/search/tools/search.conf; then rm %%PREFIX%%/etc/apache%%APACHE_VERSION%%/Includes/search.conf; fi
X@comment #@exec  if [ ! -f %%PREFIX%%/etc/apache%%APACHE_VERSION%%/Includes/search.conf ]; then cp %B/www/search/tools/search.conf %%PREFIX%%/etc/apache%%APACHE_VERSION%%/Includes/search.conf; fi
X@comment #@unexec rm  %%PREFIX%%/www/apache%%APACHE_VERSION%%/data/search
X@comment #@exec touch %%PREFIX%%/www/apache%%APACHE_VERSION%%/data/search
X@comment @unexec rmdir www/search/tmp 2>/dev/null || true
X@comment @unexec rmdir www/search/var 2>/dev/null || true
X
Xwww/search/010.search.purge
Xwww/search/AUTHORS
Xwww/search/confdef.pl
Xwww/search/config.pl.dist
Xwww/search/COPYING
Xwww/search/crawler.pl
Xwww/search/search.sh.dist
Xwww/search/showactive
Xwww/search/showalive
Xwww/search/TODO
Xwww/search/WHATSNEW
Xwww/search/dcppp/dcppp.pm
Xwww/search/dcppp/dcppp/clicli.pm
Xwww/search/dcppp/dcppp/clihub.pm
Xwww/search/dcppp/dcppp/hubcli.pm
Xwww/search/dcppp/dcppp/hubhub.pm
Xwww/search/doc/Makefile
Xwww/search/doc/cuted.old
Xwww/search/doc/doc.css
Xwww/search/doc/doc.html
Xwww/search/doc/doc.sgml
Xwww/search/doc/doc.txt
Xwww/search/doc/html2txt.pl
Xwww/search/doc/make-cygwin.cmd
Xwww/search/lib/psmisc.pm
Xwww/search/lib/lib.js
Xwww/search/lib/player.js
Xwww/search/lib/psconn.pm
Xwww/search/lib/pssql.pm
Xwww/search/lib/psweb.pm
Xwww/search/modules/chat/chatdef.pl
Xwww/search/tools/cp_auto_gen.pl
Xwww/search/tools/grant.sql
Xwww/search/tools/search.conf
Xwww/search/tools/size.sh
Xwww/search/tools/test
Xwww/search/tools/test.zip
Xwww/search/tools/tidy
Xwww/search/tools/pro-search/Makefile
Xwww/search/tools/pro-search/pkg-descr
Xwww/search/tools/pro-search/pkg-plist
Xwww/search/tools/pro-search/files/pkg-message.in
Xwww/search/web/.htaccess.dist
Xwww/search/web/about.htm
Xwww/search/web/base.css
Xwww/search/web/boolean.htm
Xwww/search/web/config.pl.dist
Xwww/search/web/crawlrul.htm
Xwww/search/web/help.js
Xwww/search/web/help_en.js
Xwww/search/web/help_ru.js
Xwww/search/web/index.cgi
Xwww/search/web/JsHttpRequest.js
Xwww/search/web/JsHttpRequest.pm
Xwww/search/web/newstyle.css
Xwww/search/web/regexp.htm
Xwww/search/web/robots.txt.dist
Xwww/search/web/search.css
Xwww/search/web/search1.css
Xwww/search/web/search1.js
Xwww/search/web/search2.css
Xwww/search/web/dcppp/dcppp.pm
Xwww/search/web/dcppp/dcppp/clicli.pm
Xwww/search/web/dcppp/dcppp/clihub.pm
Xwww/search/web/dcppp/dcppp/hubcli.pm
Xwww/search/web/dcppp/dcppp/hubhub.pm
Xwww/search/web/img/archive.png
Xwww/search/web/img/audio.png
Xwww/search/web/img/bat.png
Xwww/search/web/img/cd.png
Xwww/search/web/img/chm.png
Xwww/search/web/img/dchub.png
Xwww/search/web/img/dcuser.png
Xwww/search/web/img/dir.png
Xwww/search/web/img/doc.png
Xwww/search/web/img/exec.png
Xwww/search/web/img/file.png
Xwww/search/web/img/firefox.png
Xwww/search/web/img/ftp.png
Xwww/search/web/img/gif.png
Xwww/search/web/img/ie.png
Xwww/search/web/img/image.png
Xwww/search/web/img/ini.png
Xwww/search/web/img/mov.png
Xwww/search/web/img/nrg.png
Xwww/search/web/img/opera.png
Xwww/search/web/img/pdf.png
Xwww/search/web/img/ppt.png
Xwww/search/web/img/psd.png
Xwww/search/web/img/res.png
Xwww/search/web/img/swf.png
Xwww/search/web/img/text.png
Xwww/search/web/img/unk.png
Xwww/search/web/img/url.png
Xwww/search/web/img/video.png
Xwww/search/web/img/wmv.png
Xwww/search/web/img/xls.png
Xwww/search/web/img/xml.png
Xwww/search/web/lib/psmisc.pm
Xwww/search/web/lib/lib.js
Xwww/search/web/lib/player.js
Xwww/search/web/lib/psconn.pm
Xwww/search/web/lib/pssql.pm
Xwww/search/web/lib/psweb.pm
X
X@dirrm www/search/dcppp/dcppp
X@dirrm www/search/modules/chat
X@dirrm www/search/tools/pro-search/files
X@dirrm www/search/tools/pro-search
X@dirrm www/search/web/dcppp/dcppp
X@dirrm www/search/web/dcppp
X@dirrm www/search/web/img
X@dirrm www/search/web/lib
X@dirrm www/search/dcppp
X@dirrm www/search/doc
X@dirrm www/search/example
X@dirrm www/search/lib
X@dirrm www/search/modules
X@dirrm www/search/tools
X@dirrmtry www/search/tmp
X@dirrmtry www/search/var
X@dirrmtry www/search/web
X@dirrmtry www/search
END-of-pro-search/pkg-plist
echo x - pro-search/Makefile
sed 's/^X//' >pro-search/Makefile << 'END-of-pro-search/Makefile'
X# New ports collection makefile for: pro-search
X# Date created:		20 May 2006
X# Whom:			Oleg Alexeenkov
X#
X# $FreeBSD$
X#
X
XPORTNAME=	pro-search
XPORTVERSION=	0.17.2
XCATEGORIES=	net www
XMASTER_SITES=	http://pro.setun.net/search/download/ ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	${PORTNAME}
XDIST_SUBDIR=	search
X
XMAINTAINER=	proler@gmail.com
XCOMMENT=	Powerful file search
X
XNO_BUILD=	yes
XPROSEARCHDIR=	www/search
XSUB_FILES=	pkg-message
X#todo
X# user and group for crawler
XOPTIONS=	\
X		CRAWLER        	"With crawler deps "	on	\
X		SAMBA        	" crawler with SAMBA"	on	\
X		RSYNC        	" crawler with RSYNC "	off	\
X		DB        	"With database deps "	on	\
X		WEB         	"With web deps "	on	\
X		MYSQL51		" With MYSQL51  "	on	\
X		APACHE22	" With APACHE22 "	on	\
X		MOD_PERL	"  With MOD_PERL "	on	\
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_WEB)
X    USE_APACHE?=	YES
X.	if defined(WITH_APACHE22)
X 	    USE_APACHE=		2.2+
X.	endif
X
X.	if defined(WITH_MOD_PERL)
X    	    RUN_DEPENDS+=\
X 		${LOCALBASE}/${APACHEMODDIR}/mod_perl.so:${PORTSDIR}/www/mod_perl2	\
X
X.	endif
X.endif
X
X.if defined(WITH_CRAWLER) || defined(WITH_WEB) || defined(WITH_DB)
X    USE_MYSQL?=	YES
X    WITH_MYSQL_VER?=	50
X.	if defined(WITH_MYSQL51)
X    	    WITH_MYSQL_VER=	51
X.	endif
X.endif
X
X.if defined(WITH_CRAWLER) || defined(WITH_WEB)
X    USE_PERL5_RUN?=	YES
X    RUN_DEPENDS+=\
X		${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql	\
X
X.endif
X
X.if defined(WITH_CRAWLER)
X    RUN_DEPENDS+=\
X		${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww	\
X		nmap:${PORTSDIR}/security/nmap	\
X
X.	if defined(WITH_SAMBA)
X    RUN_DEPENDS+=\
X		smbclient:${PORTSDIR}/net/samba3	\
X
X.	endif
X
X.	if defined(WITH_RSYNC)
X 		RUN_DEPENDS+=\
X		rsync:${PORTSDIR}/net/rsync	\
X
X.	endif
X
X.endif
X
X.if defined(WITH_DB)
X    RUN_DEPENDS+=\
X		${LOCALBASE}/libexec/mysqld:${PORTSDIR}/databases/mysql${WITH_MYSQL_VER}-server	\
X		mysqlhotcopy:${PORTSDIR}/databases/mysql${WITH_MYSQL_VER}-scripts	\
X
X.endif
X
XWRKSRC=	${WRKDIR}/${DIST_SUBDIR}
X
Xdo-install:
X	@-${MKDIR} ${PREFIX}/${PROSEARCHDIR}
X	@${CP} -r ${WRKSRC}/ ${PREFIX}/${PROSEARCHDIR}
X	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${PROSEARCHDIR}
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-pro-search/Makefile
echo x - pro-search/distinfo
sed 's/^X//' >pro-search/distinfo << 'END-of-pro-search/distinfo'
XMD5 (search/pro-search-0.17.2.tar.gz) = 73817a03ef0a3660153a52f70198c290
XSHA256 (search/pro-search-0.17.2.tar.gz) = 62059154a9f9b71762f3f0ea308cf075deb495284296b570255afb5737a806fa
XSIZE (search/pro-search-0.17.2.tar.gz) = 284352
END-of-pro-search/distinfo
exit


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



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