blob: 4d7a55807ed4c67058953c67b17b262d128bf48b [file] [log] [blame]
Alexander Afanasyev0ac70782013-08-14 16:49: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 ndnx-trace v1.1.4
8checksums rmd160 0bfd1c6637cdd67fba8dba20a7b77ccf187284cb \
9 sha256 49e732a3648010387463dbfb367b40825d03a968866a82d4897b3a848c49590c
10
11name ndnx-trace
12homepage http://code.google.com/p/ccnx-trace/
13license GPL-3+
14version 1.1.4
15
16categories net
17platforms darwin
18maintainers ucla.edu:alexander.afanasyev
19
20description traceroute-like functionality for NDNx
21
22long_description The NDNx Trace is a tool with traceroute like functionality for NDNx. \
23 The NDNx code can be obtained at http://www.ndnx.org. This tools is \
24 written for troubleshooting problems in a network of ndnx nodes. This \
25 tool can trace to a certain NDN URI, e.g, ndnx:/ndn/csu/netsec/index. \
26 The tool displays all routes to the namespace and problems at each route, \
27 if any. In this process, the tool bypasses the intermediate ndnx caches.
28
29use_autoreconf yes
30use_configure yes
31depends_lib-append port:ndnx
32
33configure.args-append --with-ndnx=${prefix} \
34 --with-openssl=${prefix}
35
36post-patch {
37 reinplace "s|LOGFILE \"ndn_traced.log\"|LOGFILE \"${prefix}/var/log/ndn_traced.log\"|g" ${worksrcpath}/source/conf.h
38}
39
40post-destroot {
41 system "echo \"su - ndnx -c '${prefix}/bin/ndn_traced'\" > \"${destroot}${prefix}/bin/ndn_traced-wrapper\""
42 file attributes "${destroot}${prefix}/bin/ndn_traced-wrapper" -permissions 0755
43}
44
45post-activate {
46 touch "${prefix}/var/log/ndn_traced.log"
47 file attributes "${prefix}/var/log/ndn_traced.log" -owner ndnx -group ndnx
48}
49
50startupitem.executable "${prefix}/bin/ndn_traced-wrapper"
51
52startupitem.create yes
53startupitem.name ${name}
54
55startupitem.netchange no
56
57startupitem.logevents yes
58startupitem.logfile ${prefix}/var/log/ndnx-trace-events.log
59