Opened 21 years ago

Closed 21 years ago

Last modified 8 years ago

#583 closed enhancement (fixed)

RFE: apache2 port

Reported by: jcorley1@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

Here are the various files needed for an apache2 port. It installs into /opt/local/apache2 to avoid clobbering an existing apache 1 installation. The issues that I think exist (others may find more) are: a) No mod_perl or mod_python. I really don't know these too well so I thought I'd submit the port and someone who does know them can add them. b) No php update. Again I don't really know it. c) No suexec. I could add this, but without mod_perl or mod_python I didn't see the point. In order to be able to create modules with this I symlinked /opt/local/apache2/build/libtool to /usr/bin/glibtool, which places a requirement on the Apple Developer Tools, but since DarwinPorts itself requires that I didn't think it was a problem. The patchfile makes the default install use the www user that exists on all systems (no way to pass that arg to configure as best as I could tell). The apache2.sh is only installed if you install the variant +activate_server, just like the apache 1 port. Jason

Attachments (5)

Portfile (2.8 KB) - added by jcorley1@… 21 years ago.
Portfile
apache2.sh (369 bytes) - added by jcorley1@… 21 years ago.
rc script
patch-httpd-std.conf.in (312 bytes) - added by jcorley1@… 21 years ago.
patch for httpd.conf to use www user instead of nobody
Portfile.2 (2.9 KB) - added by jcorley1@… 21 years ago.
Portfile upgrade to 2.0.46 to avoid DoS in 2.0.45
Portfile.3 (2.2 KB) - added by fkr@… 21 years ago.
updated Portfile

Download all attachments as: .zip

Change History (18)

Changed 21 years ago by jcorley1@…

Attachment: Portfile added

Portfile

Changed 21 years ago by jcorley1@…

Attachment: apache2.sh added

rc script

Changed 21 years ago by jcorley1@…

Attachment: patch-httpd-std.conf.in added

patch for httpd.conf to use www user instead of nobody

comment:1 Changed 21 years ago by jcorley1@…

blocked: 586

comment:2 Changed 21 years ago by jcorley1@…

attachments.mimetype: application/octet-streamapplication/text

comment:3 Changed 21 years ago by jcorley1@…

attachments.mimetype: application/texttext/text

comment:4 Changed 21 years ago by jcorley1@…

attachments.mimetype: text/texttext/plain

comment:5 Changed 21 years ago by jcorley1@…

Add a dependency on DarwinPortsStartup to the activate_server variant

--- misc/darwinports/dports/www/apache2/Portfile.orig    Sun Jun  1 19:49:41 2003
+++ misc/darwinports/dports/www/apache2/Portfile        Sun May 25 17:34:43 2003
@@ -39,8 +39,6 @@
                   }
 
 variant activate_server {
+    depends_run    path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup
+
     post-patch    { system "sed -e \"s=%%PREFIX%%=${prefix}/${name}=g\" \
                       ${filespath}/${name}.sh > \
                       ${portpath}/${workdir}/${name}.sh"
Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 21 years ago by jcorley1@…

attachments.mimetype: application/octet-streamtext/plain

comment:7 Changed 21 years ago by bchesneau@…

blocked: 603

Changed 21 years ago by jcorley1@…

Attachment: Portfile.2 added

Portfile upgrade to 2.0.46 to avoid DoS in 2.0.45

comment:8 Changed 21 years ago by jcorley1@…

attachments.isobsolete: 01

comment:9 Changed 21 years ago by jcorley1@…

attachments.description: Upgrade to 2.0.46 to avoid DoS in 2.0.45Portfile upgrade to 2.0.46 to avoid DoS in 2.0.45

Changed 21 years ago by fkr@…

Attachment: Portfile.3 added

updated Portfile

comment:10 Changed 21 years ago by fkr@…

attachments.isobsolete: 01

comment:11 Changed 21 years ago by fkr@…

forgot to mention, if no one objects I'd like to go ahead the port as it is now.

-fkr

comment:12 Changed 21 years ago by fkr@…

...liked to go ahead an commit the port as it is now (that's what I *wanted* tp type :) -fkr

comment:13 Changed 21 years ago by fkr@…

Resolution: fixed
Status: newclosed

committed. thanks for the submission! -fkr

Note: See TracTickets for help on using tickets.