blob: 21fb9e9340c12451b9574a2993b68be43e50469e [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
6version 0.6.1rc1
7revision 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/
24master_sites http://www.ccnx.org/releases/
25checksums rmd160 9c8eb49aa8d2edfe5eb873312f6273ca469255a4 \
26 sha256 7ac8f2ac3b6bcda85e9b4df34c025f68d576d98dcadf16eea2ed1c3dcee4d557
27
28# use_parallel_build yes
29
30depends_lib port:openssl \
31 port:expat \
32 port:libpcap \
33 port:libxml2
34
35# default_variants +java
36
37configure.env-append OPENSSL_CFLAGS=-I${prefix}/include
38configure.env-append OPENSSL_LIBS=-L${prefix}/lib
39configure.env-append INSTALL_BASE=${prefix}
Alexander Afanasyev0dd32272012-08-22 11:56:43 -070040configure.cflags -DCCNX_DIR=\\\"${prefix}/etc/ccnx\\\" -g3 -O0
Alexander Afanasyev9944ebc2012-08-20 18:40:12 -070041
42pre-build {
43 reinplace "s|\$HOME/.ccnx/|${prefix}/etc/ccnx/|g" ${worksrcpath}/csrc/util/ccndstart.sh
44}
45
46build.env-append OPENSSL_CFLAGS=-I${prefix}/include
47build.env-append OPENSSL_LIBS=-L${prefix}/lib
48build.env-append INSTALL_BASE=${destroot}${prefix}
49build.env-append CCNX_DIR=${destroot}${prefix}/etc/ccnx
50
51destroot.env-append INSTALL_BASE=${destroot}${prefix}
52destroot.env-append CCNX_DIR=${destroot}${prefix}/etc/ccnx
53
Alexander Afanasyev196c6722012-08-20 18:49:33 -070054patchfiles patch-macports-customizations.diff
Alexander Afanasyev9944ebc2012-08-20 18:40:12 -070055
56startupitem.pidfile none
57startupitem.start "${prefix}/bin/ccndstart"
58startupitem.stop "${prefix}/bin/ccndstop"
Alexander Afanasyev8ccc53d2012-08-20 23:12:24 -070059startupitem.restart "${prefix}/bin/ccndstop && sleep 3 && ${prefix}/bin/ccndstart"
Alexander Afanasyev9944ebc2012-08-20 18:40:12 -070060
61startupitem.create yes
62startupitem.name ccnx
63
64startupitem.netchange yes
65startupitem.logevents yes
66startupitem.logfile ${prefix}/var/log/ccnx.log
67
68notes "
69In order repo to work, you need to add the following lines at the end of your \[~/.bash_profile\]:
70
71 export CCNR_DIRECTORY=${prefix}/etc/ccnx/repo
72
73To configure environment variables for ccnd, edit your \[${prefix}/etc/ccnx/ccndrc\]. For example,
74
75 CCND_LOG=${prefix}/var/log/ccnd.log
76 CCND_DEBUG=16
77
78To add static FIB entries, edit your \[${prefix}/etc/ccnx/ccnd.conf\]. For example,
79
80 add ccnx:/ccnx.org udp 224.0.23.170 59695
81
82For more information and documentation, refer to man pages and http://www.ccnx.org website.
83"