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