| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | PortSystem 1.0 |
|---|
| 5 | PortGroup xcode 1.0 |
|---|
| 6 | |
|---|
| 7 | name dnsupdate |
|---|
| 8 | version 2.8 |
|---|
| 9 | categories aqua net |
|---|
| 10 | maintainers jmr openmaintainer |
|---|
| 11 | description DNSUpdate 2 is an Mac OS X client for dynamic DNS services |
|---|
| 12 | long_description DNSUpdate 2 is a client for dynamic DNS services \ |
|---|
| 13 | like DynDNS.org and ZoneEdit.com, specific to Mac OS \ |
|---|
| 14 | X. It uses the Cocoa framework and is launched at \ |
|---|
| 15 | boot time. It comes with a graphic application to \ |
|---|
| 16 | configure and monitor the client. NOTE: this version is \ |
|---|
| 17 | for Mac OS X 10.4 and later. For 10.3 and earlier, use \ |
|---|
| 18 | dnsupdate27. |
|---|
| 19 | homepage http://www.dnsupdate.org/ |
|---|
| 20 | master_sites http://ju.jalon.free.fr/DNSUpdateProject/ |
|---|
| 21 | distname DNSUpdate${version}s |
|---|
| 22 | checksums md5 e7baab094ee3fa60871eec8f9aa3510e \ |
|---|
| 23 | sha1 52367f763368a680ddb85f5abd886a2d7d1d0f35 \ |
|---|
| 24 | rmd160 5deeca2a0468c8dceea89dc5109446ccb6acbbf6 |
|---|
| 25 | |
|---|
| 26 | extract.suffix .tgz |
|---|
| 27 | |
|---|
| 28 | pre-fetch { |
|---|
| 29 | if {${os.major} < 8} { |
|---|
| 30 | return -code error "This version of DNSUpdate is for Mac OS X 10.4 or later. \ |
|---|
| 31 | For 10.3 and earlier, use dnsupdate27." |
|---|
| 32 | } |
|---|
| 33 | } |
|---|
| 34 | |
|---|
| 35 | patch.pre_args -p1 |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | patchfiles patch-logmessages.diff |
|---|
| 39 | |
|---|
| 40 | post-patch { |
|---|
| 41 | reinplace "s|/usr/local|${prefix}|" \ |
|---|
| 42 | ${worksrcpath}/DNSUpdate2.xcodeproj/project.pbxproj \ |
|---|
| 43 | ${worksrcpath}/DUAppController.m \ |
|---|
| 44 | ${worksrcpath}/duInstallDaemon.py \ |
|---|
| 45 | ${worksrcpath}/duUninstallDaemon.py \ |
|---|
| 46 | ${worksrcpath}/English.lproj/DNSUpdateHelp.rtfd/TXT.rtf \ |
|---|
| 47 | ${worksrcpath}/French.lproj/DNSUpdateHelp.rtfd/TXT.rtf \ |
|---|
| 48 | ${worksrcpath}/German.lproj/DNSUpdateHelp.rtfd/TXT.rtf \ |
|---|
| 49 | ${worksrcpath}/Italian.lproj/DNSUpdateHelp.rtfd/TXT.rtf \ |
|---|
| 50 | ${worksrcpath}/Spanish.lproj/DNSUpdateHelp.rtfd/TXT.rtf \ |
|---|
| 51 | ${worksrcpath}/startDaemon.py \ |
|---|
| 52 | ${worksrcpath}/org.dnsupdate.daemon.plist |
|---|
| 53 | reinplace "s|/var/log|${prefix}/var/log|" \ |
|---|
| 54 | ${worksrcpath}/DUAppController.m \ |
|---|
| 55 | ${worksrcpath}/duInstallDaemon.py \ |
|---|
| 56 | ${worksrcpath}/English.lproj/DNSUpdateHelp.rtfd/TXT.rtf \ |
|---|
| 57 | ${worksrcpath}/French.lproj/DNSUpdateHelp.rtfd/TXT.rtf \ |
|---|
| 58 | ${worksrcpath}/German.lproj/DNSUpdateHelp.rtfd/TXT.rtf \ |
|---|
| 59 | ${worksrcpath}/Italian.lproj/DNSUpdateHelp.rtfd/TXT.rtf \ |
|---|
| 60 | ${worksrcpath}/Spanish.lproj/DNSUpdateHelp.rtfd/TXT.rtf \ |
|---|
| 61 | ${worksrcpath}/startDaemon.py \ |
|---|
| 62 | ${worksrcpath}/org.dnsupdate.daemon.plist |
|---|
| 63 | reinplace "s|/var/run|${prefix}/var/run|" \ |
|---|
| 64 | ${worksrcpath}/DUProtocols.h \ |
|---|
| 65 | ${worksrcpath}/English.lproj/DNSUpdateHelp.rtfd/TXT.rtf \ |
|---|
| 66 | ${worksrcpath}/French.lproj/DNSUpdateHelp.rtfd/TXT.rtf \ |
|---|
| 67 | ${worksrcpath}/German.lproj/DNSUpdateHelp.rtfd/TXT.rtf \ |
|---|
| 68 | ${worksrcpath}/Italian.lproj/DNSUpdateHelp.rtfd/TXT.rtf \ |
|---|
| 69 | ${worksrcpath}/Spanish.lproj/DNSUpdateHelp.rtfd/TXT.rtf |
|---|
| 70 | reinplace "s|org.dnsupdate.daemon|org.macports.dnsupdate|" \ |
|---|
| 71 | ${worksrcpath}/org.dnsupdate.daemon.plist |
|---|
| 72 | } |
|---|
| 73 | |
|---|
| 74 | xcode.target All |
|---|
| 75 | |
|---|
| 76 | destroot { |
|---|
| 77 | |
|---|
| 78 | set appName DNSUpdate |
|---|
| 79 | set appPath ${destroot}${applications_dir} |
|---|
| 80 | xinstall -d -m 0755 ${appPath} |
|---|
| 81 | file copy ${worksrcpath}/build/Deployment/${appName}.app ${appPath}/${appName}.app |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | xinstall -m 0755 ${worksrcpath}/build/Deployment/${appName}.app/Contents/Resources/${name} \ |
|---|
| 85 | ${destroot}${prefix}/sbin/${name} |
|---|
| 86 | |
|---|
| 87 | |
|---|
| 88 | set itemName org.macports.dnsupdate.plist |
|---|
| 89 | set itemAliasPath ${destroot}/Library/LaunchDaemons |
|---|
| 90 | set itemPath ${prefix}/etc/LaunchDaemons |
|---|
| 91 | xinstall -d -m 0755 ${destroot}${itemPath} |
|---|
| 92 | xinstall -d -m 0755 ${itemAliasPath} |
|---|
| 93 | xinstall -m 0755 ${worksrcpath}/org.dnsupdate.daemon.plist ${destroot}${itemPath}/${itemName} |
|---|
| 94 | system "ln -s ${itemPath}/${itemName} ${itemAliasPath}/${itemName}" |
|---|
| 95 | |
|---|
| 96 | |
|---|
| 97 | set logPath ${destroot}${prefix}/var/log |
|---|
| 98 | xinstall -d -m 0755 ${logPath} |
|---|
| 99 | |
|---|
| 100 | |
|---|
| 101 | set runPath ${destroot}${prefix}/var/run |
|---|
| 102 | destroot.keepdirs ${logPath} ${runPath} |
|---|
| 103 | } |
|---|
| 104 | |
|---|
| 105 | livecheck.check regex |
|---|
| 106 | livecheck.url ${master_sites} |
|---|
| 107 | livecheck.regex "DNSUpdate(\[0-9\]+(\\.\\w+)+)s${extract.suffix}" |
|---|