BSD Ports

www/p5-CGI 4.72 MidnightBSD

Handle Common Gateway Interface requests and responses

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
787dcc0cd6
License
artistic2, gpl
Categories
www, perl5

Description

CGI.pm is a stable, complete and mature solution for processing and preparing HTTP requests and responses. Major features including processing form submissions, file uploads, reading and writing cookies, query string generation and manipulation, and processing and preparing HTTP headers.

CGI.pm performs very well in a vanilla CGI.pm environment and also comes with built-in support for mod_perl and mod_perl2 as well as FastCGI.

It has the benefit of having developed and refined over 20 years with input from dozens of contributors and being deployed on thousands of websites. CGI.pm was included in the perl distribution from perl v5.4 to v5.20, however is has now been removed from the perl core.

In the other systems

The newest version among them is 4.72, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDwww/p5-CGI4.72 newestno data-[email protected]2026-07-14
FreeBSDwww/p5-CGI4.72 newestnone known-[email protected]-
OpenBSDwww/p5-CGI4.72 newestno data-Andrew Hewus Fresh <[email protected]>2026-08-18
NetBSDwww/p5-CGI4.72nb1 newestnone known-[email protected]2026-07-16
DragonFlywww/p5-CGI4.67 behind since 2026-08-18none known-[email protected]-
HardenedBSDwww/p5-CGI4.72 newestno data-[email protected]-
GhostBSDwww/p5-CGI4.72 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

mport install p5-CGI

From mports:

cd /usr/mports/www/p5-CGI && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-CGI>0:www/p5-CGI

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

As this port's Makefile names them.

Build 2

Runtime 2

Test 2

Build dependencies 2
Run dependencies 2

Configuration

Options name: www_CGI

OptionDefaultDescription
EXAMPLESoff
USES
perl5
Service scripts
none
Conflicts with
p5-CGI.pm-[1-3]*

Files

pkg-plist 25
  • %%SITE_PERL%%/CGI.pm
  • %%SITE_PERL%%/CGI.pod
  • %%SITE_PERL%%/CGI/Carp.pm
  • %%SITE_PERL%%/CGI/Cookie.pm
  • %%SITE_PERL%%/CGI/File/Temp.pm
  • %%SITE_PERL%%/CGI/HTML/Functions.pm
  • %%SITE_PERL%%/CGI/HTML/Functions.pod
  • %%SITE_PERL%%/CGI/Pretty.pm
  • %%SITE_PERL%%/CGI/Push.pm
  • %%SITE_PERL%%/CGI/Util.pm
  • %%SITE_PERL%%/Fh.pm
  • %%PERL5_MAN3%%/CGI.3.gz
  • %%PERL5_MAN3%%/CGI::Carp.3.gz
  • %%PERL5_MAN3%%/CGI::Cookie.3.gz
  • %%PERL5_MAN3%%/CGI::HTML::Functions.3.gz
  • %%PERL5_MAN3%%/CGI::Pretty.3.gz
  • %%PERL5_MAN3%%/CGI::Push.3.gz
  • %%PERL5_MAN3%%/CGI::Util.3.gz
  • share/examples/p5-CGI/clickable_image.cgi
  • share/examples/p5-CGI/cookie.cgi
  • share/examples/p5-CGI/crash.cgi
  • share/examples/p5-CGI/file_upload.cgi
  • share/examples/p5-CGI/mojo_proxy.pl
  • share/examples/p5-CGI/wikipedia_example.cgi
  • share/examples/p5-CGI/wilogo.gif
distinfo 1
FileSizeSHA256
CGI-4.72.tar.gz208136babc1ca72db188083a1c3812debe88c4473b943b1f7c662281cd57c580a8bdd9
Master sites 1
  • CPAN

Commit history 1

DateCommitCreditsLog message
787dcc0cd6 Lucas Holt all p5 ports: fix CPAN author fetch paths
Add CPAN author subdirectories for 42 distributions whose generic module paths no longer resolve. AI-Assisted-by: Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>