blob: 2d4610b289abcd1f7b85fa31d9b62a1a0889e078 [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
Alexander Afanasyevd9b5aad2012-08-27 14:16:37 -07004PortSystem 1.0
5PortGroup github 1.0
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -07006
Alexander Afanasyevd9b5aad2012-08-27 14:16:37 -07007name ccnping
8homepage https://github.com/NDN-Routing/ccnping
9license GPL-2+
10version 0.1
11revision 0
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -070012
Alexander Afanasyevd9b5aad2012-08-27 14:16:37 -070013categories net ccnx
14platforms darwin
15maintainers ucla.edu:alexander.afanasyev
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -070016
Alexander Afanasyevd9b5aad2012-08-27 14:16:37 -070017description ping command equivalent for CCNx
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -070018
Alexander Afanasyevd9b5aad2012-08-27 14:16:37 -070019long_description ccnpingserver and ccnping are CCNx applications used for testing connectivity
20
21github.setup NDN-Routing ccnping 071f07b409c62dc1cf0de4e2eb2d214ea76bb624
22checksums rmd160 8c7071eba0e93da07f71f0dda7b0a538a7cbd078 \
23 sha256 b7c9ce05a990b7ef8411e43fcc60cf861a8da1e9d55e0bcc1ef557103cf2f4a6
24
25use_configure false
Alexander Afanasyev9291faa2012-08-27 15:00:11 -070026depends_lib-append port:ccnx
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -070027
28# User should be already created by ccnx port
Alexander Afanasyevd9b5aad2012-08-27 14:16:37 -070029set ccnxuser ccnx
30set ccnxgroup ccnx
31set ccnxdir ${prefix}/etc/ccnx
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -070032
Alexander Afanasyevd9b5aad2012-08-27 14:16:37 -070033build.env-append CFLAGS=-I${prefix}/include \
34 LIBS=-L${prefix}/lib \
35 INSTALL_BASE=${prefix} \
36 CC=${configure.cc}
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -070037
38destroot {
39 system "echo /ndn/`hostname` > ${ccnxdir}/ccnpingserver.conf.example"
40 xinstall -W ${worksrcpath} ccnping ccnpingserver ${destroot}${prefix}/bin/
41}
42
Alexander Afanasyevd9b5aad2012-08-27 14:16:37 -070043patchfiles patch-Makefile.diff
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -070044
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"