blob: 6dd2abdd2ddbe277017c57d781b5516b3099f980 [file] [log] [blame]
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -07001# -*- 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
5name ccnping
6version 0.1
7revision 1
8epoch 1
9categories net
10platforms darwin
11license GPL LGPL
12maintainers ucla.edu:alexander.afanasyev
13description ping command equivalent for CCNx
14long_description ccnpingserver and ccnping are CCNx applications used for testing connectivity
15homepage https://github.com/NDN-Routing/ccnping
16
17use_configure false
18
19fetch.type git
20git.url https://github.com/NDN-Routing/ccnping.git
21git.branch master
22
23use_parallel_build no
24
25depends_lib port:ccnx
26
27# User should be already created by ccnx port
28set ccnxuser ccnx
29set ccnxgroup ccnx
30set ccnxdir ${prefix}/etc/ccnx
31
32build.env-append CFLAGS=-I${prefix}/include
33build.env-append LIBS=-L${prefix}/lib
34build.env-append INSTALL_BASE=${prefix}
35build.env-append CC=${configure.cc}
36
37destroot {
38 system "echo /ndn/`hostname` > ${ccnxdir}/ccnpingserver.conf.example"
39 xinstall -W ${worksrcpath} ccnping ccnpingserver ${destroot}${prefix}/bin/
40}
41
42patchfiles patch-Makefile.diff
43
44# startupitem.executable "su ${ccnxuser} -c \"${prefix}/bin/ccnpingserver `cat ${ccnxdir}/ccnpingserver.conf`\""
45# startupitem.create yes
46# startupitem.name ccnping
47
48notes "
49ccnpingserver is usually run on a hub. For example, on Arizona hub, ccnpingserver
50is started by running \[ccnpingserver /ndn/arizona.edu\]. Then we can run
51\[ccnping /ndn/arizona.edu\] from other nodes to test connectivity towards name
52prefix /ndn/arizona.edu.
53"
54
55# To run ccnpingserver, a name prefix should be configured in \[${ccnxdir}/ccnpingserver.conf\] file.