Ticket #35855: Portfile

File Portfile, 1.7 KB (added by cawka (Alex Afanasyev), 12 years ago)

Updated portfile (v2)

Line 
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
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        NDN-Routing ccnping 071f07b409c62dc1cf0de4e2eb2d214ea76bb624
8checksums           rmd160  8c7071eba0e93da07f71f0dda7b0a538a7cbd078 \
9                    sha256  b7c9ce05a990b7ef8411e43fcc60cf861a8da1e9d55e0bcc1ef557103cf2f4a6
10
11name                ccnping
12homepage            https://github.com/NDN-Routing/ccnping
13license             GPL-2+
14version             0.1
15revision            0
16
17categories          net ccnx
18platforms           darwin
19maintainers         ucla.edu:alexander.afanasyev
20
21description         ping command equivalent for CCNx
22
23long_description    ccnpingserver and ccnping are CCNx applications used for testing connectivity
24
25use_configure       false
26depends_lib-append  port:ccnx
27
28# User should be already created by ccnx port
29set ccnxuser        ccnx
30set ccnxgroup       ccnx
31set ccnxdir         ${prefix}/etc/ccnx
32
33build.env-append    CFLAGS=-I${prefix}/include \
34                    LIBS=-L${prefix}/lib \
35                    INSTALL_BASE=${prefix} \
36                    CC=${configure.cc}
37
38destroot {
39    system "echo /ndn/`hostname` > ${ccnxdir}/ccnpingserver.conf.example"
40    xinstall -W ${worksrcpath} ccnping ccnpingserver ${destroot}${prefix}/bin/
41}
42
43patchfiles          patch-Makefile.diff
44
45notes "
46ccnpingserver is usually run on a hub.  For example, on Arizona hub, ccnpingserver
47is started by running \[ccnpingserver /ndn/arizona.edu\]. Then we can run
48\[ccnping /ndn/arizona.edu\] from other nodes to test connectivity towards name
49prefix /ndn/arizona.edu.
50"