Alexander Afanasyev | ab89676 | 2013-08-14 17:36:34 -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 | |
| 4 | PortSystem 1.0 |
| 5 | PortGroup github 1.0 |
| 6 | |
| 7 | github.setup cawka ndnping v0.2 |
| 8 | checksums rmd160 cf4b078c08c3d28430ac8fda791579597ea05150 \ |
| 9 | sha256 d883d0c7a215f3992cdc1d573fb6b4544b438c888d98c98ffa754f60cb903568 |
| 10 | |
| 11 | name ndnping |
| 12 | homepage https://github.com/NDN-Routing/ndnping |
| 13 | license GPL-2+ |
| 14 | version 0.2 |
| 15 | |
| 16 | categories net |
| 17 | platforms darwin |
| 18 | maintainers ucla.edu:alexander.afanasyev |
| 19 | |
| 20 | description ping command equivalent for NDNx |
| 21 | |
| 22 | long_description ndnpingserver and ndnping are NDNx applications used for testing connectivity |
| 23 | |
| 24 | depends_lib-append port:ndnx |
| 25 | |
| 26 | set ndnxuser ndnx |
| 27 | set ndnxgroup ndnx |
| 28 | set ndnxdir ${prefix}/etc/ndnx |
| 29 | |
| 30 | patchfiles patch-wrapper.diff |
| 31 | |
| 32 | use_configure yes |
| 33 | use_autoreconf yes |
| 34 | |
| 35 | configure.args-append --with-ndn=${prefix} |
| 36 | configure.env-append OPENSSL_INCLUDES=-I${prefix}/include \ |
| 37 | OPENSSL_LDFLAGS=-L${prefix}/lib |
| 38 | |
| 39 | pre-destroot { |
| 40 | xinstall -W ${worksrcpath} ndnping ndnpingserver ndnpingserver-wrapper ${destroot}${prefix}/bin/ |
| 41 | } |
| 42 | |
| 43 | post-destroot { |
| 44 | # Create a configuration directory, which also a home directory for ${ndnxuser} |
| 45 | xinstall -d -o ${ndnxuser} -g ${ndnxgroup} "${destroot}${ndnxdir}" |
| 46 | |
| 47 | system "echo /ndn/`/bin/hostname` > \"${destroot}${ndnxdir}/ndnpingserver.conf.example\"" |
| 48 | } |
| 49 | |
| 50 | notes " |
| 51 | ndnpingserver needs a local prefix to be configured in ${ndnxdir}/ndnpingserver.conf |
| 52 | configuration file. This file should contain just one line with local prefix, for example: /ndn/ucla.edu |
| 53 | " |
| 54 | |
| 55 | startupitem.executable "${prefix}/bin/ndnpingserver-wrapper" |
| 56 | |
| 57 | startupitem.create yes |
| 58 | startupitem.name ${name} |
| 59 | |
| 60 | startupitem.netchange no |
| 61 | startupitem.logevents no |