blob: 2ea20b9a0b68641142a6f9957817113deccc96bd [file] [log] [blame]
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -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
Alexander Afanasyevd9b5aad2012-08-27 14:16:37 -07004PortSystem 1.0
5PortGroup github 1.0
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -07006
Alexander Afanasyev6cf07c02012-08-27 15:18:48 -07007github.setup NDN-Routing ccnping 071f07b409c62dc1cf0de4e2eb2d214ea76bb624
8checksums rmd160 8c7071eba0e93da07f71f0dda7b0a538a7cbd078 \
9 sha256 b7c9ce05a990b7ef8411e43fcc60cf861a8da1e9d55e0bcc1ef557103cf2f4a6
10
Alexander Afanasyevd9b5aad2012-08-27 14:16:37 -070011name ccnping
12homepage https://github.com/NDN-Routing/ccnping
13license GPL-2+
14version 0.1
15revision 0
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -070016
Alexander Afanasyevd9b5aad2012-08-27 14:16:37 -070017categories net ccnx
18platforms darwin
19maintainers ucla.edu:alexander.afanasyev
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -070020
Alexander Afanasyevd9b5aad2012-08-27 14:16:37 -070021description ping command equivalent for CCNx
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -070022
Alexander Afanasyevd9b5aad2012-08-27 14:16:37 -070023long_description ccnpingserver and ccnping are CCNx applications used for testing connectivity
24
Alexander Afanasyevd9b5aad2012-08-27 14:16:37 -070025use_configure false
Alexander Afanasyev9291faa2012-08-27 15:00:11 -070026depends_lib-append port:ccnx
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -070027
28# User should be already created by ccnx port
Alexander Afanasyevd9b5aad2012-08-27 14:16:37 -070029set ccnxuser ccnx
30set ccnxgroup ccnx
31set ccnxdir ${prefix}/etc/ccnx
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -070032
Alexander Afanasyevd9b5aad2012-08-27 14:16:37 -070033build.env-append CFLAGS=-I${prefix}/include \
34 LIBS=-L${prefix}/lib \
35 INSTALL_BASE=${prefix} \
36 CC=${configure.cc}
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -070037
38destroot {
39 system "echo /ndn/`hostname` > ${ccnxdir}/ccnpingserver.conf.example"
Alexander Afanasyev63dd1612012-10-03 18:53:07 -070040 xinstall -W ${worksrcpath} ccnping ccnpingserver ccnpingserver-wrapper ${destroot}${prefix}/bin/
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -070041}
42
Alexander Afanasyev63dd1612012-10-03 18:53:07 -070043patchfiles patch-Makefile.diff \
44 patch-wrapper.diff
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -070045
46notes "
Alexander Afanasyev63dd1612012-10-03 18:53:07 -070047ccnpingserver needs a local prefix to be configured in ${ccnxdir}/ccnpingserver.conf
48configuration file. This file should contain just one line with local prefix, for example: /ndn/ucla.edu
Alexander Afanasyevad9f64f2012-08-24 23:22:48 -070049"
Alexander Afanasyev63dd1612012-10-03 18:53:07 -070050
51startupitem.executable "${prefix}/bin/ccnpingserver-wrapper"
52
53startupitem.create yes
54startupitem.name ${name}
55
56startupitem.netchange no
57startupitem.logevents no