blob: 64b371fe27626d38551cd1fa286d7323e8842429 [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
7name ccnx-trace
8homepage http://code.google.com/p/ccnx-trace/
9license GPL-3+
Alexander Afanasyev337623b2012-12-19 16:25:46 -080010version 1.1.1
11revision 0
Alexander Afanasyev93ef1512012-08-31 15:37:40 -070012
13categories net ccnx
14platforms darwin
15maintainers ucla.edu:alexander.afanasyev
16
17description traceroute-like functionality for CCNx
18
19long_description The CCNx Trace is a tool with traceroute like functionality for CCNx. \
20 The CCNx code can be obtained at http://www.ccnx.org. This tools is \
21 written for troubleshooting problems in a network of ccnx nodes. This \
22 tool can trace to a certain CCN URI, e.g, ccnx:/ndn/csu/netsec/index. \
23 The tool displays all routes to the namespace and problems at each route, \
24 if any. In this process, the tool bypasses the intermediate ccnx caches.
25
Alexander Afanasyev337623b2012-12-19 16:25:46 -080026github.setup cawka ccnx-trace 1.1.1
27checksums rmd160 fa569bf96d226c5317e1e518ace6b49eb4a05cba \
28 sha256 b59043944900a219c9f8852c46fdb3864bca6949776e668deff106537415f99e
Alexander Afanasyev93ef1512012-08-31 15:37:40 -070029
Alexander Afanasyev337623b2012-12-19 16:25:46 -080030#master_sites http://ccnx-trace.googlecode.com/files/
31#checksums rmd160 31d1b240cff0450c61acf7ca8884bd8121b4310e \
32# sha256 2c04ad0a109c5f40f7ab11ee12193ce116a3e29c6e98a3d31e44620626430a53
33
34use_autoreconf yes
35use_configure yes
Alexander Afanasyev93ef1512012-08-31 15:37:40 -070036depends_lib-append port:ccnx
37
Alexander Afanasyev337623b2012-12-19 16:25:46 -080038#patchfiles patch-Makefiles.diff
Alexander Afanasyev93ef1512012-08-31 15:37:40 -070039
Alexander Afanasyev337623b2012-12-19 16:25:46 -080040configure.args-append --with-ccnx=${prefix} \
41 --with-openssl=${prefix}
Alexander Afanasyev93ef1512012-08-31 15:37:40 -070042
Alexander Afanasyev337623b2012-12-19 16:25:46 -080043post-patch {
44 reinplace "s|LOGFILE \"ccn_traced.log\"|LOGFILE \"${prefix}/var/log/ccn_traced.log\"|g" ${worksrcpath}/source/conf.h
45 reinplace "s|CCN_DIR \"/usr/local/bin/\"|CCN_DIR \"${prefix}/\"|g" ${worksrcpath}/source/conf.h
46}
Alexander Afanasyev93ef1512012-08-31 15:37:40 -070047
Alexander Afanasyev337623b2012-12-19 16:25:46 -080048post-destroot {
Alexander Afanasyev91eace92012-10-03 18:52:46 -070049 system "echo \"su - ccnx -c '${prefix}/bin/ccn_traced'\" > \"${destroot}${prefix}/bin/ccn_traced-wrapper\""
Alexander Afanasyev337623b2012-12-19 16:25:46 -080050 file attributes "${destroot}${prefix}/bin/ccn_traced-wrapper" -permissions 0755
51}
52
53post-activate {
54 touch "${prefix}/var/log/ccn_traced.log"
55 file attributes "${prefix}/var/log/ccn_traced.log" -owner ccnx -group ccnx
Alexander Afanasyev93ef1512012-08-31 15:37:40 -070056}
Alexander Afanasyev89753c72012-10-03 18:30:45 -070057
Alexander Afanasyev91eace92012-10-03 18:52:46 -070058startupitem.executable "${prefix}/bin/ccn_traced-wrapper"
Alexander Afanasyev89753c72012-10-03 18:30:45 -070059
60startupitem.create yes
61startupitem.name ${name}
62
63startupitem.netchange no
Alexander Afanasyev337623b2012-12-19 16:25:46 -080064
65startupitem.logevents yes
66startupitem.logfile ${prefix}/var/log/ccnx-trace-events.log
67