1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name gogoc |
---|
7 | version 1.2 |
---|
8 | categories net |
---|
9 | platforms darwin |
---|
10 | license Permissive |
---|
11 | maintainers chong.im:fabian |
---|
12 | description gogoCLIENT |
---|
13 | long_description gogoCLIENT IPv6 over IPv4 tunnel and vice versa |
---|
14 | homepage http://www.gogo6.com/profile/gogoCLIENT |
---|
15 | master_sites http://content.gogo6.com/ |
---|
16 | patchfiles patch-make.diff |
---|
17 | |
---|
18 | distname ${name}-[string map {. _} ${version}]-RELEASE |
---|
19 | checksums rmd160 1af2fe3d4c0d23b1550983dcf72b692946b8c699 \ |
---|
20 | sha256 a0ef45c0bd1fc9964dc8ac059b7d78c12674bf67ef641740554e166fa99a2f49 |
---|
21 | |
---|
22 | worksrcdir ${distname}/gogoc-tsp |
---|
23 | |
---|
24 | use_configure no |
---|
25 | |
---|
26 | build.target all |
---|
27 | build.args platform=${platforms} |
---|
28 | use_parallel_build no |
---|
29 | |
---|
30 | #destroot.destdir prefix=${destroot}${prefix} |
---|
31 | destroot.target install |
---|
32 | destroot.args platform=${platforms} installdir=${prefix} |
---|
33 | destroot.keepdirs ${destroot}${prefix}/etc/gogoc |
---|
34 | destroot { |
---|
35 | xinstall -d ${destroot}${prefix}/etc/gogoc/template/ |
---|
36 | xinstall -d ${destroot}${prefix}/man/man5/ |
---|
37 | xinstall -d ${destroot}${prefix}/man/man8/ |
---|
38 | |
---|
39 | xinstall -m 755 ${worksrcpath}/bin/gogoc ${destroot}${prefix}/bin |
---|
40 | xinstall -m 755 ${worksrcpath}/template/${platforms}.sh ${destroot}${prefix}/etc/gogoc/template/${platforms}.sh |
---|
41 | |
---|
42 | xinstall -m 444 ${worksrcpath}/man/man5/gogoc.conf.5 ${destroot}${prefix}/man/man5/gogoc.conf.5 |
---|
43 | xinstall -m 444 ${worksrcpath}/man/man8/gogoc.8 ${destroot}${prefix}/man/man8/gogoc.8 |
---|
44 | |
---|
45 | |
---|
46 | xinstall -m 644 ${worksrcpath}/conf/gogoc.conf.in ${destroot}${prefix}/etc/gogoc/gogoc.conf.sample |
---|
47 | reinplace -E "s|@ifname_v4v6@||" ${destroot}${prefix}/etc/gogoc/gogoc.conf.sample |
---|
48 | reinplace -E "s|@ifname_v6udpv4@|tun0|" ${destroot}${prefix}/etc/gogoc/gogoc.conf.sample |
---|
49 | reinplace -E "s|@ifname_v6v4@|gif0|" ${destroot}${prefix}/etc/gogoc/gogoc.conf.sample |
---|
50 | reinplace -E "s|@conf_template@|${platforms}|" ${destroot}${prefix}/etc/gogoc/gogoc.conf.sample |
---|
51 | reinplace -E "s|@conf_gogoc_dir@|${prefix}|" ${destroot}${prefix}/etc/gogoc/gogoc.conf.sample |
---|
52 | |
---|
53 | if { [file exists ${destroot}${prefix}/etc/gogoc/gogoc.conf] == 0 } { |
---|
54 | xinstall -m 644 ${destroot}${prefix}/etc/gogoc/gogoc.conf.sample ${destroot}${prefix}/etc/gogoc/gogoc.conf |
---|
55 | } |
---|
56 | } |
---|