From nobody Mon Jan 19 17:40:25 2026 X-Original-To: dev-commits-doc-all@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 4dvyQx3kwpz6P6X4 for ; Mon, 19 Jan 2026 17:40:25 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dvyQx2F7Wz3HW7 for ; Mon, 19 Jan 2026 17:40:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768844425; 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=K2ey00sVWPIlIbizrO/5e66X94NQu5l8EDQYprRtlYg=; b=oYXbParikIuI4J2KN4xEJt4dKkKRw3JekXcpYujP1N4zxAW473NYhCR1afNT75sQKcY35s yRm3RPhGKfS8I3pf7wKS9fiAItJxmyPDgN5/huaxfIhnUBsRuB1x+X4kyuhuMVseimnL02 MPytO8mTpMHDNJjzxqrmPnBMSerz9zmxq7obfbKOYa+mj+P2c0rEntK9FMUhsM7xUkq5WL p1t+qrbEBFpsxkzi1klA8Qp2hJ/3rZFJskrtmv/WLKGAVUvQjdFt9TmxRsqck/9u9KlvP5 lnYS4R6Z9hXCtkFIP6BxshjrxS2Iz2ELegnPk0wpESLHFN4LZG8myy5zzw9i4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768844425; 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=K2ey00sVWPIlIbizrO/5e66X94NQu5l8EDQYprRtlYg=; b=INqBtYe576ppE2EeOG3NheBsmZhgQEPerS/Z1mLMCY2ZwKfnn36/Z9loLuSS271nkWvP4l fTlQL2vJb9NiB1UDQYEkPO81WvQVGC8ChWOi66dCGhSPs72rLUNWrOhuAlSpgUNAOZKEiS WgQIgL/0iVEK29P+6R2U1rHVzJIsNEDufOhK5KIcT/Femh8yM2w3/mx1M2+LTqt/mLz6gH Xr1O8uVSMhjInG57d09jL/3hzhwJHdiShTM+aJ4r8AMJSUUtwhK+cQK2LCX7qgfUHhZZrr dzufLFs+f/o6R3jp3RYoxWxoX1rxgrjBaMotXIneq6C37Zon6SrIZIBKgiI78g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1768844425; a=rsa-sha256; cv=none; b=Zbo2Ou5D/NAT7Q87Du6D8QA4lw9iVnWefFbFZNfRcdGg9nFaN3B/cr2XicYGg1afzfdiV5 RtWKkkvH1zQNUf1RA1i3YVMohC5SWFZUgkPN/hQCaewxv8ERXBNEmUZtfImIjEA36rwcHy u8t+Im0ETh0BurO4TEdi6iptaZ/vA3FiL26/Od3ROYz2TrQsB36QlX+Aw1LosljaeTLc5B LMFmdmqYvycUQrXnE2x8XHsxZUeVez2FHKxSveo2fis3Jg0lq4dJwYy5wogGY4XAgLcSyc jXzZBxOHBTGne/UNJdUcaQ+3dL0ptJV+3UoqQ2TAnlfBFD804yjHeF6kCHuihQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dvyQx1q0Rzj8S for ; Mon, 19 Jan 2026 17:40:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3ba9e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 19 Jan 2026 17:40:25 +0000 To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Wolfram Schneider Subject: git: d75e090e8f - main - ports.cgi: indent with perltidy List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-doc-all@freebsd.org Sender: owner-dev-commits-doc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wosch X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d75e090e8fdbb86075bbe71bafb813565b20a1c9 Auto-Submitted: auto-generated Date: Mon, 19 Jan 2026 17:40:25 +0000 Message-Id: <696e6c89.3ba9e.49720f97@gitrepo.freebsd.org> The branch main has been updated by wosch: URL: https://cgit.FreeBSD.org/doc/commit/?id=d75e090e8fdbb86075bbe71bafb813565b20a1c9 commit d75e090e8fdbb86075bbe71bafb813565b20a1c9 Author: Wolfram Schneider AuthorDate: 2026-01-19 17:35:23 +0000 Commit: Wolfram Schneider CommitDate: 2026-01-19 17:35:23 +0000 ports.cgi: indent with perltidy --- website/content/en/cgi/ports.cgi | 52 ++++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 23 deletions(-) diff --git a/website/content/en/cgi/ports.cgi b/website/content/en/cgi/ports.cgi index f82593ad9e..0282c144a2 100755 --- a/website/content/en/cgi/ports.cgi +++ b/website/content/en/cgi/ports.cgi @@ -47,7 +47,7 @@ form#ports > input, form#ports > button, form#ports > select { font-size: large; `; # No unlimited result set. A HTML page with 1000 results can be 10MB big. -my $max_hits = 1000; +my $max_hits = 1000; my $max_hits_default = 250; my $max; @@ -211,7 +211,7 @@ sub readcoll { open( C, $localportsdb ) || do { warn "Cannot open ports database $localportsdb: $!\n"; &exit; - } + } } while () { @@ -256,10 +256,10 @@ sub out { } $counter++; - $pathB = $path; + $pathB = $path; $pathB =~ s/^$localPrefix/ports/o; - $path =~ s/^$localPrefix/$remotePrefixFtp/o; + $path =~ s/^$localPrefix/$remotePrefixFtp/o; $descfile =~ s/^$localPrefix/$remotePrefixFtp/o; $version = &encode_url($version); @@ -268,7 +268,7 @@ sub out { local ($l) = $path; $l =~ s%^$remotePrefixFtp%$remotePrefixRepo/log%o; local ($t) = $path; - $t =~ s%^$remotePrefixFtp%$remotePrefixRepo/tree%o; + $t =~ s%^$remotePrefixFtp%$remotePrefixRepo/tree%o; $descfile =~ s%^$remotePrefixFtp%$remotePrefixRepo/plain%o; print @@ -384,9 +384,9 @@ Search for: local (%d); %d = ( - 'name', 'Package Name', 'all', 'All', - 'maintainer', 'Maintainer', 'text', 'Description', - 'requires', 'Requires', + 'name', 'Package Name', 'all', 'All', + 'maintainer', 'Maintainer', 'text', 'Description', + 'requires', 'Requires', ); foreach ( 'all', 'name', 'text', 'maintainer', 'requires' ) { @@ -421,7 +421,7 @@ Search for: sub footer { -print < Powered by FreeBSD © 1996-2026 by Wolfram Schneider. All rights reserved.
@@ -438,18 +438,20 @@ EOF } sub check_query { - my ($query, $sourceid) = @_; + my ( $query, $sourceid ) = @_; $query =~ s/"/ /g; $query =~ s/^\s+//; $query =~ s/\s+$//; # XXX: Firefox opensearch autocomplete workarounds - if ($sourceid eq 'opensearch') { - # remove space before a dot - $query =~ s/ \././g; - # remove space between double colon - $query =~ s/: :/::/g; + if ( $sourceid eq 'opensearch' ) { + + # remove space before a dot + $query =~ s/ \././g; + + # remove space between double colon + $query =~ s/: :/::/g; } return $query; @@ -468,21 +470,24 @@ sub check_input { ) ) { - print "unknown search type, use `all', `text', `name', 'requires', or `maintainer'\n"; - warn "unknown search type ``", escapeHTML($stype), "'', use `all', `text', `name', 'requires', or `maintainer'\n" if $debug >= 1; + print +"unknown search type, use `all', `text', `name', 'requires', or `maintainer'\n"; + warn "unknown search type ``", escapeHTML($stype), + "'', use `all', `text', `name', 'requires', or `maintainer'\n" + if $debug >= 1; &exit(0); } } $max = int($max); - if ($max <= 0 || $max > $max_hits) { + if ( $max <= 0 || $max > $max_hits ) { warn "reset max=$max to $max_hits_default\n"; $max = $max_hits_default; } } sub faq { - print <

FreeBSD Ports Search Help

@@ -575,7 +580,7 @@ if ( !$query && $query_string =~ /^([^=&]+)$/ ) { # automatically read collections, need only 0.2 sec on a pentium @sec = &readcoll; -$query = &check_query($query, $sourceid); +$query = &check_query( $query, $sourceid ); &forms; if ( $query_string eq "" || !$query ) { @@ -588,7 +593,7 @@ if ( $query_string eq "" || !$query ) { $counter = 0; # no prefix search for requires supported yet -$query =~ s/^\^// if $stype eq 'requires'; +$query =~ s/^\^// if $stype eq 'requires'; # quote non characters $query =~ s/([^\w\^])/\\$1/g; @@ -611,9 +616,10 @@ EOF else { print "\n"; my $counter_message = $counter; - if ($counter >= $max) { + if ( $counter >= $max ) { $counter_message .= " (max hit limit reached)"; - warn "$counter_message: query=$query stype=$stype section=$section\n" if $debug >= 1; + warn "$counter_message: query=$query stype=$stype section=$section\n" + if $debug >= 1; } print "

Number of hits: $counter_message\n

\n"; print &footer_links;