# $Id$

PortSystem 1.0

name			ipcheck
version			0.242
revision		1
categories		net
license			GPL-2
maintainers		nomaintainer
description		dynamic dns client written in python
platforms		darwin freebsd
supported_archs	noarch

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
# unversioned distfile, sigh
master_sites

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

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

depends_run		bin:python:python27

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

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

use_configure	no

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.\]+)<