Opened 12 years ago

Last modified 12 years ago

#35852 new submission

new port: ccnx

Reported by: cawka (Alex Afanasyev) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: ccnx

Description

ProjectCCNx implementation of Content Centric Networking (CCN) / Named Data Networking (NDN) architecture

Project CCNx® exists to develop, promote, and evaluate a new approach to communication architecture we call content-centric networking. We seek to carry out this mission by creating and publishing open protocol specifications and an open source software reference implementation of those protocols. We provide support for a community of people interested in experimentation, research, and building applications with this technology, all contributing to its evolution.

Attachments (5)

patch-macports-customizations.diff (26.5 KB) - added by cawka (Alex Afanasyev) 12 years ago.
Combined patch of the source code
Portfile (5.2 KB) - added by cawka (Alex Afanasyev) 12 years ago.
Updated Portfile to ccnx version 0.7.1
ccnx-Portfile (5.1 KB) - added by anddam (Andrea D'Amore) 12 years ago.
minor changes
Portfile.2 (5.4 KB) - added by cawka (Alex Afanasyev) 12 years ago.
corrected Portfile and updated ccnx version (0.7.1-ucla-1)
Portfile.3 (5.4 KB) - added by cawka (Alex Afanasyev) 12 years ago.
one more correction of he Portfile

Download all attachments as: .zip

Change History (11)

Changed 12 years ago by cawka (Alex Afanasyev)

Combined patch of the source code

comment:1 Changed 12 years ago by cawka (Alex Afanasyev)

Cc: alexander.afanasyev@… added

Cc Me!

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: alexander.afanasyev@… removed
Port: ccnx added

Some notes:

  • The epoch and revision should start at 0.
  • The license versions should be indicated.
  • Multiple configure.env-append and build.env-append invocations should be combined.
  • Possibly you may want to append to rather than overwrite configure.cflags.
  • The reinplace that you are doing in a pre-build block should probably be done in a post-patch or post-configure block, so that, if the user were to interrupt and repeat the build phase, the second try would not try to re-run the reinplace
  • "xinstall -d" should be used to create directories instead of "system "mkdir""
  • "file attributes -permissions" should be used to set permissions instead of "system "chown"", or when creating a directory you can use "xinstall" to do that too
  • You should not register a logfile to the port (by installing it into the destroot); the logfile would be deleted when the port is upgraded or uninstalled, which the user would not expect. If the software cannot live without an existing logfile, then you can create it directly in ${prefix} (i.e. not in ${destroot}${prefix}) in a post-activate block, if it doesn't already exist.
  • The portfile uses our standard modeline, which is good, but then the portfile's whitespace should conform to it: indentations should occur at multiples of 4 spaces

comment:3 Changed 12 years ago by cawka (Alex Afanasyev)

I have uploaded the updated the Portfile.

I have moved creating of log file into post-activate phase. The reason for having it is that log file should be owned by a ccnx user. If I don't create the file, the daemon will not be able to create it in ${prefix}/var/log directory.

comment:4 Changed 12 years ago by cawka (Alex Afanasyev)

I have updated Portfile for the latest ccnx release. Additional patches are not necessary anymore, but I'm not sure how to remove it...

Changed 12 years ago by cawka (Alex Afanasyev)

Attachment: Portfile added

Updated Portfile to ccnx version 0.7.1

Changed 12 years ago by anddam (Andrea D'Amore)

Attachment: ccnx-Portfile added

minor changes

comment:5 Changed 12 years ago by anddam (Andrea D'Amore)

Minor changes applied to the Portfile, I attached it as ccnx-Portfile.

comment:6 Changed 12 years ago by raimue (Rainer Müller)

Minor things that do not block a commit, but could be refined:

  • -O0 -g seems unnecessary in configure.cflags. Might have been good for debugging, but should not be the released version unless there are problems with the default of -O2.
  • ${ccnxdir} is defined to ${prefix}/etc/ccnx, but the path is hardcoded at multiple locations instead of using the variable.
  • variants do not have a description

Changed 12 years ago by cawka (Alex Afanasyev)

Attachment: Portfile.2 added

corrected Portfile and updated ccnx version (0.7.1-ucla-1)

Changed 12 years ago by cawka (Alex Afanasyev)

Attachment: Portfile.3 added

one more correction of he Portfile

Note: See TracTickets for help on using tickets.