Alexander Afanasyev | 93ef151 | 2012-08-31 15:37:40 -0700 | [diff] [blame] | 1 | # -*- 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 | |
| 4 | PortSystem 1.0 |
Alexander Afanasyev | 337623b | 2012-12-19 16:25:46 -0800 | [diff] [blame] | 5 | PortGroup github 1.0 |
Alexander Afanasyev | 93ef151 | 2012-08-31 15:37:40 -0700 | [diff] [blame] | 6 | |
| 7 | name ccnx-trace |
| 8 | homepage http://code.google.com/p/ccnx-trace/ |
| 9 | license GPL-3+ |
Alexander Afanasyev | 337623b | 2012-12-19 16:25:46 -0800 | [diff] [blame] | 10 | version 1.1.1 |
| 11 | revision 0 |
Alexander Afanasyev | 93ef151 | 2012-08-31 15:37:40 -0700 | [diff] [blame] | 12 | |
| 13 | categories net ccnx |
| 14 | platforms darwin |
| 15 | maintainers ucla.edu:alexander.afanasyev |
| 16 | |
| 17 | description traceroute-like functionality for CCNx |
| 18 | |
| 19 | long_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 Afanasyev | 337623b | 2012-12-19 16:25:46 -0800 | [diff] [blame] | 26 | github.setup cawka ccnx-trace 1.1.1 |
| 27 | checksums rmd160 fa569bf96d226c5317e1e518ace6b49eb4a05cba \ |
| 28 | sha256 b59043944900a219c9f8852c46fdb3864bca6949776e668deff106537415f99e |
Alexander Afanasyev | 93ef151 | 2012-08-31 15:37:40 -0700 | [diff] [blame] | 29 | |
Alexander Afanasyev | 337623b | 2012-12-19 16:25:46 -0800 | [diff] [blame] | 30 | #master_sites http://ccnx-trace.googlecode.com/files/ |
| 31 | #checksums rmd160 31d1b240cff0450c61acf7ca8884bd8121b4310e \ |
| 32 | # sha256 2c04ad0a109c5f40f7ab11ee12193ce116a3e29c6e98a3d31e44620626430a53 |
| 33 | |
| 34 | use_autoreconf yes |
| 35 | use_configure yes |
Alexander Afanasyev | 93ef151 | 2012-08-31 15:37:40 -0700 | [diff] [blame] | 36 | depends_lib-append port:ccnx |
| 37 | |
Alexander Afanasyev | 337623b | 2012-12-19 16:25:46 -0800 | [diff] [blame] | 38 | #patchfiles patch-Makefiles.diff |
Alexander Afanasyev | 93ef151 | 2012-08-31 15:37:40 -0700 | [diff] [blame] | 39 | |
Alexander Afanasyev | 337623b | 2012-12-19 16:25:46 -0800 | [diff] [blame] | 40 | configure.args-append --with-ccnx=${prefix} \ |
| 41 | --with-openssl=${prefix} |
Alexander Afanasyev | 93ef151 | 2012-08-31 15:37:40 -0700 | [diff] [blame] | 42 | |
Alexander Afanasyev | 337623b | 2012-12-19 16:25:46 -0800 | [diff] [blame] | 43 | post-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 Afanasyev | 93ef151 | 2012-08-31 15:37:40 -0700 | [diff] [blame] | 47 | |
Alexander Afanasyev | 337623b | 2012-12-19 16:25:46 -0800 | [diff] [blame] | 48 | post-destroot { |
Alexander Afanasyev | 91eace9 | 2012-10-03 18:52:46 -0700 | [diff] [blame] | 49 | system "echo \"su - ccnx -c '${prefix}/bin/ccn_traced'\" > \"${destroot}${prefix}/bin/ccn_traced-wrapper\"" |
Alexander Afanasyev | 337623b | 2012-12-19 16:25:46 -0800 | [diff] [blame] | 50 | file attributes "${destroot}${prefix}/bin/ccn_traced-wrapper" -permissions 0755 |
| 51 | } |
| 52 | |
| 53 | post-activate { |
| 54 | touch "${prefix}/var/log/ccn_traced.log" |
| 55 | file attributes "${prefix}/var/log/ccn_traced.log" -owner ccnx -group ccnx |
Alexander Afanasyev | 93ef151 | 2012-08-31 15:37:40 -0700 | [diff] [blame] | 56 | } |
Alexander Afanasyev | 89753c7 | 2012-10-03 18:30:45 -0700 | [diff] [blame] | 57 | |
Alexander Afanasyev | 91eace9 | 2012-10-03 18:52:46 -0700 | [diff] [blame] | 58 | startupitem.executable "${prefix}/bin/ccn_traced-wrapper" |
Alexander Afanasyev | 89753c7 | 2012-10-03 18:30:45 -0700 | [diff] [blame] | 59 | |
| 60 | startupitem.create yes |
| 61 | startupitem.name ${name} |
| 62 | |
| 63 | startupitem.netchange no |
Alexander Afanasyev | 337623b | 2012-12-19 16:25:46 -0800 | [diff] [blame] | 64 | |
| 65 | startupitem.logevents yes |
| 66 | startupitem.logfile ${prefix}/var/log/ccnx-trace-events.log |
| 67 | |