blob: 63d30df1d525c649b8af184e0190d27017c2f253 [file] [log] [blame]
Alexander Afanasyev93ef1512012-08-31 15:37:40 -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
5
6name ccnx-trace
7homepage http://code.google.com/p/ccnx-trace/
8license GPL-3+
9version 1.1
Alexander Afanasyev89753c72012-10-03 18:30:45 -070010revision 1
Alexander Afanasyev93ef1512012-08-31 15:37:40 -070011
12categories net ccnx
13platforms darwin
14maintainers ucla.edu:alexander.afanasyev
15
16description traceroute-like functionality for CCNx
17
18long_description The CCNx Trace is a tool with traceroute like functionality for CCNx. \
19 The CCNx code can be obtained at http://www.ccnx.org. This tools is \
20 written for troubleshooting problems in a network of ccnx nodes. This \
21 tool can trace to a certain CCN URI, e.g, ccnx:/ndn/csu/netsec/index. \
22 The tool displays all routes to the namespace and problems at each route, \
23 if any. In this process, the tool bypasses the intermediate ccnx caches.
24
25master_sites http://ccnx-trace.googlecode.com/files/
26checksums rmd160 31d1b240cff0450c61acf7ca8884bd8121b4310e \
27 sha256 2c04ad0a109c5f40f7ab11ee12193ce116a3e29c6e98a3d31e44620626430a53
28
29use_configure false
30depends_lib-append port:ccnx
31
32# # User should be already created by ccnx port
33# set ccnxuser ccnx
34# set ccnxgroup ccnx
35# set ccnxdir ${prefix}/etc/ccnx
36
37patchfiles patch-Makefiles.diff
38
39set worksrcpath ${workpath}/ccnx-trace
40
41build.env-append CFLAGS=-I${prefix}/include \
42 LDFLAGS=-L${prefix}/lib \
43 CC=${configure.cc}
44
45destroot {
46 xinstall ${worksrcpath}/source/trace ${destroot}${prefix}/bin/ccntrace
47 xinstall ${worksrcpath}/source/ccn_traced ${destroot}${prefix}/bin/ccn_traced
Alexander Afanasyev91eace92012-10-03 18:52:46 -070048
49 system "echo \"su - ccnx -c '${prefix}/bin/ccn_traced'\" > \"${destroot}${prefix}/bin/ccn_traced-wrapper\""
50 file attributes "${destroot}${prefix}/bin/ccn_traced-wrapper" -permissions 0755
Alexander Afanasyev93ef1512012-08-31 15:37:40 -070051}
Alexander Afanasyev89753c72012-10-03 18:30:45 -070052
Alexander Afanasyev91eace92012-10-03 18:52:46 -070053startupitem.executable "${prefix}/bin/ccn_traced-wrapper"
Alexander Afanasyev89753c72012-10-03 18:30:45 -070054
55startupitem.create yes
56startupitem.name ${name}
57
58startupitem.netchange no
59startupitem.logevents no