diff options
author | Grant Goodyear <g2boojum@gentoo.org> | 2004-01-27 23:55:54 +0000 |
---|---|---|
committer | Grant Goodyear <g2boojum@gentoo.org> | 2004-01-27 23:55:54 +0000 |
commit | 9faa9447fbbb88d1b847b684cb53208d6b87d104 (patch) | |
tree | 061b66424e46e7545bb3c4b2f71a7a778aad1997 /net-www | |
parent | header fix (diff) | |
download | gentoo-2-9faa9447fbbb88d1b847b684cb53208d6b87d104.tar.gz gentoo-2-9faa9447fbbb88d1b847b684cb53208d6b87d104.tar.bz2 gentoo-2-9faa9447fbbb88d1b847b684cb53208d6b87d104.zip |
Added meta-cvs patch.
Diffstat (limited to 'net-www')
-rw-r--r-- | net-www/viewcvs/Manifest | 10 | ||||
-rw-r--r-- | net-www/viewcvs/files/digest-viewcvs-0.9.2_p20030430-r1 | 2 | ||||
-rw-r--r-- | net-www/viewcvs/viewcvs-0.9.2_p20030430-r1.ebuild | 88 |
3 files changed, 96 insertions, 4 deletions
diff --git a/net-www/viewcvs/Manifest b/net-www/viewcvs/Manifest index 5fb1bafea6e4..fb33b3ecc811 100644 --- a/net-www/viewcvs/Manifest +++ b/net-www/viewcvs/Manifest @@ -1,10 +1,12 @@ -MD5 c339473e0ff43da76eb2f2607c441921 metadata.xml 280 MD5 e9c54eb2fe72c1cc33788b32a57da0dd viewcvs-0.9.2-r1.ebuild 2367 -MD5 629d37f9aa7e9812eded937ed846404d viewcvs-0.9.2-r2.ebuild 2772 -MD5 f3d714624d68e2fc237b87fe55483dd0 viewcvs-0.9.2_p20030430.ebuild 2349 MD5 021995fface2a25aabad6eaf7b5cb524 viewcvs-0.9.2-r3.ebuild 2804 +MD5 f3d714624d68e2fc237b87fe55483dd0 viewcvs-0.9.2_p20030430.ebuild 2349 +MD5 f2beb375051c4d908cec1fd1fd17a742 viewcvs-0.9.2_p20030430-r1.ebuild 2507 +MD5 629d37f9aa7e9812eded937ed846404d viewcvs-0.9.2-r2.ebuild 2772 MD5 3861cb59aa8d35bd0dca6d4c4bbe7cd7 ChangeLog 1813 +MD5 c339473e0ff43da76eb2f2607c441921 metadata.xml 280 +MD5 fbac846bcd488f255dc57fdd27ba99df files/digest-viewcvs-0.9.2_p20030430 69 MD5 07a07f1a89e77c9f093ade7e395ffe3b files/digest-viewcvs-0.9.2-r1 65 MD5 07a07f1a89e77c9f093ade7e395ffe3b files/digest-viewcvs-0.9.2-r2 65 -MD5 fbac846bcd488f255dc57fdd27ba99df files/digest-viewcvs-0.9.2_p20030430 69 MD5 07a07f1a89e77c9f093ade7e395ffe3b files/digest-viewcvs-0.9.2-r3 65 +MD5 f05e7bcfcf7504c2f0499f480869dd56 files/digest-viewcvs-0.9.2_p20030430-r1 137 diff --git a/net-www/viewcvs/files/digest-viewcvs-0.9.2_p20030430-r1 b/net-www/viewcvs/files/digest-viewcvs-0.9.2_p20030430-r1 new file mode 100644 index 000000000000..40a40459257a --- /dev/null +++ b/net-www/viewcvs/files/digest-viewcvs-0.9.2_p20030430-r1 @@ -0,0 +1,2 @@ +MD5 4ddcb02e47f3255d38d8f541ab6c985f viewcvs-20030430.tar.bz2 191735 +MD5 49157bf7f838e35971fb56dcc9fb8859 viewcvs.02.metacvs.patch 13628 diff --git a/net-www/viewcvs/viewcvs-0.9.2_p20030430-r1.ebuild b/net-www/viewcvs/viewcvs-0.9.2_p20030430-r1.ebuild new file mode 100644 index 000000000000..7b2c1a1bbec1 --- /dev/null +++ b/net-www/viewcvs/viewcvs-0.9.2_p20030430-r1.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/viewcvs/viewcvs-0.9.2_p20030430-r1.ebuild,v 1.1 2004/01/27 23:55:54 g2boojum Exp $ + +PDATE=${PV/0.9.2_p/} +DESCRIPTION="Viewcvs, a web interface to cvs and subversion" +HOMEPAGE="http://viewcvs.sourceforge.net/" +SRC_URI="mirror://gentoo/${PN}-${PDATE}.tar.bz2 + mirror://gentoo/${PN}.02.metacvs.patch" + +LICENSE="viewcvs" +SLOT="0" +KEYWORDS="x86" + +DEPEND="" +RDEPEND=">=app-text/rcs-5.7 + >=dev-util/cvs-1.11 + sys-apps/diffutils + net-www/apache" +S=${WORKDIR}/${PN} + +WWW="/var/www/localhost/viewcvs" +CONFFILE="/etc/viewcvs/viewcvs.conf" + +doinstall() { + # start_location=$1 + # end_location=$2 + # mode=$3 + if [ -d $1 ]; then + install -o root -d ${D}/$2 + for f in ${1}/* + do + doinstall ${f} ${f/${1}/${2}} $3 + done + else + sed -e "{ s,\(^#!.*$\),#!/usr/bin/python,; \ + s,\(<VIEWCVS_INSTALL_DIRECTORY>\),${WWW},; \ + s,\(^LIBRARY_DIR\)\(.*\$\),\1 = \"${WWW}/lib\",; \ + s,\(^CONF_PATHNAME\)\(.*\$\),\1 = \"${CONFFILE}\",}" ${1} >${1}.cpy + + install -o root -m $3 ${1}.cpy ${D}/$2 + rm ${1}.cpy + fi +} + +src_unpack() { + unpack ${PN}-${PDATE}.tar.bz2 + patch -d ${S} -p1 < ${DISTDIR}/${PN}.02.metacvs.patch || die "patch failed" +} + +src_install() { + cd ${S} + install -o root -d ${D}/${WWW}/cgi + + doinstall cgi/viewcvs.cgi ${WWW}/cgi/viewcvs.cgi 755 + doinstall cgi/query.cgi ${WWW}/cgi/query.cgi 755 + doinstall standalone.py ${WWW}/standalone.py 755 + mkdir -p ${D}/`dirname ${CONFFILE}` + doinstall cgi/viewcvs.conf.dist ${CONFFILE} 644 + doinstall cgi/cvsgraph.conf.dist `dirname ${CONFFILE}`/cvsgraph.conf 644 + doinstall tools/loginfo-handler ${WWW}/loginfo-handler 755 + doinstall tools/cvsdbadmin ${WWW}/cvsdbadmin 755 + doinstall tools/make-database ${WWW}/make-database 755 + + doinstall lib ${WWW}/lib 644 + doinstall templates `dirname ${CONFFILE}`/templates 644 + + dohtml -r website/* + cat <<EOF >apache.conf +ScriptAlias /viewcvs /var/www/localhost/viewcvs/cgi/viewcvs.cgi +ScriptAlias /cvsquery /var/www/localhost/viewcvs/cgi/cvsquery.cgi + +<Directory /var/www/localhost/viewcvs/cgi> + Options ExecCGI + <IfModule mod_access.c> + Order allow,deny + Allow from all + </IfModule> +</Directory> +EOF + dodoc INSTALL TODO CHANGES README apache.conf +} + +pkg_postinst() { + ewarn "Before using viewcvs make sure you configure it correctly" + einfo "There is a sample apache integration configuration file in the" + einfo "documentation directory named: apache.conf" +} |