source: trunk/dports/net/bnetd/Portfile

Last change on this file was 123092, checked in by jmr@…, 3 years ago

bnetd: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: Portfile 123092 2014-08-05 04:44:06Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            bnetd
6version         0.4.25
7revision        1
8categories      net games
9license         GPL-2+
10platforms       darwin
11maintainers     nomaintainer
12description     daemon that emulates Blizzards Battle.net service
13long_description        ${description}
14
15homepage        http://www.chiark.greenend.org.uk/~owend/free/bnetd.html
16master_sites    http://www.chiark.greenend.org.uk/~owend/free/
17checksums       md5 8a27ad997fabfb6d1dc514bb14c01bed
18patchfiles      patch-d2cs-cmdline_parse.c.diff \
19                patch-d2dbs-cmdline_parse.c.diff \
20                patch-d2dbs-main.c.diff
21
22worksrcdir      ${worksrcdir}/src
23
24configure.args  --host=powerpc-apple-freebsd \
25                --mandir=${prefix}/share/man/ \
26                --sysconfdir=${prefix}/etc/bnetd/ \
27                --localstatedir=${prefix}/var/bnetd/
28pre-destroot    {
29        reinplace "s|${prefix}|\${prefix}|g" ${worksrcpath}/Makefile
30}
31destroot.destdir        prefix=${destroot}${prefix}
32post-destroot   {
33        set vardir ${destroot}${prefix}/var/bnetd
34        foreach file {users reports chanlogs charinfo charsave ladders bak/charsave bak/charinfo} {
35                xinstall -m 755 -d ${vardir}/${file}
36                destroot.keepdirs-append ${vardir}/${file}
37        }
38        reinplace "s|${destroot}${prefix}|${prefix}|g" \
39                ${destroot}${prefix}/etc/bnetd/bnetd.conf \
40                ${destroot}${prefix}/etc/bnetd/d2cs.conf \
41                ${destroot}${prefix}/etc/bnetd/d2dbs.conf
42}
Note: See TracBrowser for help on using the repository browser.