# $Id: Portfile 112153 2013-10-14 04:18:47Z jmr@macports.org $

PortSystem 1.0

name             ipsvd
version          1.0.0
revision         1
categories       net
license          BSD
maintainers      nomaintainer
description      internet protocol service daemons
long_description \
	ipsvd is a set of internet protocol service \
	daemons for Unix. It currently includes a \
	TCP/IP service daemon, and a UDP/IP service \
	daemon.
homepage         http://smarden.org/ipsvd/
platforms        darwin
master_sites     ${homepage}

checksums        md5     82c8710e4beec3e92f3d9a616290232b \
                 sha1    1762c0e756adc46ff8f69bacc3a57943d08add35 \
                 rmd160  2afc7c09521c2f63f3f5d2db3b5a86470e8a628b

use_configure    no

worksrcdir       net/${name}-${version}

build.dir        ${worksrcpath}/src
build.target
use_parallel_build   no

test.run         yes
test.target      check

destroot {
	foreach app {ipsvd-cdb tcpsvd udpsvd} {
		xinstall -m 555 ${build.dir}/${app} \
			${destroot}${prefix}/sbin
		xinstall -m 444 ${worksrcpath}/man/${app}.8 \
			${destroot}${prefix}/share/man/man8
	}

	xinstall -m 444 ${worksrcpath}/man/ipsvd-instruct.5 \
		${destroot}${prefix}/share/man/man5
	xinstall -m 444 ${worksrcpath}/man/ipsvd.7 \
		${destroot}${prefix}/share/man/man7
	xinstall -m 444 ${worksrcpath}/man/sslio.8 \
		${destroot}${prefix}/share/man/man8

	xinstall -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 444 -W ${worksrcpath}/package README COPYING \
		${destroot}${prefix}/share/doc/${name}
}

livecheck.type  regex
livecheck.url   ${homepage}install.html
livecheck.regex ${name}-(\[0-9.\]+)\\.tar
