a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 22478 2007-03-02 05:16:40Z pipping@macports.org $
PortSystem 1.0
name bnetd
version 0.4.25
revision 1
categories net games
platforms darwin
maintainers nomaintainer@macports.org
description daemon that emulates Blizzards Battle.net service
long_description ${description}
homepage http://www.chiark.greenend.org.uk/~owend/free/bnetd.html
master_sites http://www.chiark.greenend.org.uk/~owend/free/
checksums md5 8a27ad997fabfb6d1dc514bb14c01bed
patchfiles patch-d2cs-cmdline_parse.c.diff \
patch-d2dbs-cmdline_parse.c.diff \
patch-d2dbs-main.c.diff
worksrcdir ${worksrcdir}/src
configure.args --host=powerpc-apple-freebsd \
--mandir=${prefix}/share/man/ \
--sysconfdir=${prefix}/etc/bnetd/ \
--localstatedir=${prefix}/var/bnetd/
pre-destroot {
reinplace "s|${prefix}|\${prefix}|g" ${worksrcpath}/Makefile
}
destroot.destdir prefix=${destroot}${prefix}
post-destroot {
cd ${destroot}${prefix}/var/bnetd
xinstall -m 755 -d users reports chanlogs charinfo charsave \
ladders bak/charsave bak/charinfo
foreach file {users reports chanlogs charinfo charsave ladders bak/charsave bak/charinfo} {
destroot.keepdirs-append ${destroot}${prefix}/var/bnetd/${file}
}
reinplace "s|${destroot}${prefix}|${prefix}|g" \
${destroot}${prefix}/etc/bnetd/bnetd.conf \
${destroot}${prefix}/etc/bnetd/d2cs.conf \
${destroot}${prefix}/etc/bnetd/d2dbs.conf
}