From d42ba3cfc96fc0b8cb3cb0abbe8e0cd6f117eb59 Mon Sep 17 00:00:00 2001 From: Lance Albertson Date: Tue, 23 Feb 2010 22:54:11 +0000 Subject: [PATCH] New package: cgit (#223339) Package-Manager: portage-2.1.7.16/cvs/Linux x86_64 --- www-apps/cgit/ChangeLog | 12 +++ www-apps/cgit/Manifest | 17 ++++ www-apps/cgit/cgit-0.8.3.1.ebuild | 55 +++++++++++ www-apps/cgit/files/cgitrc | 122 +++++++++++++++++++++++++ www-apps/cgit/files/postinstall-en.txt | 15 +++ www-apps/cgit/metadata.xml | 16 ++++ 6 files changed, 237 insertions(+) create mode 100644 www-apps/cgit/ChangeLog create mode 100644 www-apps/cgit/Manifest create mode 100644 www-apps/cgit/cgit-0.8.3.1.ebuild create mode 100644 www-apps/cgit/files/cgitrc create mode 100644 www-apps/cgit/files/postinstall-en.txt create mode 100644 www-apps/cgit/metadata.xml diff --git a/www-apps/cgit/ChangeLog b/www-apps/cgit/ChangeLog new file mode 100644 index 000000000000..f04392f17897 --- /dev/null +++ b/www-apps/cgit/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for www-apps/cgit +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/cgit/ChangeLog,v 1.1 2010/02/23 22:54:11 ramereth Exp $ + +*cgit-0.8.3.1 (20 Feb 2010) + + 20 Feb 2010; Lance Albertson +cgit-0.8.3.1.ebuild, + +files/cgitrc, +files/postinstall-en.txt, +metadata.xml: + Initial ebuild + + Thanks to everyone who helped in #223339 for contributing to the ebuild. + diff --git a/www-apps/cgit/Manifest b/www-apps/cgit/Manifest new file mode 100644 index 000000000000..e9285a0ba72d --- /dev/null +++ b/www-apps/cgit/Manifest @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX cgitrc 2432 RMD160 2f1f7487f969824ac4f7c0696ceaf752dd74df90 SHA1 79feeaafcfc22ebfeec7e907c1ae204389d4c1f4 SHA256 3511a73f62962c1cdb12549e4015111910300060edf8938a6b94a34c0fc72262 +AUX postinstall-en.txt 659 RMD160 3b52b26751dc66759a78d23abff0a4762624aea3 SHA1 5b3b7077e1d0fb710afb829b8720f0f9a2ad7849 SHA256 1e1ddd6048719a55c7b854fc64f9e488e61dbf32e0d1d21a16592474ce914751 +DIST cgit-0.8.3.1.tar.bz2 54767 RMD160 9df4fd06644b0642d2cf00afeb89d6a49cd17df7 SHA1 bc84001880cdb4b646b048dc8227e771469d754e SHA256 4b466f33dcaf585eaa798de13a130ae6fa348b902eff18abcc9f7619cf298fd2 +DIST git-1.6.4.3.tar.bz2 2172892 RMD160 4cb8708336e4e7cdf855ade5621a99ae7363fd30 SHA1 961ae8028609dfa95daf80fe33d24cf342f03454 SHA256 36db53f6d8d656c94fbfacc555e8d550a2381414585e6f7f6da0662dc717c138 +EBUILD cgit-0.8.3.1.ebuild 1188 RMD160 238d75f8ec352de142643f600db3b004673a35d5 SHA1 101d585160dd0787592cde188d2f17a51f842f8a SHA256 3aee8bbf284c359ac7c71766181676e52a627617c0ed40ef3932050dcd0a73a5 +MISC ChangeLog 458 RMD160 3e0c8def2e8087512f0d09b0a75d56c39dffb15d SHA1 03018f743eb0cd9e3217064cdf27098ad47059b0 SHA256 62ef95694ba6d2d9faf093a9cf25cb83bd0cea49382a1dab42ddceaf5dbb7918 +MISC metadata.xml 453 RMD160 f809bcc7c679d9e22db739c83324b7c8d64eb5bb SHA1 3618c828304423698771f05bcd43ad59ad860676 SHA256 0b508c183120b5fcace6a6d9f3ef1799b899dfdef8150639c207ab0179f406ab +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iD8DBQFLhFw0QW+hXSf0t0IRAsjcAKDi/DqHd6p84YDSdcRVvZzgBLhgEgCg4+m4 +HndLEYymeVMMuOMEt9X8cnA= +=pi5f +-----END PGP SIGNATURE----- diff --git a/www-apps/cgit/cgit-0.8.3.1.ebuild b/www-apps/cgit/cgit-0.8.3.1.ebuild new file mode 100644 index 000000000000..135480018f0c --- /dev/null +++ b/www-apps/cgit/cgit-0.8.3.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/cgit/cgit-0.8.3.1.ebuild,v 1.1 2010/02/23 22:54:11 ramereth Exp $ + +EAPI="2" + +inherit webapp + +GIT_V="1.6.4.3" + +DESCRIPTION="a fast web-interface for git repositories" +HOMEPAGE="http://hjemli.net/git/cgit/about/" +SRC_URI="mirror://kernel/software/scm/git/git-${GIT_V}.tar.bz2 + http://hjemli.net/git/cgit/snapshot/${P}.tar.bz2" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +IUSE="+cgi" + +RDEPEND="dev-util/git + sys-libs/zlib + dev-libs/openssl + cgi? ( virtual/httpd-cgi )" +DEPEND="${RDEPEND} + app-text/asciidoc" + +src_prepare() { + rmdir git + mv "${WORKDIR}"/git-"${GIT_V}" git +} + +src_compile() { + emake || die "emake died" + emake man-doc || die "emake man-doc died" +} + +src_install() { + webapp_src_preinst + + mv cgit cgit.cgi + if use cgi -o use fastcgi ; then + cp cgit.cgi "${D}"/${MY_CGIBINDIR} + fi + insinto ${MY_HTDOCSDIR} + doins cgit.css cgit.png + insinto /etc + doins "${FILESDIR}"/cgitrc + dodir /var/cache/cgit + keepdir /var/cache/cgit + dodoc README + doman cgitrc.5 + + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt + webapp_src_install +} diff --git a/www-apps/cgit/files/cgitrc b/www-apps/cgit/files/cgitrc new file mode 100644 index 000000000000..cbf6150a9685 --- /dev/null +++ b/www-apps/cgit/files/cgitrc @@ -0,0 +1,122 @@ +# Enable caching of up to 1000 output entriess +#cache-size=1000 + + +# Specify some default clone prefixes +#clone-prefix=git://foobar.com ssh://foobar.com/pub/git http://foobar.com/git + +# Specify the css url +#css=/css/cgit.css + + +# Show extra links for each repository on the index page +#enable-index-links=1 + + +# Show number of affected files per commit on the log pages +#enable-log-filecount=1 + + +# Show number of added/removed lines per commit on the log pages +#enable-log-linecount=1 + + +# Add a cgit favicon +#favicon=/favicon.ico + + +# Use a custom logo +#logo=/img/mylogo.png + + +# Enable statistics per week, month and quarter +#max-stats=quarter + + +# Set the title and heading of the repository index page +#root-title=foobar.com git repositories + + +# Set a subheading for the repository index page +#root-desc=tracking the foobar development + + +# Include some more info about foobar.com on the index page +#root-readme=/var/www/htdocs/about.html + + +# Allow download of tar.gz, tar.bz2 and zip-files +#snapshots=tar.gz tar.bz2 zip + + +## +## List of common mimetypes +## + +#mimetype.git=image/git +#mimetype.html=text/html +#mimetype.jpg=image/jpeg +#mimetype.jpeg=image/jpeg +#mimetype.pdf=application/pdf +#mimetype.png=image/png +#mimetype.svg=image/svg+xml + + +## +## List of repositories. +## PS: Any repositories listed when section is unset will not be +## displayed under a section heading +## PPS: This list could be kept in a different file (e.g. '/etc/cgitrepos') +## and included like this: +## include=/etc/cgitrepos +## + + +#repo.url=foo +#repo.path=/pub/git/foo.git +#repo.desc=the master foo repository +#repo.owner=fooman@foobar.com +#repo.readme=info/web/about.html + + +#repo.url=bar +#repo.path=/pub/git/bar.git +#repo.desc=the bars for your foo +#repo.owner=barman@foobar.com +#repo.readme=info/web/about.html + + +# The next repositories will be displayed under the 'extras' heading +#section=extras + + +#repo.url=baz +#repo.path=/pub/git/baz.git +#repo.desc=a set of extensions for bar users + +#repo.url=wiz +#repo.path=/pub/git/wiz.git +#repo.desc=the wizard of foo + + +# Add some mirrored repositories +#section=mirrors + + +#repo.url=git +#repo.path=/pub/git/git.git +#repo.desc=the dscm + + +#repo.url=linux +#repo.path=/pub/git/linux.git +#repo.desc=the kernel + +# Disable adhoc downloads of this repo +#repo.snapshots=0 + +# Disable line-counts for this repo +#repo.enable-log-linecount=0 + +# Restrict the max statistics period for this repo +#repo.max-stats=month diff --git a/www-apps/cgit/files/postinstall-en.txt b/www-apps/cgit/files/postinstall-en.txt new file mode 100644 index 000000000000..94280c80b66f --- /dev/null +++ b/www-apps/cgit/files/postinstall-en.txt @@ -0,0 +1,15 @@ +There is a few variants of configuration: +1) Via global config file: /etc/cgitrc +2) Or via local config file, shipped in ./conf dir into webapp_dir. It has to + be explicitly specified with CGIT_CONFIG env variable in your web server + configuration. + +If you would like to update the list of git repositories in cgit automatically, +you might consider adding something similar to the following as a cronjob: + +"${MY_CGIBINDIR}/cgit.cgi --scan-tree=/git/repo-parent-path > /etc/cgit-repos" + +Then add "include=/etc/cgit-repos" in /etc/cgitrc. This way it's simpler and +more convenient. You won't need to update your cgitrc every time you add a new +repository. + diff --git a/www-apps/cgit/metadata.xml b/www-apps/cgit/metadata.xml new file mode 100644 index 000000000000..1a0aafdde74b --- /dev/null +++ b/www-apps/cgit/metadata.xml @@ -0,0 +1,16 @@ + + + + web-apps + + ramereth@gentoo.org + Lance Albertson + + + cgit - cgi for git + + This is an attempt to create a fast web interface for the git scm, using a + builtin cache to decrease server io-pressure. + + + -- 2.26.2