Ignore:
Timestamp:
Aug 27, 2014, 10:53:32 PM (4 years ago)
Author:
jmr@…
Message:

antinat: set license, remove code for preserving config file from a 7-years-ago version, which doesn't work with archive installs anyway

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/antinat/Portfile

    r86786 r124747  
    77revision    1
    88categories  net
     9license     GPL-2
    910platforms   darwin
    1011description A powerful, configurable and flexible SOCKS server
     
    3132    set antinat_conf ${prefix}/etc/${name}.xml
    3233    move ${destroot}${antinat_conf} ${destroot}${antinat_conf}.example
    33 # Try to cover for the fact that, in earlier revisions of this port, the
    34 # configuration file was installed live instead of an example, in which case an
    35 # upgrade will clobber any customisations that a user might have made :(
    36     catch "exec port provides ${antinat_conf}" provides_output
    37     set antinat_conf_is_registered_to_antinat \
    38         [regexp "${antinat_conf} is provided by: ${name}" ${provides_output}]
    39     set antinat_conf_differs \
    40         [catch {exec cmp ${antinat_conf} ${worksrcpath}/etc/${name}.conf}]
    41     if { ${antinat_conf_is_registered_to_antinat} && ${antinat_conf_differs} } {
    42         copy ${antinat_conf} ${antinat_conf}.altered
    43         ui_msg ""
    44         ui_msg "###############################################################"
    45         ui_msg "# It appears that you have altered ${antinat_conf},"
    46         ui_msg "# and that upgrading or uninstalling your previous installation"
    47         ui_msg "# of ${name} will clobber your copy.  It has been copied to"
    48         ui_msg "# ${antinat_conf}.altered for preservation when you upgrade or"
    49         ui_msg "# uninstall ${name}.  This problem should not occur with future"
    50         ui_msg "# upgrades or installations of this port.\n"
    51         ui_msg "###############################################################"
    52         ui_msg ""
    53     }
    5434}
    5535startupitem.create  yes
Note: See TracChangeset for help on using the changeset viewer.