Ticket #18036: htdig.diff

File htdig.diff, 1.5 KB (added by ryandesign (Ryan Carsten Schmidt), 16 years ago)
  • files/httpd.conf

     
    11#
    22#  This is a default apache configuration
    3 #  file installed by DarwinPorts for: 
     3#  file installed by MacPorts for:
    44#  ht://Dig Group WWW Search Engine
    5 NAME - VERSION
     5@NAME@ - @VERSION@
    66#
    7 Alias /NAME "DP_PREFIX/share/NAME/images"
    8 Alias /NAME/ "DP_PREFIX/share/NAME/images/"
     7Alias /@NAME@ "@PREFIX@/share/@NAME@/images"
     8Alias /@NAME@/ "@PREFIX@/share/@NAME@/images/"
    99#
    10 <Directory "DP_PREFIX/share/NAME/images">
     10<Directory "@PREFIX@/share/@NAME@/images">
    1111        Options Indexes MultiViews
    1212        AllowOverride None
    1313        Order allow,deny
  • Portfile

     
    102102                                file mkdir ${destroot}${httpd_conf_path}
    103103                                system "install -m 644 ${portpath}/${filesdir}/httpd.conf \
    104104                                  ${destroot}${httpd_conf_path}/httpd_${name}.conf"
    105                                 reinplace "s|DP_PREFIX|${prefix}|g" \
     105                                reinplace "s|@PREFIX@|${prefix}|g" \
    106106                                  "${destroot}${httpd_conf_path}/httpd_${name}.conf"
    107                                 reinplace "s|NAME|${name}|g" \
     107                                reinplace "s|@NAME@|${name}|g" \
    108108                                  "${destroot}${httpd_conf_path}/httpd_${name}.conf"
    109                                 reinplace "s|VERSION|${version}|g" \
     109                                reinplace "s|@VERSION@|${version}|g" \
    110110                                  "${destroot}${httpd_conf_path}/httpd_${name}.conf"
    111111
    112112                                # Install contributed scripts