PortSystem 1.0
PortGroup muniversal 1.0

name			slirp
version			1.0.17
categories		comms
license			BSD-old MIT
platforms		darwin
maintainers		nomaintainer
description		Slirp emulates a PPP or SLIP connection over a normal terminal.
long_description	Slirp emulates a PPP or SLIP connection over a normal \
					terminal. This is an actual PPP or SLIP link, firewalled \
					for people's protection. It makes a quick way to connect \
					your Palm Pilot over the Internet via your Unix box.

homepage		http://slirp.sourceforge.net/

# No distfile is available for slirp-1.0.17 -- the update is distributed as a
# patch
distname		${name}-1.0.16
worksrcdir		${distname}
master_sites		sourceforge
checksums		md5 b712f2fe58aaf87172cfd31c95fc1e31

# Include both the 1.0.17 update and Debian's fixes for compiler warnings
# and LP64. The Debian maintainer submitted his changes upstream, but no
# response from the slirp maintainer was forthcoming.
patchfiles		patch-Makefile.in \
			fix17.patch \
			debian-slirp_1.0.17-3.diff

worksrcdir		${worksrcdir}/src

post-destroot	{
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/
	xinstall -m 755 -W ${worksrcpath}/../docs CONFIG slirp.doc \
		alt.dcom.slip-emulators.FAQ ${destroot}${prefix}/share/doc/${name}/
}