Modified: trunk/dports/net/antinat/Portfile (124746 => 124747)
--- 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}