aboutsummaryrefslogtreecommitdiffstats
path: root/www/cgit/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'www/cgit/pkg')
-rw-r--r--www/cgit/pkg/CVS/Entries4
-rw-r--r--www/cgit/pkg/CVS/Repository1
-rw-r--r--www/cgit/pkg/CVS/Root1
-rw-r--r--www/cgit/pkg/CVS/Tag1
-rw-r--r--www/cgit/pkg/DESCR2
-rw-r--r--www/cgit/pkg/PLIST12
-rw-r--r--www/cgit/pkg/README74
7 files changed, 95 insertions, 0 deletions
diff --git a/www/cgit/pkg/CVS/Entries b/www/cgit/pkg/CVS/Entries
new file mode 100644
index 0000000..a242442
--- /dev/null
+++ b/www/cgit/pkg/CVS/Entries
@@ -0,0 +1,4 @@
+/DESCR/1.1.1.1/Sun Apr 3 10:27:24 2011//TOPENBSD_7_0
+/PLIST/1.6/Tue Sep 4 12:46:24 2018//TOPENBSD_7_0
+/README/1.5/Tue Sep 4 12:46:24 2018//TOPENBSD_7_0
+D
diff --git a/www/cgit/pkg/CVS/Repository b/www/cgit/pkg/CVS/Repository
new file mode 100644
index 0000000..079eb66
--- /dev/null
+++ b/www/cgit/pkg/CVS/Repository
@@ -0,0 +1 @@
+ports/www/cgit/pkg
diff --git a/www/cgit/pkg/CVS/Root b/www/cgit/pkg/CVS/Root
new file mode 100644
index 0000000..175df2f
--- /dev/null
+++ b/www/cgit/pkg/CVS/Root
@@ -0,0 +1 @@
+anoncvs@obsdacvs.cs.toronto.edu:/cvs
diff --git a/www/cgit/pkg/CVS/Tag b/www/cgit/pkg/CVS/Tag
new file mode 100644
index 0000000..19a080a
--- /dev/null
+++ b/www/cgit/pkg/CVS/Tag
@@ -0,0 +1 @@
+TOPENBSD_7_0
diff --git a/www/cgit/pkg/DESCR b/www/cgit/pkg/DESCR
new file mode 100644
index 0000000..f85c78a
--- /dev/null
+++ b/www/cgit/pkg/DESCR
@@ -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.
diff --git a/www/cgit/pkg/PLIST b/www/cgit/pkg/PLIST
new file mode 100644
index 0000000..a169153
--- /dev/null
+++ b/www/cgit/pkg/PLIST
@@ -0,0 +1,12 @@
+@comment $OpenBSD: PLIST,v 1.6 2018/09/04 12:46:24 espie Exp $
+@group daemon
+@bin cgi-bin/cgit.cgi
+@group
+cgit/
+cgit/cgit.css
+cgit/cgit.png
+cgit/favicon.ico
+cgit/robots.txt
+@cwd ${LOCALBASE}
+@man man/man5/cgitrc.5
+share/doc/pkg-readmes/${PKGSTEM}
diff --git a/www/cgit/pkg/README b/www/cgit/pkg/README
new file mode 100644
index 0000000..816ad9e
--- /dev/null
+++ b/www/cgit/pkg/README
@@ -0,0 +1,74 @@
+$OpenBSD: README,v 1.5 2018/09/04 12:46:24 espie Exp $
+
++-----------------------------------------------------------------------
+| Running ${PKGSTEM} on OpenBSD
++-----------------------------------------------------------------------
+
+Cgit config
+===========
+By default, the cgitrc config file is searched in ${PREFIX}/conf/cgitrc.
+Refer to cgitrc(5) for the syntax.
+
+Webserver config
+================
+
+OpenBSD httpd
+-------------
+server "default" {
+ listen on egress port 80
+
+ # don't serve static files from cgit CGI: cgit.css and cgit.png
+ location "/cgit.*" {
+ root "/cgit"
+ no fastcgi
+ }
+ root "/cgi-bin/cgit.cgi"
+ fastcgi socket "/run/slowcgi.sock"
+}
+
+Nginx
+-----
+An example nginx config snippet is provided below, to run with
+slowcgi:
+
+server {
+ server_name cgit.example.com;
+ access_log logs/cgit-access main;
+ error_log logs/cgit-error warn;
+ location ~ /cgit.(png|css) {
+ root /var/www/htdocs;
+ }
+ location / {
+ rewrite /(.*) /cgi-bin/cgit.cgi/$1;
+ }
+ location /cgi-bin/ {
+ fastcgi_pass unix:run/slowcgi.sock;
+ fastcgi_split_path_info ^(/cgi-bin/[^/]+)(.*);
+ fastcgi_param PATH_INFO $fastcgi_path_info;
+ include fastcgi_params;
+ }
+}
+
+Apache config
+-------------
+
+This config snippet works with Apache:
+
+ScriptAlias /cgit /cgi-bin/cgit.cgi
+<Location "/cgit">
+ AllowOverride None
+ Options +ExecCGI
+ Order allow,deny
+ Allow from all
+</Location>
+
+
+snapshots
+---------
+Nginx and OpenBSD httpd use chroot(2).
+
+For .tar.gz snapshot support a static binary in $chroot/bin/gzip is required.
+
+ cd /usr/src/usr.bin/compress
+ make clean && make LDFLAGS="-static -pie"
+ cp obj/compress $chroot/bin/gzip