[csw-devel] SF.net SVN: gar:[6344] csw/mgar/pkg

trygvis at users.sourceforge.net trygvis at users.sourceforge.net
Fri Sep 18 13:57:00 CEST 2009


Revision: 6344
          http://gar.svn.sourceforge.net/gar/?rev=6344&view=rev
Author:   trygvis
Date:     2009-09-18 11:56:59 +0000 (Fri, 18 Sep 2009)

Log Message:
-----------
o Initial add of the 'cgit' package.

Added Paths:
-----------
    csw/mgar/pkg/cgit/
    csw/mgar/pkg/cgit/branches/
    csw/mgar/pkg/cgit/tags/
    csw/mgar/pkg/cgit/trunk/
    csw/mgar/pkg/cgit/trunk/Makefile
    csw/mgar/pkg/cgit/trunk/checksums
    csw/mgar/pkg/cgit/trunk/files/
    csw/mgar/pkg/cgit/trunk/files/0001-cgit.conf
    csw/mgar/pkg/cgit/trunk/files/apache.conf.CSW
    csw/mgar/pkg/cgit/trunk/files/cgitrc.CSW


Property changes on: csw/mgar/pkg/cgit/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/cgit/trunk/Makefile
===================================================================
--- csw/mgar/pkg/cgit/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/cgit/trunk/Makefile	2009-09-18 11:56:59 UTC (rev 6344)
@@ -0,0 +1,61 @@
+GARNAME = cgit
+GARVERSION = 0.8.3-opencsw-1
+CATEGORIES = devel
+
+DESCRIPTION = Web front-end for Git
+define BLURB
+cgit is 
+ * a cgi application implemented in C: it's basically (yet) another git command, used to generate html.
+ * not forking: all git operations are performed by linking with libgit.a.
+ * using a built-in cache: the generated html is stored on disk for the benefit of later requests.
+ * fond of virtual urls - using PATH_INFO or modules like mod_rewrite makes cgit generate urls with few or no querystring parameters, e.g.
+ * http://hjemli.net/git/cgit/log/Makefile vs.
+ * http://hjemli.net/git?r=cgit&p=log&path=Makefile.
+ * not too visual, but sometimes a bit of graphics can be justified.
+ * open source - it is licensed under GPL v2.
+ * maintained by Lars Hjemli, who is happy to receive patches, suggestions and bug reports.
+endef
+
+REQUIRED_PKGS_CSWcgit = CSWiconv CSWosslrt CSWzlib
+
+#MASTER_SITES = http://hjemli.net/git/cgit/snapshot/
+#DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz
+
+# We define upstream file regex so we can be notifed of new upstream software release
+UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
+
+#GIT_REPOS  = git://github.com/trygvis/cgit.git
+GIT_REPOS  = http://localhost/cgit/cgit
+#GIT_TREEISH_cgit = v$(GARVERSION)$(if $(PATCHLEVEL),-$(PATCHLEVEL))
+GIT_TREEISH_cgit = solaris
+
+DISTFILES = apache.conf.CSW cgitrc.CSW
+
+# The Makefile use "install" to install files but the Sun one is not really compatible
+PATH := /usr/ucb:$(PATH)
+
+# If the url used to check for software update is different of MASTER_SITES, then 
+# uncomment the next line. Otherwise it is set by default to the value of MASTER_SITES
+# UPSTREAM_MASTER_SITES = 
+
+PATCHFILES = 0001-cgit.conf
+
+CONFIGURE_SCRIPTS = 
+
+# Disable tests for now, need a round GNU'ism removal there too
+TEST_SCRIPTS =
+
+PRESERVECONF  = /etc/opt/csw/cgit/apache.conf.CSW
+PRESERVECONF += /etc/opt/csw/cgit/cgitrc.CSW
+
+# Trick to get the gar+git support to export the source code
+pre-extract-modulated: git-extract-cgit
+
+post-install-modulated:
+	@mkdir -p $(DESTDIR)/etc/opt/csw/cgit/
+	@cp $(FILEDIR)/apache.conf.CSW \
+		$(FILEDIR)/cgitrc.CSW \
+		$(DESTDIR)/etc/opt/csw/cgit/
+#	@$(MAKECOOKIE)
+
+include gar/category.mk

Added: csw/mgar/pkg/cgit/trunk/checksums
===================================================================
--- csw/mgar/pkg/cgit/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/cgit/trunk/checksums	2009-09-18 11:56:59 UTC (rev 6344)
@@ -0,0 +1,3 @@
+b013ec63820f1841df1cddaa35d66ed3  download/0001-cgit.conf
+27ef98eeb9066a301e60def5b6895a2c  download/apache.conf.CSW
+03d013bbfdad0143ddcb4c29acf1b637  download/cgitrc.CSW

Added: csw/mgar/pkg/cgit/trunk/files/0001-cgit.conf
===================================================================
--- csw/mgar/pkg/cgit/trunk/files/0001-cgit.conf	                        (rev 0)
+++ csw/mgar/pkg/cgit/trunk/files/0001-cgit.conf	2009-09-18 11:56:59 UTC (rev 6344)
@@ -0,0 +1,35 @@
+--- a/dev/null	2009-09-18 13:04:46.000000000 +0200
++++ b/cgit.conf	2009-09-18 13:08:12.674658346 +0200
+@@ -0,0 +1,32 @@
++# Sun Studio
++CC=/opt/studio/ss11/SUNWspro/bin/cc
++#CFLAGS += -v
++MMFLAGS = -xM1
++
++# GCC
++#CC=/opt/csw/gcc4/bin/gcc
++
++# Common
++LDFLAGS += -R/opt/csw/lib
++
++LIBGIT_PATH=/opt/csw/lib/git/libgit.a
++
++# Common
++CFLAGS += -I/opt/csw/include
++CFLAGS += -I/opt/csw/include/git
++
++LDFLAGS += -L/opt/csw/lib
++LDFLAGS += -L/opt/csw/lib/git
++
++# Solaris
++EXTLIBS = -lsocket -lnsl -lgit -lxdiff
++NEEDS_LIBICONV=1
++NO_STRCASESTR=1
++
++# OpenCSW
++CGIT_SCRIPT_PATH = /opt/csw/libexec/cgit
++CGIT_DATA_PATH = /opt/csw/share/cgit/httpd
++CGIT_CONFIG = /etc/opt/csw/cgit/cgitrc
++CACHE_ROOT = /var/opt/csw/cgit/cache
++
++INSTALL = /usr/ucb/install

Added: csw/mgar/pkg/cgit/trunk/files/apache.conf.CSW
===================================================================
--- csw/mgar/pkg/cgit/trunk/files/apache.conf.CSW	                        (rev 0)
+++ csw/mgar/pkg/cgit/trunk/files/apache.conf.CSW	2009-09-18 11:56:59 UTC (rev 6344)
@@ -0,0 +1,12 @@
+<Directory "/opt/csw/libexec/cgit">
+  AllowOverride None
+  Options ExecCGI
+  Order allow,deny
+  Allow from all
+</Directory>
+
+<Directory "/opt/csw/share/cgit/httpd">
+  AllowOverride None
+  Order allow,deny
+  Allow from all
+</Directory>

Added: csw/mgar/pkg/cgit/trunk/files/cgitrc.CSW
===================================================================
--- csw/mgar/pkg/cgit/trunk/files/cgitrc.CSW	                        (rev 0)
+++ csw/mgar/pkg/cgit/trunk/files/cgitrc.CSW	2009-09-18 11:56:59 UTC (rev 6344)
@@ -0,0 +1,12 @@
+cache-size=1000
+
+snapshots=tar.gz tar.bz2 zip
+
+#scan-path=/var/opt/csw/gitosis/repositories
+
+repo.url=cgit
+repo.path=/home/trygvis/dev/net.hjemli/cgit/.git
+repo.desc=the master foo repository
+repo.owner=fooman at foobar.com
+repo.readme=info/web/about.html
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list