blob: a6412eb43b58f5f8ff410a7dbbd40fd82296caf2 [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}
40configure.cflags-append -DCCNX_DIR=\\\"${prefix}/etc/ccnx\\\"
41
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
54patchfiles patch-test.diff
55# patchfiles patch-csrc-lib-dir.mk.diff \
56# patch-Makefile.diff \
57# patch-csrc-lib-ccn_client.c.diff \
58# patch-csrc-configure.diff \
59# patch-csrc-lib-encodedecodetest.c.diff
60
61startupitem.pidfile none
62startupitem.start "${prefix}/bin/ccndstart"
63startupitem.stop "${prefix}/bin/ccndstop"
64startupitem.restart "${prefix}/bin/ccndstop && ${prefix}/bin/ccndstart"
65
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"