SF.net SVN: gar:[22665] csw/mgar/pkg/cgit/trunk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Tue Dec 10 15:37:53 CET 2013


Revision: 22665
          http://gar.svn.sourceforge.net/gar/?rev=22665&view=rev
Author:   dmichelsen
Date:     2013-12-10 14:37:53 +0000 (Tue, 10 Dec 2013)
Log Message:
-----------
cgit/trunk: Update to 0.9.2, complete rework

Modified Paths:
--------------
    csw/mgar/pkg/cgit/trunk/Makefile
    csw/mgar/pkg/cgit/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/cgit/trunk/files/0001-Add-substitute-for-timegm-on-Solaris.patch
    csw/mgar/pkg/cgit/trunk/files/cgit.conf
    csw/mgar/pkg/cgit/trunk/files/config.mak.uname
    csw/mgar/pkg/cgit/trunk/files/httpd-cgit.conf.CSW

Removed Paths:
-------------
    csw/mgar/pkg/cgit/trunk/files/0001-cgit.conf
    csw/mgar/pkg/cgit/trunk/files/apache.conf.CSW

Modified: csw/mgar/pkg/cgit/trunk/Makefile
===================================================================
--- csw/mgar/pkg/cgit/trunk/Makefile	2013-12-10 11:16:18 UTC (rev 22664)
+++ csw/mgar/pkg/cgit/trunk/Makefile	2013-12-10 14:37:53 UTC (rev 22665)
@@ -1,69 +1,76 @@
 NAME = cgit
-VERSION = 0.8.3_opencsw_1
+VERSION = 0.9.2
 GARTYPE = v2
 
 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
 
-RUNTIME_DEP_PKGS_CSWcgit = CSWiconv CSWosslrt CSWzlib
+MASTER_SITES += http://git.zx2c4.com/cgit/snapshot/
+DISTFILES += $(NAME)-$(VERSION).tar.xz
 
-#MASTER_SITES = http://hjemli.net/git/cgit/snapshot/
-#DISTFILES = $(NAME)-$(VERSION).tar.gz
+MASTER_SITES += https://git-core.googlecode.com/files/
+DISTFILES += git-1.8.3.tar.gz
 
-# We define upstream file regex so we can be notifed of new upstream software release
-UFILES_REGEX = $(NAME)-(\d+(?:\.\d+)*).tar.gz
+DISTFILES += cgit.conf
+EXPANDVARS += cgit.conf
 
-GIT_REPOS  = git://github.com/trygvis/cgit.git
-#GIT_TREEISH_cgit = v$(VERSION)$(if $(PATCHLEVEL),-$(PATCHLEVEL))
-GIT_TREEISH_cgit.git = solaris
+# The existing one ends at Solaris 9, we added Solaris 10 and 11
+DISTFILES += config.mak.uname
 
-DISTFILES = apache.conf.CSW cgitrc.CSW
+DISTFILES += httpd-cgit.conf.CSW
+DISTFILES += cgitrc.CSW
 
-# The Makefile use "install" to install files but the Sun one is not really compatible
-PATH := /usr/ucb:$(PATH)
+PATCHFILES += 0001-Add-substitute-for-timegm-on-Solaris.patch
 
-# 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 = 
+PACKAGES += CSWcgit
+SPKG_DESC_CSWcgit = Web front-end for Git
+# PKGFILES is catchall
+RUNTIME_DEP_PKGS_CSWcgit += CSWlibintl8
+RUNTIME_DEP_PKGS_CSWcgit += CSWlibz1
+RUNTIME_DEP_PKGS_CSWcgit += CSWlibiconv2
+RUNTIME_DEP_PKGS_CSWcgit += CSWlibssl1-0-0
+RUNTIME_DEP_PKGS_CSWcgit += CSWperl
 
-PATCHFILES  = 0001-cgit.conf
+# This may be used with any other webserver, just preconfigured for apache
+CHECKPKG_OVERRIDES_CSWcgit += missing-dependency|CSWapache2
 
+PRESERVECONF += $(sysconfdir)/cgitrc
+PRESERVECONF += $(prefix)/apache2/etc/extra/httpd-cgit.conf
+
+GARCOMPILER = GNU
+
+# There is no configure step
 CONFIGURE_SCRIPTS = 
 
-# Disable tests for now, need a round GNU'ism removal there too
-TEST_SCRIPTS =
+BUILD_ARGS += V=1
 
+TEST_TARGET = test
+# Tetsuite has major problems on this platform due to shell and calling conventions
+SKIPTEST ?= 1
+
+INSTALL_ENV_PATH = /opt/csw/gnu:$(PATH)
+
 # pdf-doc does not work yet
-INSTALL_ARGS += man-doc html-doc
+INSTALL_ARGS += install install-man install-html
 
-PRESERVECONF  = /etc/opt/csw/cgit/apache.conf
-PRESERVECONF += /etc/opt/csw/cgit/cgitrc
+include gar/category.mk
 
-# Trick to get the gar+git support to export the source code
-pre-extract-modulated: git-extract-cgit
+post-extract:
+	@# Link in GIT
+	rmdir $(WORKSRC)/git
+	mv $(WORKDIR)/git-1.8.3 $(WORKSRC)/git
+	cp $(WORKDIR)/config.mak.uname $(WORKSRC)/git/config.mak.uname
+	@$(MAKECOOKIE)
 
-post-install-modulated:
-	@mkdir -p $(DESTDIR)/etc/opt/csw/cgit
-	@mkdir -p $(DESTDIR)/opt/csw/share/man/man5
-	@mkdir -p $(DESTDIR)/opt/csw/share/doc/cgit
-	@cp $(FILEDIR)/apache.conf.CSW \
-		$(FILEDIR)/cgitrc.CSW \
-		$(DESTDIR)/etc/opt/csw/cgit/
-	@cp $(WORKSRC)/cgitrc.5 $(DESTDIR)/opt/csw/share/man/man5
-	@cp $(WORKSRC)/cgitrc.5.txt $(DESTDIR)/opt/csw/share/doc/cgit
-	@cp $(WORKSRC)/cgitrc.5.html $(DESTDIR)/opt/csw/share/doc/cgit
-#	@cp $(WORKSRC)/cgitrc.5.pdf $(DESTDIR)/opt/csw/share/doc/cgit
+post-patch:
+	@# EXPANDVARS is done at patch phase
+	cp $(WORKDIR)/cgit.conf $(WORKSRC)/cgit.conf
 	@$(MAKECOOKIE)
 
-include gar/category.mk
+post-install:
+	ginstall -D $(WORKDIR)/cgitrc.CSW $(DESTDIR)$(sysconfdir)
+	ginstall -D $(WORKDIR)/httpd-cgit.conf.CSW $(DESTDIR)$(prefix)/apache2/etc/extra/httpd-cgit.conf.CSW
+	mkdir -p $(DESTDIR)$(prefix)/apache2/share/htdocs
+	ln -s ../../../share/www/cgit/htdocs $(DESTDIR)$(prefix)/apache2/share/htdocs/cgit
+	mkdir -p $(DESTDIR)$(prefix)/apache2/share/cgi-bin
+	ln -s ../../../share/www/cgit/cgi-bin $(DESTDIR)$(prefix)/apache2/share/cgi-bin/cgit
+	@$(MAKECOOKIE)

Modified: csw/mgar/pkg/cgit/trunk/checksums
===================================================================
--- csw/mgar/pkg/cgit/trunk/checksums	2013-12-10 11:16:18 UTC (rev 22664)
+++ csw/mgar/pkg/cgit/trunk/checksums	2013-12-10 14:37:53 UTC (rev 22665)
@@ -1,3 +1,2 @@
-5bce8ac0de1a5e08e864c56c56906233  0001-cgit.conf
-27ef98eeb9066a301e60def5b6895a2c  apache.conf.CSW
-03d013bbfdad0143ddcb4c29acf1b637  cgitrc.CSW
+fe11018eff8d79caad112f4fac64b90f  cgit-0.9.2.tar.xz
+d91b6099fb6763cf92c696977a247060  git-1.8.3.tar.gz

Added: csw/mgar/pkg/cgit/trunk/files/0001-Add-substitute-for-timegm-on-Solaris.patch
===================================================================
--- csw/mgar/pkg/cgit/trunk/files/0001-Add-substitute-for-timegm-on-Solaris.patch	                        (rev 0)
+++ csw/mgar/pkg/cgit/trunk/files/0001-Add-substitute-for-timegm-on-Solaris.patch	2013-12-10 14:37:53 UTC (rev 22665)
@@ -0,0 +1,51 @@
+From 4a79c7edf62b0fa5d8903d413f76649fc67274ec Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Mon, 9 Dec 2013 13:55:04 +0100
+Subject: [PATCH] Add substitute for timegm on Solaris
+
+---
+ ui-stats.c | 28 ++++++++++++++++++++++++++++
+ 1 file changed, 28 insertions(+)
+
+diff --git a/ui-stats.c b/ui-stats.c
+index 28b794f..9e3c848 100644
+--- a/ui-stats.c
++++ b/ui-stats.c
+@@ -19,6 +19,34 @@ struct authorstat {
+ #define DAY_SECS (60 * 60 * 24)
+ #define WEEK_SECS (DAY_SECS * 7)
+ 
++ time_t timegm(struct tm *t)
++{
++  time_t tl, tb;
++  struct tm *tg;
++
++  tl = mktime (t);
++  if (tl == -1)
++    {
++      t->tm_hour--;
++      tl = mktime (t);
++      if (tl == -1)
++        return -1; /* can't deal with output from strptime */
++      tl += 3600;
++    }
++  tg = gmtime (&tl);
++  tg->tm_isdst = 0;
++  tb = mktime (tg);
++  if (tb == -1)
++    {
++      tg->tm_hour--;
++      tb = mktime (tg);
++      if (tb == -1)
++        return -1; /* can't deal with output from gmtime */
++      tb += 3600;
++    }
++  return (tl - (tb - tl));
++}
++
+ static void trunc_week(struct tm *tm)
+ {
+ 	time_t t = timegm(tm);
+-- 
+1.8.4.1
+

Deleted: csw/mgar/pkg/cgit/trunk/files/0001-cgit.conf
===================================================================
--- csw/mgar/pkg/cgit/trunk/files/0001-cgit.conf	2013-12-10 11:16:18 UTC (rev 22664)
+++ csw/mgar/pkg/cgit/trunk/files/0001-cgit.conf	2013-12-10 14:37:53 UTC (rev 22665)
@@ -1,34 +0,0 @@
---- 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,31 @@
-+# Sun Studio
-+CFLAGS += -DNO_SETENV
-+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

Deleted: csw/mgar/pkg/cgit/trunk/files/apache.conf.CSW
===================================================================
--- csw/mgar/pkg/cgit/trunk/files/apache.conf.CSW	2013-12-10 11:16:18 UTC (rev 22664)
+++ csw/mgar/pkg/cgit/trunk/files/apache.conf.CSW	2013-12-10 14:37:53 UTC (rev 22665)
@@ -1,12 +0,0 @@
-<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/cgit.conf
===================================================================
--- csw/mgar/pkg/cgit/trunk/files/cgit.conf	                        (rev 0)
+++ csw/mgar/pkg/cgit/trunk/files/cgit.conf	2013-12-10 14:37:53 UTC (rev 22665)
@@ -0,0 +1,10 @@
+CC = @CC@
+CFLAGS = @CFLAGS@
+LDFLAGS = @LDFLAGS@
+
+CGIT_SCRIPT_PATH = @sharedstatedir@/www/cgit/cgi-bin
+CGIT_DATA_PATH = @sharedstatedir@/www/cgit/htdocs
+CGIT_CONFIG = @sysconfdir@/cgitrc
+CACHE_ROOT = @localstatedir@/cgit/cache
+
+prefix = @prefix@

Added: csw/mgar/pkg/cgit/trunk/files/config.mak.uname
===================================================================
--- csw/mgar/pkg/cgit/trunk/files/config.mak.uname	                        (rev 0)
+++ csw/mgar/pkg/cgit/trunk/files/config.mak.uname	2013-12-10 14:37:53 UTC (rev 22665)
@@ -0,0 +1,549 @@
+# Platform specific Makefile tweaks based on uname detection
+
+uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
+uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not')
+uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')
+uname_R := $(shell sh -c 'uname -r 2>/dev/null || echo not')
+uname_P := $(shell sh -c 'uname -p 2>/dev/null || echo not')
+uname_V := $(shell sh -c 'uname -v 2>/dev/null || echo not')
+
+ifdef MSVC
+	# avoid the MingW and Cygwin configuration sections
+	uname_S := Windows
+	uname_O := Windows
+endif
+
+# We choose to avoid "if .. else if .. else .. endif endif"
+# because maintaining the nesting to match is a pain.  If
+# we had "elif" things would have been much nicer...
+
+ifeq ($(uname_M),x86_64)
+	XDL_FAST_HASH = YesPlease
+endif
+ifeq ($(uname_S),OSF1)
+	# Need this for u_short definitions et al
+	BASIC_CFLAGS += -D_OSF_SOURCE
+	SOCKLEN_T = int
+	NO_STRTOULL = YesPlease
+	NO_NSEC = YesPlease
+endif
+ifeq ($(uname_S),Linux)
+	NO_STRLCPY = YesPlease
+	NO_MKSTEMPS = YesPlease
+	HAVE_PATHS_H = YesPlease
+	LIBC_CONTAINS_LIBINTL = YesPlease
+	HAVE_DEV_TTY = YesPlease
+endif
+ifeq ($(uname_S),GNU/kFreeBSD)
+	NO_STRLCPY = YesPlease
+	NO_MKSTEMPS = YesPlease
+	HAVE_PATHS_H = YesPlease
+	DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
+	LIBC_CONTAINS_LIBINTL = YesPlease
+endif
+ifeq ($(uname_S),UnixWare)
+	CC = cc
+	NEEDS_SOCKET = YesPlease
+	NEEDS_NSL = YesPlease
+	NEEDS_SSL_WITH_CRYPTO = YesPlease
+	NEEDS_LIBICONV = YesPlease
+	SHELL_PATH = /usr/local/bin/bash
+	NO_IPV6 = YesPlease
+	NO_HSTRERROR = YesPlease
+	NO_MKSTEMPS = YesPlease
+	BASIC_CFLAGS += -Kthread
+	BASIC_CFLAGS += -I/usr/local/include
+	BASIC_LDFLAGS += -L/usr/local/lib
+	INSTALL = ginstall
+	TAR = gtar
+	NO_STRCASESTR = YesPlease
+	NO_MEMMEM = YesPlease
+endif
+ifeq ($(uname_S),SCO_SV)
+	ifeq ($(uname_R),3.2)
+		CFLAGS = -O2
+	endif
+	ifeq ($(uname_R),5)
+		CC = cc
+		BASIC_CFLAGS += -Kthread
+	endif
+	NEEDS_SOCKET = YesPlease
+	NEEDS_NSL = YesPlease
+	NEEDS_SSL_WITH_CRYPTO = YesPlease
+	NEEDS_LIBICONV = YesPlease
+	SHELL_PATH = /usr/bin/bash
+	NO_IPV6 = YesPlease
+	NO_HSTRERROR = YesPlease
+	NO_MKSTEMPS = YesPlease
+	BASIC_CFLAGS += -I/usr/local/include
+	BASIC_LDFLAGS += -L/usr/local/lib
+	NO_STRCASESTR = YesPlease
+	NO_MEMMEM = YesPlease
+	INSTALL = ginstall
+	TAR = gtar
+endif
+ifeq ($(uname_S),Darwin)
+	NEEDS_CRYPTO_WITH_SSL = YesPlease
+	NEEDS_SSL_WITH_CRYPTO = YesPlease
+	NEEDS_LIBICONV = YesPlease
+	ifeq ($(shell expr "$(uname_R)" : '[15678]\.'),2)
+		OLD_ICONV = UnfortunatelyYes
+	endif
+	ifeq ($(shell expr "$(uname_R)" : '[15]\.'),2)
+		NO_STRLCPY = YesPlease
+	endif
+	NO_MEMMEM = YesPlease
+	USE_ST_TIMESPEC = YesPlease
+	HAVE_DEV_TTY = YesPlease
+	COMPAT_OBJS += compat/precompose_utf8.o
+	BASIC_CFLAGS += -DPRECOMPOSE_UNICODE
+endif
+ifeq ($(uname_S),SunOS)
+	NEEDS_SOCKET = YesPlease
+	NEEDS_NSL = YesPlease
+	SHELL_PATH = /bin/bash
+	SANE_TOOL_PATH = /usr/xpg6/bin:/usr/xpg4/bin
+	NO_STRCASESTR = YesPlease
+	NO_MEMMEM = YesPlease
+	NO_MKDTEMP = YesPlease
+	NO_MKSTEMPS = YesPlease
+	NO_REGEX = YesPlease
+	NO_FNMATCH_CASEFOLD = YesPlease
+	NO_MSGFMT_EXTENDED_OPTIONS = YesPlease
+	HAVE_DEV_TTY = YesPlease
+	ifeq ($(uname_R),5.6)
+		SOCKLEN_T = int
+		NO_HSTRERROR = YesPlease
+		NO_IPV6 = YesPlease
+		NO_SOCKADDR_STORAGE = YesPlease
+		NO_UNSETENV = YesPlease
+		NO_SETENV = YesPlease
+		NO_STRLCPY = YesPlease
+		NO_STRTOUMAX = YesPlease
+		GIT_TEST_CMP = cmp
+	endif
+	ifeq ($(uname_R),5.7)
+		NEEDS_RESOLV = YesPlease
+		NO_IPV6 = YesPlease
+		NO_SOCKADDR_STORAGE = YesPlease
+		NO_UNSETENV = YesPlease
+		NO_SETENV = YesPlease
+		NO_STRLCPY = YesPlease
+		NO_STRTOUMAX = YesPlease
+		GIT_TEST_CMP = cmp
+	endif
+	ifeq ($(uname_R),5.8)
+		NO_UNSETENV = YesPlease
+		NO_SETENV = YesPlease
+		NO_STRTOUMAX = YesPlease
+		GIT_TEST_CMP = cmp
+	endif
+	ifeq ($(uname_R),5.9)
+		NO_UNSETENV = YesPlease
+		NO_SETENV = YesPlease
+		NO_STRTOUMAX = YesPlease
+		GIT_TEST_CMP = cmp
+	endif
+	ifeq ($(uname_R),5.10)
+		NEEDS_LIBICONV=YesPlease
+		GIT_TEST_CMP = cmp
+	endif
+	ifeq ($(uname_R),5.11)
+		NEEDS_LIBICONV=YesPlease
+		GIT_TEST_CMP = cmp
+	endif
+	INSTALL = /usr/ucb/install
+	TAR = gtar
+	BASIC_CFLAGS += -D__EXTENSIONS__ -D__sun__ -DHAVE_ALLOCA_H
+endif
+ifeq ($(uname_O),Cygwin)
+	ifeq ($(shell expr "$(uname_R)" : '1\.[1-6]\.'),4)
+		NO_D_TYPE_IN_DIRENT = YesPlease
+		NO_D_INO_IN_DIRENT = YesPlease
+		NO_STRCASESTR = YesPlease
+		NO_MEMMEM = YesPlease
+		NO_MKSTEMPS = YesPlease
+		NO_SYMLINK_HEAD = YesPlease
+		NO_IPV6 = YesPlease
+		OLD_ICONV = UnfortunatelyYes
+		CYGWIN_V15_WIN32API = YesPlease
+	endif
+	NO_THREAD_SAFE_PREAD = YesPlease
+	NEEDS_LIBICONV = YesPlease
+	NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes
+	NO_TRUSTABLE_FILEMODE = UnfortunatelyYes
+	NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
+	# There are conflicting reports about this.
+	# On some boxes NO_MMAP is needed, and not so elsewhere.
+	# Try commenting this out if you suspect MMAP is more efficient
+	NO_MMAP = YesPlease
+	X = .exe
+	COMPAT_OBJS += compat/cygwin.o
+	UNRELIABLE_FSTAT = UnfortunatelyYes
+	SPARSE_FLAGS = -isystem /usr/include/w32api -Wno-one-bit-signed-bitfield
+endif
+ifeq ($(uname_S),FreeBSD)
+	NEEDS_LIBICONV = YesPlease
+	OLD_ICONV = YesPlease
+	NO_MEMMEM = YesPlease
+	BASIC_CFLAGS += -I/usr/local/include
+	BASIC_LDFLAGS += -L/usr/local/lib
+	DIR_HAS_BSD_GROUP_SEMANTICS = YesPlease
+	USE_ST_TIMESPEC = YesPlease
+	ifeq ($(shell expr "$(uname_R)" : '4\.'),2)
+		PTHREAD_LIBS = -pthread
+		NO_UINTMAX_T = YesPlease
+		NO_STRTOUMAX = YesPlease
+	endif
+	PYTHON_PATH = /usr/local/bin/python
+	HAVE_PATHS_H = YesPlease
+endif
+ifeq ($(uname_S),OpenBSD)
+	NO_STRCASESTR = YesPlease
+	NO_MEMMEM = YesPlease
+	USE_ST_TIMESPEC = YesPlease
+	NEEDS_LIBICONV = YesPlease
+	BASIC_CFLAGS += -I/usr/local/include
+	BASIC_LDFLAGS += -L/usr/local/lib
+	HAVE_PATHS_H = YesPlease
+endif
+ifeq ($(uname_S),NetBSD)
+	ifeq ($(shell expr "$(uname_R)" : '[01]\.'),2)
+		NEEDS_LIBICONV = YesPlease
+	endif
+	BASIC_CFLAGS += -I/usr/pkg/include
+	BASIC_LDFLAGS += -L/usr/pkg/lib $(CC_LD_DYNPATH)/usr/pkg/lib
+	USE_ST_TIMESPEC = YesPlease
+	NO_MKSTEMPS = YesPlease
+	HAVE_PATHS_H = YesPlease
+endif
+ifeq ($(uname_S),AIX)
+	DEFAULT_PAGER = more
+	NO_STRCASESTR = YesPlease
+	NO_MEMMEM = YesPlease
+	NO_MKDTEMP = YesPlease
+	NO_MKSTEMPS = YesPlease
+	NO_STRLCPY = YesPlease
+	NO_NSEC = YesPlease
+	FREAD_READS_DIRECTORIES = UnfortunatelyYes
+	INTERNAL_QSORT = UnfortunatelyYes
+	NEEDS_LIBICONV = YesPlease
+	BASIC_CFLAGS += -D_LARGE_FILES
+	ifeq ($(shell expr "$(uname_V)" : '[1234]'),1)
+		NO_PTHREADS = YesPlease
+	else
+		PTHREAD_LIBS = -lpthread
+	endif
+	ifeq ($(shell expr "$(uname_V).$(uname_R)" : '5\.1'),3)
+		INLINE = ''
+	endif
+	GIT_TEST_CMP = cmp
+endif
+ifeq ($(uname_S),GNU)
+	# GNU/Hurd
+	NO_STRLCPY = YesPlease
+	NO_MKSTEMPS = YesPlease
+	HAVE_PATHS_H = YesPlease
+	LIBC_CONTAINS_LIBINTL = YesPlease
+endif
+ifeq ($(uname_S),IRIX)
+	NO_SETENV = YesPlease
+	NO_UNSETENV = YesPlease
+	NO_STRCASESTR = YesPlease
+	NO_MEMMEM = YesPlease
+	NO_MKSTEMPS = YesPlease
+	NO_MKDTEMP = YesPlease
+	# When compiled with the MIPSpro 7.4.4m compiler, and without pthreads
+	# (i.e. NO_PTHREADS is set), and _with_ MMAP (i.e. NO_MMAP is not set),
+	# git dies with a segmentation fault when trying to access the first
+	# entry of a reflog.  The conservative choice is made to always set
+	# NO_MMAP.  If you suspect that your compiler is not affected by this
+	# issue, comment out the NO_MMAP statement.
+	NO_MMAP = YesPlease
+	NO_REGEX = YesPlease
+	NO_FNMATCH_CASEFOLD = YesPlease
+	SNPRINTF_RETURNS_BOGUS = YesPlease
+	SHELL_PATH = /usr/gnu/bin/bash
+	NEEDS_LIBGEN = YesPlease
+endif
+ifeq ($(uname_S),IRIX64)
+	NO_SETENV = YesPlease
+	NO_UNSETENV = YesPlease
+	NO_STRCASESTR = YesPlease
+	NO_MEMMEM = YesPlease
+	NO_MKSTEMPS = YesPlease
+	NO_MKDTEMP = YesPlease
+	# When compiled with the MIPSpro 7.4.4m compiler, and without pthreads
+	# (i.e. NO_PTHREADS is set), and _with_ MMAP (i.e. NO_MMAP is not set),
+	# git dies with a segmentation fault when trying to access the first
+	# entry of a reflog.  The conservative choice is made to always set
+	# NO_MMAP.  If you suspect that your compiler is not affected by this
+	# issue, comment out the NO_MMAP statement.
+	NO_MMAP = YesPlease
+	NO_REGEX = YesPlease
+	NO_FNMATCH_CASEFOLD = YesPlease
+	SNPRINTF_RETURNS_BOGUS = YesPlease
+	SHELL_PATH = /usr/gnu/bin/bash
+	NEEDS_LIBGEN = YesPlease
+endif
+ifeq ($(uname_S),HP-UX)
+	INLINE = __inline
+	NO_IPV6 = YesPlease
+	NO_SETENV = YesPlease
+	NO_STRCASESTR = YesPlease
+	NO_MEMMEM = YesPlease
+	NO_MKSTEMPS = YesPlease
+	NO_STRLCPY = YesPlease
+	NO_MKDTEMP = YesPlease
+	NO_UNSETENV = YesPlease
+	NO_HSTRERROR = YesPlease
+	NO_SYS_SELECT_H = YesPlease
+	NO_FNMATCH_CASEFOLD = YesPlease
+	SNPRINTF_RETURNS_BOGUS = YesPlease
+	NO_NSEC = YesPlease
+	ifeq ($(uname_R),B.11.00)
+		NO_INET_NTOP = YesPlease
+		NO_INET_PTON = YesPlease
+	endif
+	ifeq ($(uname_R),B.10.20)
+		# Override HP-UX 11.x setting:
+		INLINE =
+		SOCKLEN_T = size_t
+		NO_PREAD = YesPlease
+		NO_INET_NTOP = YesPlease
+		NO_INET_PTON = YesPlease
+	endif
+	GIT_TEST_CMP = cmp
+endif
+ifeq ($(uname_S),Windows)
+	GIT_VERSION := $(GIT_VERSION).MSVC
+	pathsep = ;
+	NO_PREAD = YesPlease
+	NEEDS_CRYPTO_WITH_SSL = YesPlease
+	NO_LIBGEN_H = YesPlease
+	NO_POLL = YesPlease
+	NO_SYMLINK_HEAD = YesPlease
+	NO_IPV6 = YesPlease
+	NO_UNIX_SOCKETS = YesPlease
+	NO_SETENV = YesPlease
+	NO_UNSETENV = YesPlease
+	NO_STRCASESTR = YesPlease
+	NO_STRLCPY = YesPlease
+	NO_FNMATCH = YesPlease
+	NO_MEMMEM = YesPlease
+	# NEEDS_LIBICONV = YesPlease
+	NO_ICONV = YesPlease
+	NO_STRTOUMAX = YesPlease
+	NO_MKDTEMP = YesPlease
+	NO_MKSTEMPS = YesPlease
+	SNPRINTF_RETURNS_BOGUS = YesPlease
+	NO_SVN_TESTS = YesPlease
+	NO_PERL_MAKEMAKER = YesPlease
+	RUNTIME_PREFIX = YesPlease
+	NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
+	NO_NSEC = YesPlease
+	USE_WIN32_MMAP = YesPlease
+	# USE_NED_ALLOCATOR = YesPlease
+	UNRELIABLE_FSTAT = UnfortunatelyYes
+	OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
+	NO_REGEX = YesPlease
+	NO_CURL = YesPlease
+	NO_PYTHON = YesPlease
+	BLK_SHA1 = YesPlease
+	ETAGS_TARGET = ETAGS
+	NO_INET_PTON = YesPlease
+	NO_INET_NTOP = YesPlease
+	NO_POSIX_GOODIES = UnfortunatelyYes
+	NATIVE_CRLF = YesPlease
+	DEFAULT_HELP_FORMAT = html
+
+	CC = compat/vcbuild/scripts/clink.pl
+	AR = compat/vcbuild/scripts/lib.pl
+	CFLAGS =
+	BASIC_CFLAGS = -nologo -I. -I../zlib -Icompat/vcbuild -Icompat/vcbuild/include -DWIN32 -D_CONSOLE -DHAVE_STRING_H -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE
+	COMPAT_OBJS = compat/msvc.o compat/winansi.o \
+		compat/win32/pthread.o compat/win32/syslog.o \
+		compat/win32/dirent.o
+	COMPAT_CFLAGS = -D__USE_MINGW_ACCESS -DNOGDI -DHAVE_STRING_H -DHAVE_ALLOCA_H -Icompat -Icompat/regex -Icompat/win32 -DSTRIP_EXTENSION=\".exe\"
+	BASIC_LDFLAGS = -IGNORE:4217 -IGNORE:4049 -NOLOGO -SUBSYSTEM:CONSOLE -NODEFAULTLIB:MSVCRT.lib
+	EXTLIBS = user32.lib advapi32.lib shell32.lib wininet.lib ws2_32.lib
+	PTHREAD_LIBS =
+	lib =
+ifndef DEBUG
+	BASIC_CFLAGS += -GL -Os -MT
+	BASIC_LDFLAGS += -LTCG
+	AR += -LTCG
+else
+	BASIC_CFLAGS += -Zi -MTd
+endif
+	X = .exe
+endif
+ifeq ($(uname_S),Interix)
+	NO_INITGROUPS = YesPlease
+	NO_IPV6 = YesPlease
+	NO_MEMMEM = YesPlease
+	NO_MKDTEMP = YesPlease
+	NO_STRTOUMAX = YesPlease
+	NO_NSEC = YesPlease
+	NO_MKSTEMPS = YesPlease
+	ifeq ($(uname_R),3.5)
+		NO_INET_NTOP = YesPlease
+		NO_INET_PTON = YesPlease
+		NO_SOCKADDR_STORAGE = YesPlease
+		NO_FNMATCH_CASEFOLD = YesPlease
+	endif
+	ifeq ($(uname_R),5.2)
+		NO_INET_NTOP = YesPlease
+		NO_INET_PTON = YesPlease
+		NO_SOCKADDR_STORAGE = YesPlease
+		NO_FNMATCH_CASEFOLD = YesPlease
+	endif
+endif
+ifeq ($(uname_S),Minix)
+	NO_IPV6 = YesPlease
+	NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
+	NO_NSEC = YesPlease
+	NEEDS_LIBGEN =
+	NEEDS_CRYPTO_WITH_SSL = YesPlease
+	NEEDS_IDN_WITH_CURL = YesPlease
+	NEEDS_SSL_WITH_CURL = YesPlease
+	NEEDS_RESOLV =
+	NO_HSTRERROR = YesPlease
+	NO_MMAP = YesPlease
+	NO_CURL =
+	NO_EXPAT =
+endif
+ifeq ($(uname_S),NONSTOP_KERNEL)
+	# Needs some C99 features, "inline" is just one of them.
+	# INLINE='' would just replace one set of warnings with another and
+	# still not compile in c89 mode, due to non-const array initializations.
+	CC = cc -c99
+	# Disable all optimization, seems to result in bad code, with -O or -O2
+	# or even -O1 (default), /usr/local/libexec/git-core/git-pack-objects
+	# abends on "git push". Needs more investigation.
+	CFLAGS = -g -O0
+	# We'd want it to be here.
+	prefix = /usr/local
+	# Our's are in ${prefix}/bin (perl might also be in /usr/bin/perl).
+	PERL_PATH = ${prefix}/bin/perl
+	PYTHON_PATH = ${prefix}/bin/python
+
+	# As detected by './configure'.
+	# Missdetected, hence commented out, see below.
+	#NO_CURL = YesPlease
+	# Added manually, see above.
+	NEEDS_SSL_WITH_CURL = YesPlease
+	HAVE_LIBCHARSET_H = YesPlease
+	HAVE_STRINGS_H = YesPlease
+	NEEDS_LIBICONV = YesPlease
+	NEEDS_LIBINTL_BEFORE_LIBICONV = YesPlease
+	NO_SYS_SELECT_H = UnfortunatelyYes
+	NO_D_TYPE_IN_DIRENT = YesPlease
+	NO_HSTRERROR = YesPlease
+	NO_STRCASESTR = YesPlease
+	NO_FNMATCH_CASEFOLD = YesPlease
+	NO_MEMMEM = YesPlease
+	NO_STRLCPY = YesPlease
+	NO_SETENV = YesPlease
+	NO_UNSETENV = YesPlease
+	NO_MKDTEMP = YesPlease
+	NO_MKSTEMPS = YesPlease
+	# Currently libiconv-1.9.1.
+	OLD_ICONV = UnfortunatelyYes
+	NO_REGEX = YesPlease
+	NO_PTHREADS = UnfortunatelyYes
+
+	# Not detected (nor checked for) by './configure'.
+	# We don't have SA_RESTART on NonStop, unfortunalety.
+	COMPAT_CFLAGS += -DSA_RESTART=0
+	# Apparently needed in compat/fnmatch/fnmatch.c.
+	COMPAT_CFLAGS += -DHAVE_STRING_H=1
+	NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
+	NO_NSEC = YesPlease
+	NO_PREAD = YesPlease
+	NO_MMAP = YesPlease
+	NO_POLL = YesPlease
+	NO_INTPTR_T = UnfortunatelyYes
+	# Bug report 10-120822-4477 submitted to HP NonStop development.
+	MKDIR_WO_TRAILING_SLASH = YesPlease
+	# RFE 10-120912-4693 submitted to HP NonStop development.
+	NO_SETITIMER = UnfortunatelyYes
+	SANE_TOOL_PATH = /usr/coreutils/bin:/usr/local/bin
+	SHELL_PATH = /usr/local/bin/bash
+	# as of H06.25/J06.14, we might better use this
+	#SHELL_PATH = /usr/coreutils/bin/bash
+endif
+ifneq (,$(findstring MINGW,$(uname_S)))
+	pathsep = ;
+	NO_PREAD = YesPlease
+	NEEDS_CRYPTO_WITH_SSL = YesPlease
+	NO_LIBGEN_H = YesPlease
+	NO_POLL = YesPlease
+	NO_SYMLINK_HEAD = YesPlease
+	NO_UNIX_SOCKETS = YesPlease
+	NO_SETENV = YesPlease
+	NO_UNSETENV = YesPlease
+	NO_STRCASESTR = YesPlease
+	NO_STRLCPY = YesPlease
+	NO_FNMATCH = YesPlease
+	NO_MEMMEM = YesPlease
+	NEEDS_LIBICONV = YesPlease
+	OLD_ICONV = YesPlease
+	NO_STRTOUMAX = YesPlease
+	NO_MKDTEMP = YesPlease
+	NO_MKSTEMPS = YesPlease
+	NO_SVN_TESTS = YesPlease
+	NO_PERL_MAKEMAKER = YesPlease
+	RUNTIME_PREFIX = YesPlease
+	NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
+	NO_NSEC = YesPlease
+	USE_WIN32_MMAP = YesPlease
+	USE_NED_ALLOCATOR = YesPlease
+	UNRELIABLE_FSTAT = UnfortunatelyYes
+	OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
+	NO_REGEX = YesPlease
+	NO_PYTHON = YesPlease
+	BLK_SHA1 = YesPlease
+	ETAGS_TARGET = ETAGS
+	NO_INET_PTON = YesPlease
+	NO_INET_NTOP = YesPlease
+	NO_POSIX_GOODIES = UnfortunatelyYes
+	COMPAT_CFLAGS += -D__USE_MINGW_ACCESS -DNOGDI -Icompat -Icompat/win32
+	COMPAT_CFLAGS += -DSTRIP_EXTENSION=\".exe\"
+	COMPAT_OBJS += compat/mingw.o compat/winansi.o \
+		compat/win32/pthread.o compat/win32/syslog.o \
+		compat/win32/dirent.o
+	EXTLIBS += -lws2_32
+	PTHREAD_LIBS =
+	NATIVE_CRLF = YesPlease
+	X = .exe
+	SPARSE_FLAGS = -Wno-one-bit-signed-bitfield
+ifneq (,$(wildcard ../THIS_IS_MSYSGIT))
+	htmldir = doc/git/html/
+	prefix =
+	INSTALL = /bin/install
+	EXTLIBS += /mingw/lib/libz.a
+	NO_R_TO_GCC_LINKER = YesPlease
+	INTERNAL_QSORT = YesPlease
+	HAVE_LIBCHARSET_H = YesPlease
+else
+	NO_CURL = YesPlease
+endif
+endif
+ifeq ($(uname_S),QNX)
+	COMPAT_CFLAGS += -DSA_RESTART=0
+	EXPAT_NEEDS_XMLPARSE_H = YesPlease
+	HAVE_STRINGS_H = YesPlease
+	NEEDS_SOCKET = YesPlease
+	NO_FNMATCH_CASEFOLD = YesPlease
+	NO_GETPAGESIZE = YesPlease
+	NO_ICONV = YesPlease
+	NO_MEMMEM = YesPlease
+	NO_MKDTEMP = YesPlease
+	NO_MKSTEMPS = YesPlease
+	NO_NSEC = YesPlease
+	NO_PTHREADS = YesPlease
+	NO_R_TO_GCC_LINKER = YesPlease
+	NO_STRCASESTR = YesPlease
+	NO_STRLCPY = YesPlease
+endif

Copied: csw/mgar/pkg/cgit/trunk/files/httpd-cgit.conf.CSW (from rev 22420, csw/mgar/pkg/cgit/trunk/files/apache.conf.CSW)
===================================================================
--- csw/mgar/pkg/cgit/trunk/files/httpd-cgit.conf.CSW	                        (rev 0)
+++ csw/mgar/pkg/cgit/trunk/files/httpd-cgit.conf.CSW	2013-12-10 14:37:53 UTC (rev 22665)
@@ -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>

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