# $Id: Portfile,v 1.8 2003/08/13 00:05:03 rshaw Exp $
PortSystem 1.0
name		ddclient
version		3.6.3beta2
platforms	darwin
categories	net
maintainers	robert@or.homeip.net
description	Update dynamic DNS entries
long_description	ddclient is a Perl client used to update dynamic \
			DNS entries for accounts on many dynamic DNS services.
homepage	http://burry.ca:4141/ddclient/
master_sites	http://burry.ca:4141/ddclient/	
checksums	md5 98edbaea5459f47eb9164f8e58bc162a
configure	{}
post-configure	{
	reinplace "s|^#!.*/perl\\(.*\\)$|#!/usr/bin/perl\\1|" ${worksrcpath}/${portname}
	reinplace "s|/etc/|${prefix}/etc/|" ${worksrcpath}/${portname}
}
build		{}
destroot	{
	system "install -m 755 -d ${destroot}${prefix}/etc"
	system "install -m 555 ${worksrcpath}/sample-etc_ddclient.conf \
		${destroot}${prefix}/etc/ddclient.conf.sample"
	system "install -m 755 -d ${destroot}${prefix}/sbin"
	system "install -m 555 ${worksrcpath}/${portname} \
		${destroot}${prefix}/sbin"
	system "install -m 755 -d ${destroot}${prefix}/share/${portname}"
	system "install -m 444 ${worksrcpath}/COPY* \
		${destroot}${prefix}/share/${portname}"
	system "install -m 444 ${worksrcpath}/README* \
		${destroot}${prefix}/share/${portname}"
	system "install -m 444 ${worksrcpath}/sample-* \
		${destroot}${prefix}/share/${portname}"
}
# vim: ts=8 sw=8

