Files
Lawrence VelázquezandMojca Miklavec 34b3070336 Remove all $Id$ lines
for pf in */*/Portfile
do
    ed -s "$pf" <<-'EOF'
	1,3g/^[[:space:]]*#[[:space:]]*\$Id.*\$[[:space:]]*$/d
	1g/^[[:space:]]*$/d
	w
	q
	EOF
done
2016-12-28 18:14:04 +01:00

41 lines
1.2 KiB
Plaintext

PortSystem 1.0
name bnetd
version 0.4.25
revision 1
categories net games
license GPL-2+
platforms darwin
maintainers nomaintainer
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 {
set vardir ${destroot}${prefix}/var/bnetd
foreach file {users reports chanlogs charinfo charsave ladders bak/charsave bak/charinfo} {
xinstall -m 755 -d ${vardir}/${file}
destroot.keepdirs-append ${vardir}/${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
}