Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-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
- Loading branch information
Markus W. Weißmann
committed
Dec 10, 2003
1 parent
16e8b2a
commit e128278
Showing
1 changed file
with
26 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} |