From e128278ce16973a12ce1221d315215bc79da788f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20W=2E=20Wei=C3=9Fmann?= Date: Wed, 10 Dec 2003 21:33:59 +0000 Subject: [PATCH] -added missing 'platforms' key -moved 'reinplace' from post-patch to post-destroot -added 'reinplace DESTDIR...' cause Makefile won't use destroot -replaced 'system' cmds with 'file' equivalent git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@4188 d073be05-634f-4543-b044-5fe20cf6d1d6 --- net/ez-ipupdate/Portfile | 49 +++++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/net/ez-ipupdate/Portfile b/net/ez-ipupdate/Portfile index 4141bf5262113..461f517e32764 100644 --- a/net/ez-ipupdate/Portfile +++ b/net/ez-ipupdate/Portfile @@ -1,44 +1,47 @@ -# $Id: Portfile,v 1.2 2003/09/23 10:14:22 mww Exp $ +# $Id: Portfile,v 1.3 2003/12/10 21:33:59 mww Exp $ PortSystem 1.0 name ez-ipupdate version 3.0.11b7 categories net maintainers mww@opendarwin.org +platforms darwin freebsd description dynamic dns client long_description ez-ipupdate is a small utility for updating your host \ name at one of the dynamic DNS services. The daemon \ mode is currently not working under Darwin/OS-X. -homepage http://www.ez-ipupdate.com/ -master_sites ${homepage}dist/ +homepage http://www.ez-ipupdate.com +master_sites ${homepage}/dist/ checksums md5 525be4550b4461fdf105aed8e753b020 -post-patch { reinplace \ - "s|/usr/local/bin/ez-ipupdate|${prefix}/bin/ez-ipupdate|g" \ - ${worksrcpath}/example.conf } - configure.args --cache-file=${prefix}/var/ez-ipupdate -variant darwin { +variant darwin { configure.env CPPFLAGS=-D__FreeBSD__ configure.args-append --host=powerpc-apple-freebsd } build.target -destroot.destdir prefix=${destroot}${prefix} - -post-destroot { system "install -m 755 -d \ - ${destroot}${prefix}/share/doc/ez-ipupdate \ - && install -m 644 ${worksrcpath}/README \ - ${destroot}${prefix}/share/doc/ez-ipupdate \ - && install -m 644 ${worksrcpath}/COPYING \ - ${destroot}${prefix}/share/doc/ez-ipupdate \ - && install -m 700 ${worksrcpath}/example.conf \ - ${destroot}${prefix}/etc/ez-ipupdate.conf.sample" } - -post-install { if {![file exists ${prefix}/etc/ez-ipupdate.conf]} { - system "cp ${prefix}/etc/ez-ipupdate.conf.sample \ - ${prefix}/etc/ez-ipupdate.conf" - } } +pre-destroot { + reinplace "s|DESTDIR =|DESTDIR = ${destroot}|g" \ + ${worksrcpath}/Makefile +} + +post-destroot { + file mkdir ${destroot}${prefix}/share/doc/${name} + file copy ${worksrcpath}/README ${worksrcpath}/COPYING \ + ${destroot}${prefix}/share/doc/${name} + file copy ${worksrcpath}/example.conf \ + ${destroot}${prefix}/etc/ez-ipupdate.conf.sample + reinplace "s|/usr/local/bin/ez-ipupdate|${prefix}/bin/ez-ipupdate|g" \ + ${destroot}${prefix}/etc/ez-ipupdate.conf.sample +} + +post-install { + if { ![file exists ${prefix}/etc/ez-ipupdate.conf] } { + file copy ${prefix}/etc/ez-ipupdate.conf.sample \ + ${prefix}/etc/ez-ipupdate.conf + } +}