Alexander Afanasyev | 9944ebc | 2012-08-20 18:40:12 -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 |
| 5 | name ccnx |
Alexander Afanasyev | 8e85028 | 2012-08-23 10:04:58 -0700 | [diff] [blame^] | 6 | version 0.6.1 |
Alexander Afanasyev | 9944ebc | 2012-08-20 18:40:12 -0700 | [diff] [blame] | 7 | revision 1 |
| 8 | epoch 1 |
| 9 | categories net |
| 10 | platforms darwin |
| 11 | license GPL LGPL |
| 12 | maintainers ucla.edu:alexander.afanasyev |
| 13 | description ProjectCCNx implementation of Content Centric Networking (CCN) / \ |
| 14 | Named Data Networking (NDN) architecture |
| 15 | long_description Project CCNx® exists to develop, promote, and evaluate a new \ |
| 16 | approach to communication architecture we call content-centric \ |
| 17 | networking. We seek to carry out this mission by creating and \ |
| 18 | publishing open protocol specifications and an open source \ |
| 19 | software reference implementation of those protocols. We provide \ |
| 20 | support for a community of people interested in experimentation, \ |
| 21 | research, and building applications with this technology, all \ |
| 22 | contributing to its evolution. |
| 23 | homepage http://www.ccnx.org/ |
Alexander Afanasyev | 8e85028 | 2012-08-23 10:04:58 -0700 | [diff] [blame^] | 24 | |
| 25 | fetch.type git |
| 26 | git.url https://github.com/ProjectCCNx/ccnx.git |
| 27 | git.branch ccnx-0.6.1 |
| 28 | |
| 29 | # master_sites http://www.ccnx.org/releases/ |
| 30 | # checksums rmd160 9c8eb49aa8d2edfe5eb873312f6273ca469255a4 \ |
| 31 | # sha256 7ac8f2ac3b6bcda85e9b4df34c025f68d576d98dcadf16eea2ed1c3dcee4d557 |
Alexander Afanasyev | 9944ebc | 2012-08-20 18:40:12 -0700 | [diff] [blame] | 32 | |
| 33 | # use_parallel_build yes |
| 34 | |
| 35 | depends_lib port:openssl \ |
| 36 | port:expat \ |
| 37 | port:libpcap \ |
| 38 | port:libxml2 |
| 39 | |
| 40 | # default_variants +java |
| 41 | |
| 42 | configure.env-append OPENSSL_CFLAGS=-I${prefix}/include |
| 43 | configure.env-append OPENSSL_LIBS=-L${prefix}/lib |
| 44 | configure.env-append INSTALL_BASE=${prefix} |
Alexander Afanasyev | 8e85028 | 2012-08-23 10:04:58 -0700 | [diff] [blame^] | 45 | configure.cflags -DCCNX_DIR=\\\"${prefix}/etc/ccnx\\\" |
Alexander Afanasyev | 9944ebc | 2012-08-20 18:40:12 -0700 | [diff] [blame] | 46 | |
| 47 | pre-build { |
| 48 | reinplace "s|\$HOME/.ccnx/|${prefix}/etc/ccnx/|g" ${worksrcpath}/csrc/util/ccndstart.sh |
| 49 | } |
| 50 | |
| 51 | build.env-append OPENSSL_CFLAGS=-I${prefix}/include |
| 52 | build.env-append OPENSSL_LIBS=-L${prefix}/lib |
| 53 | build.env-append INSTALL_BASE=${destroot}${prefix} |
| 54 | build.env-append CCNX_DIR=${destroot}${prefix}/etc/ccnx |
| 55 | |
| 56 | destroot.env-append INSTALL_BASE=${destroot}${prefix} |
| 57 | destroot.env-append CCNX_DIR=${destroot}${prefix}/etc/ccnx |
| 58 | |
Alexander Afanasyev | 196c672 | 2012-08-20 18:49:33 -0700 | [diff] [blame] | 59 | patchfiles patch-macports-customizations.diff |
Alexander Afanasyev | 9944ebc | 2012-08-20 18:40:12 -0700 | [diff] [blame] | 60 | |
| 61 | startupitem.pidfile none |
| 62 | startupitem.start "${prefix}/bin/ccndstart" |
| 63 | startupitem.stop "${prefix}/bin/ccndstop" |
Alexander Afanasyev | 8ccc53d | 2012-08-20 23:12:24 -0700 | [diff] [blame] | 64 | startupitem.restart "${prefix}/bin/ccndstop && sleep 3 && ${prefix}/bin/ccndstart" |
Alexander Afanasyev | 9944ebc | 2012-08-20 18:40:12 -0700 | [diff] [blame] | 65 | |
| 66 | startupitem.create yes |
| 67 | startupitem.name ccnx |
| 68 | |
| 69 | startupitem.netchange yes |
| 70 | startupitem.logevents yes |
| 71 | startupitem.logfile ${prefix}/var/log/ccnx.log |
| 72 | |
| 73 | notes " |
| 74 | In order repo to work, you need to add the following lines at the end of your \[~/.bash_profile\]: |
| 75 | |
| 76 | export CCNR_DIRECTORY=${prefix}/etc/ccnx/repo |
| 77 | |
| 78 | To configure environment variables for ccnd, edit your \[${prefix}/etc/ccnx/ccndrc\]. For example, |
| 79 | |
| 80 | CCND_LOG=${prefix}/var/log/ccnd.log |
| 81 | CCND_DEBUG=16 |
| 82 | |
| 83 | To add static FIB entries, edit your \[${prefix}/etc/ccnx/ccnd.conf\]. For example, |
| 84 | |
| 85 | add ccnx:/ccnx.org udp 224.0.23.170 59695 |
| 86 | |
| 87 | For more information and documentation, refer to man pages and http://www.ccnx.org website. |
| 88 | " |