Import cgit 0.8.3.5:
cgit is a fast web interface for the git scm, using a builtin cache to decrease server io-pressure. With tweaks from and ok sthen@ jasper@
This commit is contained in:
parent
63fd810c25
commit
4384ef8d72
34
www/cgit/Makefile
Normal file
34
www/cgit/Makefile
Normal file
@ -0,0 +1,34 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2011/04/03 10:27:24 landry Exp $
|
||||
|
||||
COMMENT = web frontend for git repositories
|
||||
|
||||
DISTNAME = cgit-0.8.3.5
|
||||
CATEGORIES = www devel
|
||||
|
||||
MASTER_SITES = http://hjemli.net/git/cgit/snapshot/
|
||||
HOMEPAGE = http://hjemli.net/git/cgit/about/
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM = Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
USE_GMAKE = yes
|
||||
|
||||
MODULES = converters/libiconv
|
||||
BUILD_DEPENDS = devel/git:patch
|
||||
WANTLIB += c crypto pthread z
|
||||
|
||||
PREFIX = /var/www
|
||||
MAKE_FLAGS += V=1 NEEDS_LIBICONV=1 LDFLAGS+=-L${LOCALBASE}/lib
|
||||
|
||||
post-extract:
|
||||
rmdir ${WRKSRC}/git
|
||||
ln -s ${WRKDIR}/devel/git/git-* ${WRKSRC}/git
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/conf/modules.sample
|
||||
${INSTALL_DATA} ${FILESDIR}/cgit.conf ${PREFIX}/conf/modules.sample/cgit.conf.dist
|
||||
|
||||
.include <bsd.port.mk>
|
5
www/cgit/distinfo
Normal file
5
www/cgit/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (cgit-0.8.3.5.tar.gz) = xGFmxMaPfHeFpKjQwMRZWA==
|
||||
RMD160 (cgit-0.8.3.5.tar.gz) = ciBwIyMsaftwtuvhvUV7QYi4GAM=
|
||||
SHA1 (cgit-0.8.3.5.tar.gz) = sEGgYhJALPokm+xfeS2xs/G1ACI=
|
||||
SHA256 (cgit-0.8.3.5.tar.gz) = 0jxqee6kpPe8bNMRwbu0myglq+qHkGf102CVUYOhbYc=
|
||||
SIZE (cgit-0.8.3.5.tar.gz) = 64227
|
7
www/cgit/files/cgit.conf
Normal file
7
www/cgit/files/cgit.conf
Normal file
@ -0,0 +1,7 @@
|
||||
ScriptAlias /cgit /cgi-bin/cgit.cgi
|
||||
<Location "/cgit">
|
||||
AllowOverride None
|
||||
Options +ExecCGI
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
</Location>
|
25
www/cgit/patches/patch-Makefile
Normal file
25
www/cgit/patches/patch-Makefile
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2011/04/03 10:27:24 landry Exp $
|
||||
--- Makefile.orig Mon Sep 27 08:00:47 2010
|
||||
+++ Makefile Fri Feb 25 23:25:12 2011
|
||||
@@ -1,9 +1,9 @@
|
||||
CGIT_VERSION = v0.8.3.4
|
||||
CGIT_SCRIPT_NAME = cgit.cgi
|
||||
-CGIT_SCRIPT_PATH = /var/www/htdocs/cgit
|
||||
-CGIT_DATA_PATH = $(CGIT_SCRIPT_PATH)
|
||||
-CGIT_CONFIG = /etc/cgitrc
|
||||
-CACHE_ROOT = /var/cache/cgit
|
||||
+CGIT_SCRIPT_PATH = /var/www/cgi-bin
|
||||
+CGIT_DATA_PATH = /var/www/htdocs
|
||||
+CGIT_CONFIG = /conf/cgitrc
|
||||
+CACHE_ROOT = /tmp/cgit
|
||||
SHA1_HEADER = <openssl/sha.h>
|
||||
GIT_VER = 1.7.3
|
||||
GIT_URL = http://www.kernel.org/pub/software/scm/git/git-$(GIT_VER).tar.bz2
|
||||
@@ -111,6 +111,7 @@ VERSION: force-version
|
||||
|
||||
|
||||
CFLAGS += -g -Wall -Igit
|
||||
+CFLAGS += -I${LOCALBASE}/include
|
||||
CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER)'
|
||||
CFLAGS += -DCGIT_VERSION='"$(CGIT_VERSION)"'
|
||||
CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"'
|
2
www/cgit/pkg/DESCR
Normal file
2
www/cgit/pkg/DESCR
Normal file
@ -0,0 +1,2 @@
|
||||
This is an attempt to create a fast web interface for the git scm,
|
||||
using a builtin cache to decrease server io-pressure.
|
8
www/cgit/pkg/MESSAGE
Normal file
8
www/cgit/pkg/MESSAGE
Normal file
@ -0,0 +1,8 @@
|
||||
To enable cgit please create a symbolic link from
|
||||
${PREFIX}/conf/modules.sample/cgit.conf
|
||||
to ${PREFIX}/conf/modules/cgit.conf.
|
||||
|
||||
ln -s ../modules.sample/cgit.conf ${PREFIX}/conf/modules
|
||||
|
||||
By default, The cgitrc config file is searched in
|
||||
${PREFIX}/conf/cgitrc
|
7
www/cgit/pkg/PLIST
Normal file
7
www/cgit/pkg/PLIST
Normal file
@ -0,0 +1,7 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/04/03 10:27:24 landry Exp $
|
||||
@group daemon
|
||||
@bin cgi-bin/cgit.cgi
|
||||
conf/modules.sample/cgit.conf.dist
|
||||
@sample conf/modules.sample/cgit.conf
|
||||
htdocs/cgit.css
|
||||
htdocs/cgit.png
|
Loading…
x
Reference in New Issue
Block a user