blob: 3556db63e930a7e4288ecc229c8cb396a3365eb3 [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
Alexander Afanasyev337623b2012-12-19 16:25:46 -08005PortGroup github 1.0
Alexander Afanasyev93ef1512012-08-31 15:37:40 -07006
Alexander Afanasyev286efc02013-05-23 16:50:44 -04007github.setup cawka ccnx-trace 1.1.3
8checksums rmd160 d7119d5caaaa1eb28d7fcf4ea432e2af325e414c \
9 sha256 ef37df403fe99dc9aaed7bd5c45462f8e1e050f37c5a0a182e0b8fd4b6335c40
10
Alexander Afanasyev93ef1512012-08-31 15:37:40 -070011name ccnx-trace
12homepage http://code.google.com/p/ccnx-trace/
13license GPL-3+
Alexander Afanasyev286efc02013-05-23 16:50:44 -040014version 1.1.3
Alexander Afanasyev93ef1512012-08-31 15:37:40 -070015
16categories net ccnx
17platforms darwin
18maintainers ucla.edu:alexander.afanasyev
19
20description traceroute-like functionality for CCNx
21
22long_description The CCNx Trace is a tool with traceroute like functionality for CCNx. \
23 The CCNx code can be obtained at http://www.ccnx.org. This tools is \
24 written for troubleshooting problems in a network of ccnx nodes. This \
25 tool can trace to a certain CCN URI, e.g, ccnx:/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 ccnx caches.
28
Alexander Afanasyev337623b2012-12-19 16:25:46 -080029use_autoreconf yes
30use_configure yes
Alexander Afanasyev93ef1512012-08-31 15:37:40 -070031depends_lib-append port:ccnx
32
Alexander Afanasyev337623b2012-12-19 16:25:46 -080033configure.args-append --with-ccnx=${prefix} \
34 --with-openssl=${prefix}
Alexander Afanasyev93ef1512012-08-31 15:37:40 -070035
Alexander Afanasyev337623b2012-12-19 16:25:46 -080036post-patch {
37 reinplace "s|LOGFILE \"ccn_traced.log\"|LOGFILE \"${prefix}/var/log/ccn_traced.log\"|g" ${worksrcpath}/source/conf.h
Alexander Afanasyev337623b2012-12-19 16:25:46 -080038}
Alexander Afanasyev93ef1512012-08-31 15:37:40 -070039
Alexander Afanasyev337623b2012-12-19 16:25:46 -080040post-destroot {
Alexander Afanasyev91eace92012-10-03 18:52:46 -070041 system "echo \"su - ccnx -c '${prefix}/bin/ccn_traced'\" > \"${destroot}${prefix}/bin/ccn_traced-wrapper\""
Alexander Afanasyev337623b2012-12-19 16:25:46 -080042 file attributes "${destroot}${prefix}/bin/ccn_traced-wrapper" -permissions 0755
43}
44
45post-activate {
46 touch "${prefix}/var/log/ccn_traced.log"
47 file attributes "${prefix}/var/log/ccn_traced.log" -owner ccnx -group ccnx
Alexander Afanasyev93ef1512012-08-31 15:37:40 -070048}
Alexander Afanasyev89753c72012-10-03 18:30:45 -070049
Alexander Afanasyev91eace92012-10-03 18:52:46 -070050startupitem.executable "${prefix}/bin/ccn_traced-wrapper"
Alexander Afanasyev89753c72012-10-03 18:30:45 -070051
52startupitem.create yes
53startupitem.name ${name}
54
55startupitem.netchange no
Alexander Afanasyev337623b2012-12-19 16:25:46 -080056
57startupitem.logevents yes
58startupitem.logfile ${prefix}/var/log/ccnx-trace-events.log
59