From 2ded5f3058d95bff305bd32bf2c4b08f917203e5 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sat, 2 Aug 2008 22:54:56 +0300 Subject: [PATCH] cgit: Added cgit 0.7.3-c502865 - A CGI for git written in C --- develop/cgit/cgit.conf | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ develop/cgit/cgit.desc | 37 +++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 develop/cgit/cgit.conf create mode 100644 develop/cgit/cgit.desc diff --git a/develop/cgit/cgit.conf b/develop/cgit/cgit.conf new file mode 100644 index 00000000..0b27f7da --- /dev/null +++ b/develop/cgit/cgit.conf @@ -0,0 +1,52 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../cgit/cgit.conf +# Copyright (C) 2008 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +custextract=cgit_extract +makeinstopt= + +hook_add premake 5 'cgit_extract_git' +hook_add postmake 5 'cgit_install' + +cgit_extract() +{ + local taropt_orig="$taropt" + + mkdir -p "$pkg-$ver" + taropt="-C $pkg-$ver $taropt" + autoextract_tar_bz2 "$@" + taropt="$taropt_orig" +} + +#FIXME: try to use the installed git if possible +cgit_extract_git() +{ + local gitver=$( pkgdesc ver git ) + local gitsource=$( match_source_file -p git git ) + tar -v $taropt $gitsource + rmdir git + mv git-$gitver git +} + +cgit_install() +{ + cat <<-EOT > cgit.cgi + #!/bin/sh + + exec $sbindir/cgit "\$@" + EOT + chmod +x cgit.cgi + + cp -a cgit $root$sbindir + cp -a cgitrc README cgit.{css,png,cgi} $root$docdir +} diff --git a/develop/cgit/cgit.desc b/develop/cgit/cgit.desc new file mode 100644 index 00000000..1d66e3bd --- /dev/null +++ b/develop/cgit/cgit.desc @@ -0,0 +1,37 @@ +[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN --- +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] +[COPY] Filename: package/.../cgit/cgit.desc +[COPY] Copyright (C) 2008 The OpenSDE Project +[COPY] +[COPY] More information can be found in the files COPYING and README. +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; version 2 of the License. A copy of the +[COPY] GNU General Public License can be found in the file COPYING. +[COPY] --- SDE-COPYRIGHT-NOTE-END --- + +[I] A CGI for git written in C + +[T] `cgit` is a cgi application implemented in C. it's basically (yet) another +[T] git command, used to generate html. +[T] +[T] It is not forking as all git operations are performed by linking with +[T] libgit.a, and it use a built-in cache so the generated html is stored on +[T] disk for the benefit of later requests. + +[U] http://hjemli.net/git/cgit/ + +[A] Lars Hjemli +[M] Alejandro Mery + +[C] extra/tool + +[L] GPL +[S] Stable +[V] 0.7.3-c502865 +[P] X -----5---9 800.000 + +#[D] 0 cgit-0.7.2.tar.bz2 !http://hjemli.net/git/cgit/snapshot/cgit-b74cc91574a9284d2f6446fd2ef3df6298ed6992.tar.bz2?id=b74cc91574a9284d2f6446fd2ef3df6298ed6992 +[D] 1570010048 cgit-0.7.3-c502865.tar.bz2 !http://hjemli.net/git/cgit/snapshot/cgit-502865a5ec40fed5f1f865cb34002aecaab8405e.tar.bz2?id=502865a5ec40fed5f1f865cb34002aecaab8405e -- 2.11.4.GIT