# $Id$ PortSystem 1.0 name antinat version 0.90 revision 1 categories net platforms darwin description A powerful, configurable and flexible SOCKS server long_description \ Antinat is a flexible SOCKS server and client library for writing \ proxy-based applications. It supports SOCKS 4, SOCKS 4a, SOCKS 5, \ authentication, CHAP, XML firewalling, Win32, server chaining, and \ UDP. It also contains very experimental IPv6 support.\ SOCKS can be used to overcome some limitations of NAT, including \ facilities for allowing connectbacks and server-side DNS. Antinat \ aims to be fully standards compliant, feature rich, and have a solid \ API for writing standards-compliant client applications. maintainers boeyms openmaintainer homepage http://antinat.sourceforge.net/ master_sites sourceforge use_bzip2 yes checksums md5 ec8980e86d23eb67bc370510791044d6 \ sha1 28effac745908e09b1c9458fab2cb4df856d1522 \ rmd160 5af3120844025acf4ecbb1ed26490e2065701d83 depends_lib port:expat configure.args --infodir=\\\${prefix}/share/info --mandir=\\\${prefix}/share/man destroot.destdir prefix=${destroot}${prefix} 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} startupitem.executable ${prefix}/bin/${name}