diff options
| author | la-ninpre <aaoth@aaoth.xyz> | 2023-04-27 00:56:41 +0300 |
|---|---|---|
| committer | la-ninpre <aaoth@aaoth.xyz> | 2023-04-27 00:56:41 +0300 |
| commit | 6fde0e3ec189ce2bd2fbc0ba5dd916846a1d7050 (patch) | |
| tree | 5031984846e3f91b07f93fcec75bd4ce801c0775 /www/cgit | |
| parent | 30dc46c16abf2486019d4a8aff3614e9ff4059f6 (diff) | |
| download | ports-6fde0e3ec189ce2bd2fbc0ba5dd916846a1d7050.tar.gz ports-6fde0e3ec189ce2bd2fbc0ba5dd916846a1d7050.zip | |
remove www/cgit and www/mycorrhiza
Diffstat (limited to 'www/cgit')
| -rw-r--r-- | www/cgit/Makefile | 37 | ||||
| -rw-r--r-- | www/cgit/distinfo | 4 | ||||
| -rw-r--r-- | www/cgit/patches/patch-Makefile | 31 | ||||
| -rw-r--r-- | www/cgit/patches/patch-cgit_mk | 11 | ||||
| -rw-r--r-- | www/cgit/patches/patch-filter_c | 20 | ||||
| -rw-r--r-- | www/cgit/patches/patch-setup_c | 22 | ||||
| -rw-r--r-- | www/cgit/pkg/DESCR | 2 | ||||
| -rw-r--r-- | www/cgit/pkg/PLIST | 12 | ||||
| -rw-r--r-- | www/cgit/pkg/README | 74 |
9 files changed, 0 insertions, 213 deletions
diff --git a/www/cgit/Makefile b/www/cgit/Makefile deleted file mode 100644 index 5eb017d..0000000 --- a/www/cgit/Makefile +++ /dev/null @@ -1,37 +0,0 @@ -COMMENT = web frontend for git repositories - -V = 1.2.3pl14 -DISTNAME = cgit-${V} -CATEGORIES = www devel - -# upstream has git 2.25.1 called out as the specific version to build against -# https://git.zx2c4.com/cgit/commit/?id=fde897b8171ed2e925b44ec6f69590ec07241017 -DISTFILES = ${DISTNAME}.tar.gz:0 \ - git-2.32.0.tar.gz:1 - -MASTER_SITES0 = https://git.aaoth.xyz/cgit.git/snapshot/ -MASTER_SITES1 = https://www.kernel.org/pub/software/scm/git/ -HOMEPAGE = https://git.zx2c4.com/cgit/about/ - -# GPLv2 -PERMIT_PACKAGE = Yes - -USE_GMAKE = yes - -BUILD_DEPENDS = textproc/asciidoc -LIB_DEPENDS = converters/libiconv - -PREFIX = ${VARBASE}/www -MAKE_FLAGS += V=1 NO_GETTEXT=1 NO_LUA=1 LDFLAGS+='${STATIC} -L${LOCALBASE}/lib' - -ALL_TARGET = all doc-man - -post-extract: - rmdir ${WRKSRC}/git - mv ${WRKDIR}/git-* ${WRKSRC}/git - -post-install: - mv ${PREFIX}/htdocs ${PREFIX}/cgit - ${INSTALL_MAN} ${WRKBUILD}/cgitrc.5 ${WRKINST}${LOCALBASE}/man/man5 - -.include <bsd.port.mk> diff --git a/www/cgit/distinfo b/www/cgit/distinfo deleted file mode 100644 index 3bfbcfc..0000000 --- a/www/cgit/distinfo +++ /dev/null @@ -1,4 +0,0 @@ -SHA256 (cgit-1.2.3pl14.tar.gz) = j2WElWPkvbRyj4Dq/HU/6IcSvsydIhCm8EFaBXi1lJ4= -SHA256 (git-2.32.0.tar.gz) = YDjwbTlrqdqy7uVBx9tuf5+Efxgexi89hEGJP4xGk5g= -SIZE (cgit-1.2.3pl14.tar.gz) = 129498 -SIZE (git-2.32.0.tar.gz) = 10321570 diff --git a/www/cgit/patches/patch-Makefile b/www/cgit/patches/patch-Makefile deleted file mode 100644 index f51ac50..0000000 --- a/www/cgit/patches/patch-Makefile +++ /dev/null @@ -1,31 +0,0 @@ -$OpenBSD: patch-Makefile,v 1.9 2018/08/04 09:19:35 kn Exp $ -Index: Makefile ---- Makefile.orig -+++ Makefile -@@ -2,11 +2,11 @@ all:: - - CGIT_VERSION = v1.2.3 - 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 --prefix = /usr/local -+CGIT_SCRIPT_PATH = /var/www/cgi-bin -+CGIT_DATA_PATH = /var/www/htdocs -+CGIT_CONFIG = /conf/cgitrc -+CACHE_ROOT = /tmp/cgit -+prefix = ${PREFIX} - libdir = $(prefix)/lib - filterdir = $(libdir)/cgit/filters - docdir = $(prefix)/share/doc/cgit -@@ -90,8 +90,6 @@ install: all - $(INSTALL) -m 0644 cgit.png $(DESTDIR)$(CGIT_DATA_PATH)/cgit.png - $(INSTALL) -m 0644 favicon.ico $(DESTDIR)$(CGIT_DATA_PATH)/favicon.ico - $(INSTALL) -m 0644 robots.txt $(DESTDIR)$(CGIT_DATA_PATH)/robots.txt - $(INSTALL) -m 0644 about.md $(DESTDIR)$(CGIT_DATA_PATH)/about.md -- $(INSTALL) -m 0755 -d $(DESTDIR)$(filterdir) -- $(COPYTREE) filters/* $(DESTDIR)$(filterdir) - - install-doc: install-man install-html install-pdf - diff --git a/www/cgit/patches/patch-cgit_mk b/www/cgit/patches/patch-cgit_mk deleted file mode 100644 index c74f62d..0000000 --- a/www/cgit/patches/patch-cgit_mk +++ /dev/null @@ -1,11 +0,0 @@ -$OpenBSD: patch-cgit_mk,v 1.1 2013/07/15 07:00:49 jasper Exp $ ---- cgit.mk.orig Sun Jul 14 23:18:05 2013 -+++ cgit.mk Sun Jul 14 23:18:39 2013 -@@ -17,6 +17,7 @@ $(CGIT_PREFIX)VERSION: force-version - - # CGIT_CFLAGS is a separate variable so that we can track it separately - # and avoid rebuilding all of Git when these variables change. -+CGIT_CFLAGS += -L${LOCALBASE}/include - CGIT_CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"' - CGIT_CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"' - CGIT_CFLAGS += -DCGIT_CACHE_ROOT='"$(CACHE_ROOT)"' diff --git a/www/cgit/patches/patch-filter_c b/www/cgit/patches/patch-filter_c deleted file mode 100644 index 20adde9..0000000 --- a/www/cgit/patches/patch-filter_c +++ /dev/null @@ -1,20 +0,0 @@ -$OpenBSD: patch-filter_c,v 1.3 2018/08/04 09:19:35 kn Exp $ -Wtf. -Index: filter.c ---- filter.c.orig -+++ filter.c -@@ -149,12 +149,13 @@ static struct cgit_filter *current_write_filter = NULL - - void cgit_init_filters(void) - { -+ return; - libc_write = dlsym(RTLD_NEXT, "write"); - if (!libc_write) - die("Could not locate libc's write function"); - } - --ssize_t write(int fd, const void *buf, size_t count) -+ssize_t wtf__write(int fd, const void *buf, size_t count) - { - if (fd != STDOUT_FILENO || !filter_write) - return libc_write(fd, buf, count); diff --git a/www/cgit/patches/patch-setup_c b/www/cgit/patches/patch-setup_c deleted file mode 100644 index c93edf7..0000000 --- a/www/cgit/patches/patch-setup_c +++ /dev/null @@ -1,22 +0,0 @@ -$OpenBSD: patch-setup_c,v 1.1 2017/03/22 20:23:52 landry Exp $ - -Dont openbsd dev/null, doesnt exist in the default chroot - ---- git/setup.c.orig Wed Mar 1 21:01:06 2017 -+++ git/setup.c Wed Mar 1 21:01:56 2017 -@@ -1024,6 +1024,7 @@ const char *resolve_gitdir(const char *suspect) - /* if any standard file descriptor is missing open it to /dev/null */ - void sanitize_stdfds(void) - { -+#if 0 - int fd = open("/dev/null", O_RDWR, 0); - while (fd != -1 && fd < 2) - fd = dup(fd); -@@ -1031,6 +1032,7 @@ void sanitize_stdfds(void) - die_errno("open /dev/null or dup failed"); - if (fd > 2) - close(fd); -+#endif - } - - int daemonize(void) diff --git a/www/cgit/pkg/DESCR b/www/cgit/pkg/DESCR deleted file mode 100644 index f85c78a..0000000 --- a/www/cgit/pkg/DESCR +++ /dev/null @@ -1,2 +0,0 @@ -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 deleted file mode 100644 index a169153..0000000 --- a/www/cgit/pkg/PLIST +++ /dev/null @@ -1,12 +0,0 @@ -@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 deleted file mode 100644 index 816ad9e..0000000 --- a/www/cgit/pkg/README +++ /dev/null @@ -1,74 +0,0 @@ -$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 |
