From sada@bsdclub.org  Mon Dec  4 07:24:21 2000
Return-Path: <sada@bsdclub.org>
Received: from home.bsdclub.org (home.bsdclub.org [202.227.26.94])
	by hub.freebsd.org (Postfix) with ESMTP id 195AD37B400
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  4 Dec 2000 07:24:19 -0800 (PST)
Received: (from sada@localhost) by home.bsdclub.org (8.9.3/3.7W)
	id AAA55461; Tue, 5 Dec 2000 00:24:06 +0900 (JST)
Message-Id: <200012041524.AAA55461@home.bsdclub.org>
Date: Tue, 5 Dec 2000 00:24:06 +0900 (JST)
From: sada@bsdclub.org
Reply-To: sada@bsdclub.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: New port submittion: devel/lxr (lxr-0.3)
X-Send-Pr-Version: 3.2

>Number:         23267
>Category:       ports
>Synopsis:       New port submittion: devel/lxr (lxr-0.3)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    sada
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 04 07:30:01 PST 2000
>Closed-Date:    Fri Aug 31 06:37:12 PDT 2001
>Last-Modified:  Fri Aug 31 06:37:21 PDT 2001
>Originator:     SADA Kenji
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
private
>Environment:

	4.2-STABLE + APACHE-1.3

>Description:

	This is LXR, Linux Cross Reference.
	LXR is one of source code cross reference query
	gateways via http, just like devel/global except:

	* Could trace data definitions and declaretions
	  in addition to function call.
	* Works as CGI and support demand string search.
	* Could handle only C and C++ code.

	WWW: http://lxr.linux.no

	This skeleton could need more brushup,
	suggestions are welcome.

>How-To-Repeat:

	For example I added below patch to my httpd.conf
	of apache-1.3:

+    #
+    # Alias for LXR.
+    #
+
+    Alias /lxr/ "/usr/local/share/lxr/http/"
+    <Directory "/usr/local/share/lxr/">
+        Options ExecCGI
+       <Files ~ (search|source|ident|diff|find)$>
+               SetHandler cgi-script
+       </Files>
+        AllowOverride None
+        Order allow,deny
+        Allow from all
+    </Directory>

>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:
#
#	lxr
#	lxr/Makefile
#	lxr/distinfo
#	lxr/pkg-comment
#	lxr/pkg-descr
#	lxr/pkg-plist
#
echo c - lxr
mkdir -p lxr > /dev/null 2>&1
echo x - lxr/Makefile
sed 's/^X//' >lxr/Makefile << 'END-of-lxr/Makefile'
X# New ports collection makefile for:	lxr
X# Date created:		4 December 2000
X# Whom:			SADA Kenji <sada@FreeBSD.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	lxr
XPORTVERSION=	0.3
XCATEGORIES=	devel
XMASTER_SITES=	http://lxr.linux.no/
X
XMAINTAINER=	sada@FreeBSD.org
X
XUSE_GMAKE=	yes
XALL_TARGET=	config
XMAKE_ENV=	INSTALLPREFIX=${PREFIX}
XMAKEFILE=	Makefile.FreeBSD
X
Xpre-configure:
X	${SED} -e 's/install/install -c/' \
X		-e 's/--directory/-d/' \
X		-e 's/--mode/-m/' \
X		-e 's/\/tmp\/lxr/$${PREFIX}\/share\/lxr/' \
X		${WRKSRC}/Makefile > ${WRKSRC}/${MAKEFILE}
X
X.include <bsd.port.mk>
END-of-lxr/Makefile
echo x - lxr/distinfo
sed 's/^X//' >lxr/distinfo << 'END-of-lxr/distinfo'
XMD5 (lxr-0.3.tar.gz) = 57417ee8fdafef8e04141690c7a8b6aa
END-of-lxr/distinfo
echo x - lxr/pkg-comment
sed 's/^X//' >lxr/pkg-comment << 'END-of-lxr/pkg-comment'
XYet anoter cvs query tool via http
END-of-lxr/pkg-comment
echo x - lxr/pkg-descr
sed 's/^X//' >lxr/pkg-descr << 'END-of-lxr/pkg-descr'
XThis is LXR, Linux Cross Reference.
XLXR is one of source code cross reference query
Xgateways via http, just like devel/global except:
X
X * Could trace data definitions and declaretions
X   in addition to function call.
X * Works as CGI and support demand string search.
X * Could handle only C and C++ code.
X
XWWW: http://lxr.linux.no
END-of-lxr/pkg-descr
echo x - lxr/pkg-plist
sed 's/^X//' >lxr/pkg-plist << 'END-of-lxr/pkg-plist'
Xshare/lxr/bin/genxref
Xshare/lxr/http/blurb.html
Xshare/lxr/http/diff
Xshare/lxr/http/find
Xshare/lxr/http/ident
Xshare/lxr/http/lib/LXR/Common.pm
Xshare/lxr/http/lib/LXR/Config.pm
Xshare/lxr/http/lib/SimpleParse.pm
Xshare/lxr/http/lxr.conf
Xshare/lxr/http/search
Xshare/lxr/http/search_help.html
Xshare/lxr/http/source
Xshare/lxr/http/template-dir
Xshare/lxr/http/template-head
Xshare/lxr/http/template-tail
Xshare/lxr/http/valid_html3.2.gif
X@unexec rmdir %D/share/lxr/source 2>/dev/null || true
X@dirrm share/lxr/http/lib/LXR
X@dirrm share/lxr/http/lib
X@dirrm share/lxr/http
X@dirrm share/lxr/bin
X@dirrm share/lxr
END-of-lxr/pkg-plist
exit

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: will 
State-Changed-When: Tue Dec 19 03:16:27 PST 2000 
State-Changed-Why:  
SADA-san, I think you should commit this port, with one minor modification: 
mention how you aliased lxr in your httpd.conf in ${PKGMESSAGE} so people 
can do it for their own apache installation.  Other than that, I see no 
problem with this port going into the tree as-is. 


Responsible-Changed-From-To: freebsd-ports->sada 
Responsible-Changed-By: will 
Responsible-Changed-When: Tue Dec 19 03:16:27 PST 2000 
Responsible-Changed-Why:  
SADA-san made this port. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=23267 
State-Changed-From-To: feedback->closed 
State-Changed-By: dwcjr 
State-Changed-When: Fri Aug 31 06:37:12 PDT 2001 
State-Changed-Why:  
Timed out 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=23267 
>Unformatted:
