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