# $Id: Portfile 66257 2010-04-08 03:38:13Z ryandesign@macports.org $

PortSystem 1.0

name			ipcheck
version			0.242
categories		net
maintainers		nomaintainer
description		dynamic dns client written in python
platforms		darwin freebsd
long_description	ipcheck updates your ip address at one of the dynamic \
				dns address providers like dyndns.org

homepage		http://ipcheck.sourceforge.net
master_sites	sourceforge

dist_subdir		${name}/${version}
distfiles		${name}.py

checksums		md5     297ac4ea00216b13a73646f0d76c267e \
				sha1    42b785ebf55a23d6526178f863716c35260d0d2c \
				rmd160  6609da8a647b0b795b6b1ce63cac59eb2fd9abd5

depends_run		bin:python:python24

extract {
	file copy ${distpath}/${distfiles} ${workpath}/${name}
}

post-patch {
	reinplace "s|/usr/bin/python|/usr/bin/env python|g" ${workpath}/${name}
}

use_configure	no

if {[info exists supported_archs]} {
    supported_archs noarch
}

build			{}

destroot {
	xinstall -m 755 ${workpath}/${name} ${destroot}${prefix}/bin/
}

livecheck.type	regex
livecheck.url	http://sourceforge.net/projects/ipcheck/files/
livecheck.regex	>v(\[0-9.\]+)<
