From nobody Thu Feb 29 12:53:06 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tlrjv0Lwsz5C7hZ; Thu, 29 Feb 2024 12:53:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tlrjt4bZ7z4Rww; Thu, 29 Feb 2024 12:53:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709211186; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Hx+QKqL0HKpoYCiIVops4Y67HKByK49cErmGAcpZeWg=; b=WCekO5TQoIajfti8DxtmJSXAAbz+AnsF59WCxt4JkUBgGu5i00XpprACckKRq39x5wbLtI 4kfM5BaGPsphzU+f3VU7j6U+Tsp+cO5PXW+XUb0z7Inwjkasjcb8KZY5AQWJAGTlAsK378 EjJLo8FYP32rd7exVDAGziFEu5nlmKvKi9/ZnxP7vl2RJpuqXjhXZI6rTs6MerJd2mYVpP Y3ml8C9Ew7AKMPjajo6EwvAo/hf4QkAsDZj5HCVSVxUtyjOC4/uuy1xZmAiSXWBE7sZXXi FYNQ0E4iwYp+7xlodaLNM7TIxr3P56qgmfmvMZwACRM+fm2DYD3uL0Zr2j7mrQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709211186; a=rsa-sha256; cv=none; b=OpfFbrv+WlzbZydyqEX2RhGrZ9M/Sp5u13c4UHCGf4qlyylL5PfwFNoxCk2dQ/IKcaCgCV jfUaIvBBt3EpXKmPZAs3NKTPWBMjN9d6m98xfJrE+zpVkdxCHxGGYLLR2Ke6lXSp6++vx9 Nth3lZ+pa5o522sQQeeJVllQJ5ebX3okpB6d48I8rJRB0JsmKo/kpvDKaeDEnmOO8x5G+e mpMKOmrweUEEsuC/8Pd03IezPMWJ56z3Undu39ZFZl5cfHx4EjaQFZ61a25NfHrMQzwcol 4S7xOkC0eAz+2pDnOOHxvkxeAUop+yK7+XEoHhsidYoDfFxkP5NZjbioLbDo7Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709211186; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Hx+QKqL0HKpoYCiIVops4Y67HKByK49cErmGAcpZeWg=; b=ddRVoab3qviSeryXoujvikW00XJexl68uuoOaJp3pEfzNZB7Z61EVAiGlebmVkrKrzeP0f BHtozxP/9uNVZ9pcpSorLktpAM3A3A8xyua9JsUSWLypIFS+5m+xqiOZMdcvFmIU439yCe hrnqdtkDuO1RvC1Hxr5HSWdsSMQEF48rjRAvt/5wSZa0VmGvEm7xaw4dqq/ZKDaOBI5gD0 rSuyv5gM1kybzOqqYY4hxiolPgcyy61IB9ieqFZ1i/yltlnllUyQPwIxzS+wEru5YUuSdQ Gi8GRO/CfrUQ+LkG88UPB1Gg5KguJBaYQl9/c1X2k5gJbBJB7lGnNsn8UfSWoA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tlrjt44b9zjq4; Thu, 29 Feb 2024 12:53:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41TCr6kZ068326; Thu, 29 Feb 2024 12:53:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41TCr6wx068323; Thu, 29 Feb 2024 12:53:06 GMT (envelope-from git) Date: Thu, 29 Feb 2024 12:53:06 GMT Message-Id: <202402291253.41TCr6wx068323@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: e942ad46900f - main - www/cgichk: Remove expired port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e942ad46900f623ba33c901d1be1fcdc4bcb1f06 Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=e942ad46900f623ba33c901d1be1fcdc4bcb1f06 commit e942ad46900f623ba33c901d1be1fcdc4bcb1f06 Author: Muhammad Moinur Rahman AuthorDate: 2024-02-29 12:36:19 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2024-02-29 12:52:38 +0000 www/cgichk: Remove expired port www/cgichk --- MOVED | 1 + www/Makefile | 1 - www/cgichk/Makefile | 28 --------------------- www/cgichk/distinfo | 2 -- www/cgichk/files/patch-Makefile | 11 -------- www/cgichk/files/patch-cgichk.c | 56 ----------------------------------------- www/cgichk/files/patch-cgichk.h | 37 --------------------------- www/cgichk/files/patch-config.c | 19 -------------- www/cgichk/files/patch-misc.c | 32 ----------------------- www/cgichk/files/patch-net.c | 45 --------------------------------- www/cgichk/pkg-descr | 2 -- www/cgichk/pkg-plist | 2 -- 12 files changed, 1 insertion(+), 235 deletions(-) diff --git a/MOVED b/MOVED index 1232488582bd..658be9dbbdb5 100644 --- a/MOVED +++ b/MOVED @@ -3029,3 +3029,4 @@ security/fl0p||2024-02-29|Has expired: Abandonware, last release in 2006 and no security/libzrtpcppcore||2024-02-29|Has expired: Obscure protocol that never got any traction, superseded by SRTP security/pbc||2024-02-29|Has expired: Abandonware, last release in 2013 and no development since security/poly1305aes||2024-02-29|Has expired: Fails to build on Tier 1 and most other platforms +www/cgichk||2024-02-29|Has expired: Deprecated utility that checks a list of URLs and lacks HTTPS support diff --git a/www/Makefile b/www/Makefile index abd8f1dd9a23..c0ad78b5d5da 100644 --- a/www/Makefile +++ b/www/Makefile @@ -97,7 +97,6 @@ SUBDIR += cgi-lib SUBDIR += cgi-lib.pl SUBDIR += cgicc - SUBDIR += cgichk SUBDIR += cgiwrap SUBDIR += checkbot SUBDIR += chems diff --git a/www/cgichk/Makefile b/www/cgichk/Makefile deleted file mode 100644 index d65143f96867..000000000000 --- a/www/cgichk/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -PORTNAME= cgichk -PORTVERSION= 2.60 -PORTREVISION= 1 -CATEGORIES= www -MASTER_SITES= https://BSDforge.com/projects/source/www/cgichk/ - -LICENSE= GPLv2 - -MAINTAINER= ports@FreeBSD.org -COMMENT= Web site vulnerability scanner - -DEPRECATED= Deprecated utility that checks a list of URLs and lacks HTTPS support -EXPIRATION_DATE=2024-02-29 - -WRKSRC= ${WRKDIR}/${PORTNAME} -ALL_TARGET= cgichk - -post-patch: - ${REINPLACE_CMD} -e "s/^(CC|CFLAGS).+//g" ${WRKSRC}/Makefile - ${REINPLACE_CMD} -e \ - "s@/etc/@${PREFIX}/etc/@g; s/#include //g;" \ - ${WRKSRC}/cgichk.h - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/cgichk ${STAGEDIR}${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/cgichk.cfg ${STAGEDIR}${PREFIX}/etc/cgichk.cfg.sample - -.include diff --git a/www/cgichk/distinfo b/www/cgichk/distinfo deleted file mode 100644 index 8cd4496a84f3..000000000000 --- a/www/cgichk/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (cgichk-2.60.tar.gz) = 4d52fd7692c65eb1e4e009982f29eac1e0d98714418c0f16d4d41de5de181e62 -SIZE (cgichk-2.60.tar.gz) = 15972 diff --git a/www/cgichk/files/patch-Makefile b/www/cgichk/files/patch-Makefile deleted file mode 100644 index b3c8ec69a982..000000000000 --- a/www/cgichk/files/patch-Makefile +++ /dev/null @@ -1,11 +0,0 @@ ---- Makefile.orig 2011-09-06 11:10:37.000000000 +0800 -+++ Makefile 2011-09-06 11:10:42.000000000 +0800 -@@ -1,7 +1,7 @@ - # Where cgichk goes when user decides to install - INSTALLDIR=/usr/local/bin - --CC = gcc -+CC ?= gcc - OPTIONS = $(WINCRAP) - CFLAGS = -O2 -s $(OPTIONS) - OUTPUT = cgichk diff --git a/www/cgichk/files/patch-cgichk.c b/www/cgichk/files/patch-cgichk.c deleted file mode 100644 index 3061c03f19db..000000000000 --- a/www/cgichk/files/patch-cgichk.c +++ /dev/null @@ -1,56 +0,0 @@ ---- cgichk.c.orig 2001-04-06 16:36:25.000000000 +0800 -+++ cgichk.c 2011-09-06 11:29:49.000000000 +0800 -@@ -58,7 +58,7 @@ void check_dir_only() - CPRINT(" \r"); - CPRINT(" Looking for /%s\r", r->v[count]); - -- if (result = http_has(temp,0)) -+ if ((result = http_has(temp,0))) - { - CPRINT(" \r"); - PRINT(" Found /%s (%d) \n", r->v[count], result); -@@ -77,7 +77,7 @@ void check_hole(char *hole) - CPRINT(" \r"); - CPRINT(" Looking for %s\r", hole); - -- if (result = http_has(hole,0)) -+ if ((result = http_has(hole,0))) - { - CPRINT(" \r"); - PRINT(" Found %s (%d)\n",hole, result); -@@ -131,7 +131,7 @@ void check_interest() - - CPRINT(" Looking for /%s \r", r->v[y]); - -- if (result = http_has(temp,0)) // See if the directory exists, so no wasted time -+ if ((result = http_has(temp,0))) // See if the directory exists, so no wasted time - { - PRINT(" Found %s (%d) \n", temp, result); - BEEP(); -@@ -144,7 +144,7 @@ void check_interest() - CPRINT(" \r"); - CPRINT(" Looking for /%s \r", temp); - -- if (result = http_has(temp,0)) -+ if ((result = http_has(temp,0))) - { - PRINT(" ---> /%s (%d)\n", temp, result); - BEEP(); -@@ -289,7 +289,7 @@ void get_commandline(int argc, char *arg - - parms.URL = (char*) strdup(argv[optind]); - -- breakup_url(parms.URL, domain, 1024, &parms.port, 80, dir, 1024); -+ breakup_url(parms.URL, domain, 1024, (int *)&parms.port, 80, dir, 1024); - } - /*----------------------------------------------------------------*/ - void mainloop() -@@ -343,7 +343,7 @@ int main(int argc, char *argv[]) - { - char *env = NULL; - -- if (env = getenv(PROXY_ENV)) -+ if ((env = getenv(PROXY_ENV))) - { - proxy.host = (char *) malloc(strlen(env)); - breakup_url(env, proxy.host, strlen(env), &proxy.port, 8000, NULL, 0); diff --git a/www/cgichk/files/patch-cgichk.h b/www/cgichk/files/patch-cgichk.h deleted file mode 100644 index 4bf9b8e455d7..000000000000 --- a/www/cgichk/files/patch-cgichk.h +++ /dev/null @@ -1,37 +0,0 @@ ---- cgichk.h.orig 2001-04-06 16:36:25.000000000 +0800 -+++ cgichk.h 2011-09-06 11:30:51.000000000 +0800 -@@ -19,13 +19,17 @@ - - #include - #include -+#include -+#include - #include - #include -+#include - #include - #include - #include - #include - #include -+#include - - #ifdef DEBUG - #define MEMWATCH -@@ -125,3 +129,16 @@ extern struct in_addr addr; - extern struct sockaddr_in _sin; - extern struct hostent *he; - -+void waitafew(unsigned int del); -+void PRINT(char *arg, ...); -+void CPRINT(char *arg, ...); -+void close_config(result_t *r); -+void read_config(result_t *r, char *section); -+int setup_socket(char *host, int port); -+void PerformWhois(char *domain); -+result_t *open_config(char *fn); -+void read_head(); -+int http_has(char *file, int result); -+void free_strings(result_t *r); -+void breakup_url(char *_url, char *_host, int hl, int *_port, int defport, char *_path, int pl); -+char *cgichk_strnstr(const char *HAYSTACK, const char *NEEDLE); diff --git a/www/cgichk/files/patch-config.c b/www/cgichk/files/patch-config.c deleted file mode 100644 index 718d8cbc04c4..000000000000 --- a/www/cgichk/files/patch-config.c +++ /dev/null @@ -1,19 +0,0 @@ ---- config.c.orig 2011-09-06 11:18:17.000000000 +0800 -+++ config.c 2011-09-06 11:18:33.000000000 +0800 -@@ -30,14 +30,14 @@ result_t *open_config(char *fn) - } - - // ...try defaults, current dir... -- if (r->F = fopen("./cgichk.cfg", "rb")) -+ if ((r->F = fopen("./cgichk.cfg", "rb"))) - { - resultfile = (char *) strdup("./cgichk.cfg"); - return r; - } - - // ...and then config dir -- if (r->F = fopen(CONFIG_PATH, "rb")) -+ if ((r->F = fopen(CONFIG_PATH, "rb"))) - { - resultfile = (char *) strdup(CONFIG_PATH); - return r; diff --git a/www/cgichk/files/patch-misc.c b/www/cgichk/files/patch-misc.c deleted file mode 100644 index 57e5b17daa8f..000000000000 --- a/www/cgichk/files/patch-misc.c +++ /dev/null @@ -1,32 +0,0 @@ ---- misc.c.orig 2001-04-06 16:36:25.000000000 +0800 -+++ misc.c 2011-09-06 11:17:27.000000000 +0800 -@@ -83,16 +83,16 @@ void breakup_url( char *_url, - - *_port = defport; - -- if ( t = (char *)strstr(u, "://") ) // skip past http bit -+ if ((t = (char *)strstr(u, "://"))) // skip past http bit - u = t + 3; - - // parse hostname and port - -- if (t = (char *)index(u, ':')) // does host have a port #? -+ if ((t = (char *)index(u, ':'))) // does host have a port #? - hasport = 1; - -- if (t = (char *)index(u, '/')) // does host have path? -- (char *)haspath = 1; -+ if ((t = (char *)index(u, '/'))) // does host have path? -+ haspath = 1; - - if (hasport) - t = (char *)index(u, ':'); -@@ -209,7 +209,7 @@ char *lowerstr(char *str) - return str; - } - /*----------------------------------------------------------------*/ --char *strnstr(const char *HAYSTACK, const char *NEEDLE) -+char *cgichk_strnstr(const char *HAYSTACK, const char *NEEDLE) - { - char *h, *n, *res; - diff --git a/www/cgichk/files/patch-net.c b/www/cgichk/files/patch-net.c deleted file mode 100644 index 396a82092287..000000000000 --- a/www/cgichk/files/patch-net.c +++ /dev/null @@ -1,45 +0,0 @@ ---- net.c.orig 2001-04-06 16:36:25.000000000 +0800 -+++ net.c 2011-09-06 11:35:01.000000000 +0800 -@@ -9,6 +9,7 @@ proxy_t proxy = {NULL, 8000}; - /*----------------------------------------------------------------*/ - int setup_socket(char *host, int port) - { -+ struct in_addr addr; - unsigned long start; - unsigned long end; - unsigned long counter; -@@ -24,8 +25,8 @@ int setup_socket(char *host, int port) - } - - //start = inet_addr(host); -- inet_aton(host, &start); // rather than inet_addr, etc. -- counter = ntohl(start); -+ inet_aton(host, &addr); // rather than inet_addr, etc. -+ counter = ntohl(addr.s_addr); - - sock = socket(AF_INET, SOCK_STREAM, 0); - bcopy(he->h_addr, (char *) &_sin.sin_addr, he->h_length); -@@ -150,10 +151,10 @@ int http_has(char *file, int result) - { - if (parms.no_false_200_search == FALSE) - { -- if (strnstr(httpbuff, "file not found") || -- strnstr(httpbuff, "error 404") || -- strnstr(httpbuff, "document has moved") || -- strnstr(httpbuff, "page you have requested") ) // Wise? -+ if (cgichk_strnstr(httpbuff, "file not found") || -+ cgichk_strnstr(httpbuff, "error 404") || -+ cgichk_strnstr(httpbuff, "document has moved") || -+ cgichk_strnstr(httpbuff, "page you have requested") ) // Wise? - { - err = HTTP_NOEXIST; - } -@@ -161,7 +162,7 @@ int http_has(char *file, int result) - // If user spcified an additional string to search for, check for that too. - if (parms.alt_fake_404_string) - { -- if (strnstr(httpbuff, parms.alt_fake_404_string)) -+ if (cgichk_strnstr(httpbuff, parms.alt_fake_404_string)) - { - err = HTTP_NOEXIST; - } diff --git a/www/cgichk/pkg-descr b/www/cgichk/pkg-descr deleted file mode 100644 index 38e8fc631b92..000000000000 --- a/www/cgichk/pkg-descr +++ /dev/null @@ -1,2 +0,0 @@ -cgichk is a security utility which can scan web sites for potential -vulnerabilities. diff --git a/www/cgichk/pkg-plist b/www/cgichk/pkg-plist deleted file mode 100644 index be9bd9e4fd92..000000000000 --- a/www/cgichk/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -bin/cgichk -@sample etc/cgichk.cfg.sample