[124747] trunk/dports/net/antinat/Portfile

jmr at macports.org jmr at macports.org
Wed Aug 27 15:53:32 PDT 2014


Revision: 124747
          https://trac.macports.org/changeset/124747
Author:   jmr at macports.org
Date:     2014-08-27 15:53:32 -0700 (Wed, 27 Aug 2014)
Log Message:
-----------
antinat: set license, remove code for preserving config file from a 7-years-ago version, which doesn't work with archive installs anyway

Modified Paths:
--------------
    trunk/dports/net/antinat/Portfile

Modified: trunk/dports/net/antinat/Portfile
===================================================================
--- trunk/dports/net/antinat/Portfile	2014-08-27 22:42:56 UTC (rev 124746)
+++ trunk/dports/net/antinat/Portfile	2014-08-27 22:53:32 UTC (rev 124747)
@@ -6,6 +6,7 @@
 version     0.90
 revision    1
 categories  net
+license     GPL-2
 platforms   darwin
 description A powerful, configurable and flexible SOCKS server
 long_description \
@@ -30,27 +31,6 @@
 post-destroot {
     set antinat_conf ${prefix}/etc/${name}.xml
     move ${destroot}${antinat_conf} ${destroot}${antinat_conf}.example
-# Try to cover for the fact that, in earlier revisions of this port, the
-# configuration file was installed live instead of an example, in which case an
-# upgrade will clobber any customisations that a user might have made :(
-    catch "exec port provides ${antinat_conf}" provides_output
-    set antinat_conf_is_registered_to_antinat \
-        [regexp "${antinat_conf} is provided by: ${name}" ${provides_output}]
-    set antinat_conf_differs \
-        [catch {exec cmp ${antinat_conf} ${worksrcpath}/etc/${name}.conf}]
-    if { ${antinat_conf_is_registered_to_antinat} && ${antinat_conf_differs} } {
-        copy ${antinat_conf} ${antinat_conf}.altered
-        ui_msg ""
-        ui_msg "###############################################################"
-        ui_msg "# It appears that you have altered ${antinat_conf},"
-        ui_msg "# and that upgrading or uninstalling your previous installation"
-        ui_msg "# of ${name} will clobber your copy.  It has been copied to"
-        ui_msg "# ${antinat_conf}.altered for preservation when you upgrade or"
-        ui_msg "# uninstall ${name}.  This problem should not occur with future"
-        ui_msg "# upgrades or installations of this port.\n"
-        ui_msg "###############################################################"
-        ui_msg ""
-    }
 }
 startupitem.create  yes
 startupitem.name    ${name}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140827/c6918057/attachment.html>


More information about the macports-changes mailing list