blob: 5a5373880741bfa75aac1c26641d5b2ab4aa16bb [file] [log] [blame]
Alexander Afanasyev9944ebc2012-08-20 18:40:12 -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
5name ccnx
Alexander Afanasyev8e850282012-08-23 10:04:58 -07006version 0.6.1
Alexander Afanasyev9944ebc2012-08-20 18:40:12 -07007revision 1
8epoch 1
9categories net
10platforms darwin
11license GPL LGPL
12maintainers ucla.edu:alexander.afanasyev
13description ProjectCCNx implementation of Content Centric Networking (CCN) / \
14 Named Data Networking (NDN) architecture
15long_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.
23homepage http://www.ccnx.org/
Alexander Afanasyev8e850282012-08-23 10:04:58 -070024
25fetch.type git
26git.url https://github.com/ProjectCCNx/ccnx.git
27git.branch ccnx-0.6.1
28
29# master_sites http://www.ccnx.org/releases/
30# checksums rmd160 9c8eb49aa8d2edfe5eb873312f6273ca469255a4 \
31# sha256 7ac8f2ac3b6bcda85e9b4df34c025f68d576d98dcadf16eea2ed1c3dcee4d557
Alexander Afanasyev9944ebc2012-08-20 18:40:12 -070032
33# use_parallel_build yes
34
35depends_lib port:openssl \
36 port:expat \
37 port:libpcap \
38 port:libxml2
39
40# default_variants +java
41
42configure.env-append OPENSSL_CFLAGS=-I${prefix}/include
43configure.env-append OPENSSL_LIBS=-L${prefix}/lib
44configure.env-append INSTALL_BASE=${prefix}
Alexander Afanasyev8e850282012-08-23 10:04:58 -070045configure.cflags -DCCNX_DIR=\\\"${prefix}/etc/ccnx\\\"
Alexander Afanasyev9944ebc2012-08-20 18:40:12 -070046
47pre-build {
48 reinplace "s|\$HOME/.ccnx/|${prefix}/etc/ccnx/|g" ${worksrcpath}/csrc/util/ccndstart.sh
49}
50
51build.env-append OPENSSL_CFLAGS=-I${prefix}/include
52build.env-append OPENSSL_LIBS=-L${prefix}/lib
53build.env-append INSTALL_BASE=${destroot}${prefix}
54build.env-append CCNX_DIR=${destroot}${prefix}/etc/ccnx
55
56destroot.env-append INSTALL_BASE=${destroot}${prefix}
57destroot.env-append CCNX_DIR=${destroot}${prefix}/etc/ccnx
58
Alexander Afanasyev196c6722012-08-20 18:49:33 -070059patchfiles patch-macports-customizations.diff
Alexander Afanasyev9944ebc2012-08-20 18:40:12 -070060
61startupitem.pidfile none
62startupitem.start "${prefix}/bin/ccndstart"
63startupitem.stop "${prefix}/bin/ccndstop"
Alexander Afanasyev8ccc53d2012-08-20 23:12:24 -070064startupitem.restart "${prefix}/bin/ccndstop && sleep 3 && ${prefix}/bin/ccndstart"
Alexander Afanasyev9944ebc2012-08-20 18:40:12 -070065
66startupitem.create yes
67startupitem.name ccnx
68
69startupitem.netchange yes
70startupitem.logevents yes
71startupitem.logfile ${prefix}/var/log/ccnx.log
72
73notes "
74In 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
78To 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
83To 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
87For more information and documentation, refer to man pages and http://www.ccnx.org website.
88"