Changeset 14446 for trunk/dports
- Timestamp:
- Oct 6, 2005, 7:33:53 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/www/phpmyadmin/Portfile
r14347 r14446 1 # $Id: Portfile,v 1. 5 2005/09/30 18:05:16 tobyExp $2 PortSystem 1 # $Id: Portfile,v 1.6 2005/10/06 19:33:53 mww Exp $ 2 PortSystem 1.0 3 3 4 4 name phpmyadmin 5 5 version 2.6.4-pl1 6 revision 1 6 7 categories www 7 8 maintainers joe@netmusician.org … … 15 16 and is available in 47 languages. 16 17 homepage http://www.phpmyadmin.net 17 master_sites sourceforge18 master_sites sourceforge 18 19 distname phpMyAdmin-${version} 19 20 use_bzip2 yes … … 21 22 platforms darwin freebsd 22 23 23 # Not sure this is the best way to handle this, but it works for now 24 # if no apache variant is set, force set it 25 if { ![variant_isset apache] && ![variant_isset apache2] } { 26 set variations(apache) + 27 } 28 # if no mysql variant is set, force set it 29 if { ![variant_isset mysql] && ![variant_isset mysql4] } { 30 set variations(mysql4) + 31 } 32 # if no php variant is set, force set it 33 if { ![variant_isset php4] && ![variant_isset php5] } { 34 set variations(php4) + 35 } 24 default_variants +apache +mysql4 +php4 36 25 37 26 variant apache conflicts apache2 { 38 if { ![variant_isset apache_layout] } {39 depends_lib-append port:apache40 }41 }42 43 variant apache_layout requires apache conflicts apache2 {44 27 depends_lib-append port:apache 45 28 } … … 50 33 51 34 variant php4 conflicts php5 { 52 if { [variant_isset apache2] } { 53 depends_lib-append path:${prefix}/apache2/modules/libphp4.so:php4 54 } else { 55 if { ![variant_isset apache_layout] } { 56 depends_lib-append path:${prefix}/libexec/apache/libphp4.so:php4 57 } else { 58 depends_lib-append path:${prefix}/apache/libexec/libphp4.so:php4 59 } 60 } 35 depends_lib-append port:php4 61 36 } 62 37 63 38 variant php5 conflicts php4 { 64 if { [variant_isset apache2] } { 65 depends_lib-append path:${prefix}/apache2/modules/libphp5.so:php5 66 } else { 67 if { ![variant_isset apache_layout] } { 68 depends_lib-append path:${prefix}/libexec/apache/libphp5.so:php5 69 } else { 70 depends_lib-append path:${prefix}/apache/libexec/libphp5.so:php5 71 } 72 } 39 depends_lib-append port:php5 73 40 } 74 41 … … 81 48 } 82 49 50 set docpath ${destroot}${prefix}/www/data 51 83 52 use_configure no 84 53 configure {} … … 86 55 87 56 destroot { 88 if { [variant_isset apache] } { 89 if { [variant_isset apache_layout] } { 90 set docpath ${destroot}${prefix}/apache/htdocs 91 } else { 92 set docpath ${destroot}${prefix}/www/data 93 } 94 } elseif { [variant_isset apache2] } { 95 set docpath ${destroot}${prefix}/apache2/htdocs 96 } 97 xinstall -d -m 0755 ${docpath} 98 system "cp -R ${worksrcpath} ${docpath}/phpmyadmin" 57 xinstall -d -m 0755 ${docpath}/phpmyadmin 58 eval file copy [glob ${worksrcpath}/*] ${docpath}/phpmyadmin 99 59 foreach confname {config config.footer config.header} { 100 60 file rename ${docpath}/phpmyadmin/${confname}.inc.php \ 101 61 ${docpath}/phpmyadmin/${confname}.inc.php-dist 102 62 } 103 if {$env(USER) == "root"} {104 system "chown -R root:wheel ${docpath}/phpmyadmin"105 }106 63 } 107 64 108 post-activate {109 # Make sure initial conf file is present and setup correctly110 if { [variant_isset apache] } {111 if { [variant_isset apache_layout] } {112 set docpath ${prefix}/apache/htdocs113 } else {114 set docpath ${prefix}/www/data115 }116 } elseif { [variant_isset apache2] } {117 set docpath ${prefix}/apache2/htdocs118 }119 foreach confname {config config.footer config.header} {120 if {![file exists ${docpath}/phpmyadmin/${confname}.inc.php]} {121 xinstall -m 0644 ${docpath}/phpmyadmin/${confname}.inc.php-dist \122 ${docpath}/phpmyadmin/${confname}.inc.php123 }124 }125 }126 65
Note: See TracChangeset
for help on using the changeset viewer.