Browse Source

cgit: Added cgit 0.7.3-c502865 - A CGI for git written in C

early
Alejandro Mery 17 years ago
parent
commit
2ded5f3058
  1. 52
      develop/cgit/cgit.conf
  2. 37
      develop/cgit/cgit.desc

52
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
}

37
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 <hjemli@gmail.com>
[M] Alejandro Mery <amery@geeks.cl>
[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
Loading…
Cancel
Save