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 |
Alexander Afanasyev | 35f6ca9 | 2012-10-03 18:55:11 -0700 | [diff] [blame^] | 15 | revision 1 |
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" |
Alexander Afanasyev | 63dd161 | 2012-10-03 18:53:07 -0700 | [diff] [blame] | 40 | xinstall -W ${worksrcpath} ccnping ccnpingserver ccnpingserver-wrapper ${destroot}${prefix}/bin/ |
Alexander Afanasyev | ad9f64f | 2012-08-24 23:22:48 -0700 | [diff] [blame] | 41 | } |
| 42 | |
Alexander Afanasyev | 63dd161 | 2012-10-03 18:53:07 -0700 | [diff] [blame] | 43 | patchfiles patch-Makefile.diff \ |
| 44 | patch-wrapper.diff |
Alexander Afanasyev | ad9f64f | 2012-08-24 23:22:48 -0700 | [diff] [blame] | 45 | |
| 46 | notes " |
Alexander Afanasyev | 63dd161 | 2012-10-03 18:53:07 -0700 | [diff] [blame] | 47 | ccnpingserver needs a local prefix to be configured in ${ccnxdir}/ccnpingserver.conf |
| 48 | configuration file. This file should contain just one line with local prefix, for example: /ndn/ucla.edu |
Alexander Afanasyev | ad9f64f | 2012-08-24 23:22:48 -0700 | [diff] [blame] | 49 | " |
Alexander Afanasyev | 63dd161 | 2012-10-03 18:53:07 -0700 | [diff] [blame] | 50 | |
| 51 | startupitem.executable "${prefix}/bin/ccnpingserver-wrapper" |
| 52 | |
| 53 | startupitem.create yes |
| 54 | startupitem.name ${name} |
| 55 | |
| 56 | startupitem.netchange no |
| 57 | startupitem.logevents no |