Ignore:
Timestamp:
Mar 11, 2012, 10:26:31 PM (7 years ago)
Author:
pixilla@…
Message:

www/mod_fcgid:

  • Set DEFAULT_REL_RUNTIMEDIR to ${prefix}/var/run/${name} and add to destroot.keepdirs.
  • Rename patch file.
  • Add a conf file at ${prefix}/apache2/conf/extra/httpd-fcgid.conf.
  • Change notes to activate mod_fcgid by including the new conf file.
  • Closes #32284
Location:
trunk/dports/www/mod_fcgid
Files:
1 added
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/dports/www/mod_fcgid/Portfile

    r85091 r90663  
    55name                mod_fcgid
    66version             2.3.6
     7revision            1
    78
    89categories          www
     
    2122                    sha256  16a96e6210875cd9cc5350a0dd774c8580f39f43f7f0176702b2d1f1ca502fdd
    2223
    23 patchfiles          patch-fcgid_conf.c
     24depends_lib         port:apache2
    2425
    25 depends_lib         port:apache2
     26patch.pre_args      -p1
     27patchfiles          patch-modules-fcgid-fcgid_conf.c.diff
     28
     29post-patch {
     30    reinplace "s|@PREFIX@|${prefix}|g" \
     31        ${worksrcpath}/modules/fcgid/fcgid_conf.c
     32    reinplace "s|@NAME@|${name}|g" \
     33        ${worksrcpath}/modules/fcgid/fcgid_conf.c
     34}
    2635
    2736configure.env       APXS=${prefix}/apache2/bin/apxs
     
    3039
    3140destroot.violate_mtree   yes
     41destroot.keepdirs   ${destroot}${prefix}/var/run/${name}
    3242post-destroot {
    33    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    34    xinstall -m 644 -W ${worksrcpath} \
    35       CHANGES-FCGID LICENSE-FCGID NOTICE-FCGID README-FCGID STATUS-FCGID \
    36       ${destroot}${prefix}/share/doc/${name}
     43    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     44    xinstall -m 644 -W ${worksrcpath} \
     45        CHANGES-FCGID LICENSE-FCGID NOTICE-FCGID README-FCGID STATUS-FCGID \
     46        ${destroot}${prefix}/share/doc/${name}
     47    xinstall -m 755 -d ${destroot}${prefix}/apache2/conf/extra
     48    xinstall -m 644 ${filespath}/httpd-fcgid.conf \
     49        ${destroot}${prefix}/apache2/conf/extra/
    3750}
    3851
    3952notes "
    4053==========
    41 To enable mod_fcgid in Apache, add
    42    LoadModule fcgid_module modules/mod_fcgid.so
    43 to ${prefix}/apache2/conf/httpd.conf
     54This port installs a configuration file to enable mod_fcgid in Apache.
     55After install add these lines to the end of ${prefix}/apache2/conf/httpd.conf to enable mod_fcgid.
     56    # Include module mod_fcgid
     57    Include conf/extra/httpd-fcgid.conf
     58
     59You should then restart apache2 to load the module.
     60    $ sudo port unload apache2
     61    $ sudo port load apache2
    4462
    4563For further configuration information please visit
    46    http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
     64    http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
    4765
    4866When upgrading from version 2.2, please see the above URL
    49    about deprecated config options!
     67    about deprecated config options!
    5068=========="
    5169
  • trunk/dports/www/mod_fcgid/files/patch-modules-fcgid-fcgid_conf.c.diff

    r90629 r90663  
    1 --- modules/fcgid/fcgid_conf.c.orig     2011-06-24 15:15:55.000000000 -0700
    2 +++ modules/fcgid/fcgid_conf.c  2011-06-24 15:41:58.000000000 -0700
     1--- a/modules/fcgid/fcgid_conf.c        2012-03-10 11:15:56.000000000 -0800
     2+++ b/modules/fcgid/fcgid_conf.c        2012-03-10 11:15:42.000000000 -0800
    33@@ -28,9 +28,7 @@
    44 #include "fcgid_global.h"
     
    88-#define DEFAULT_REL_RUNTIMEDIR "logs"
    99-#endif
    10 +#define DEFAULT_REL_RUNTIMEDIR "var/run"
     10+#define DEFAULT_REL_RUNTIMEDIR "@PREFIX@/var/run/@NAME@"
    1111 
    1212 #define DEFAULT_IDLE_TIMEOUT 300
Note: See TracChangeset for help on using the changeset viewer.