ccnx+ccnping+ndndump+py-pyccn: Portfile updates according to recommendations
diff --git a/net/ccnping/Portfile b/net/ccnping/Portfile
index c4a9203..2d4610b 100644
--- a/net/ccnping/Portfile
+++ b/net/ccnping/Portfile
@@ -23,7 +23,7 @@
                     sha256  b7c9ce05a990b7ef8411e43fcc60cf861a8da1e9d55e0bcc1ef557103cf2f4a6
 
 use_configure       false
-depends_lib         port:ccnx
+depends_lib-append  port:ccnx
 
 # User should be already created by ccnx port
 set ccnxuser        ccnx
diff --git a/net/ccnx/Portfile b/net/ccnx/Portfile
index b8e2041..ca34446 100644
--- a/net/ccnx/Portfile
+++ b/net/ccnx/Portfile
@@ -32,7 +32,7 @@
                         
 use_parallel_build      yes
                         
-depends_lib             port:openssl \
+depends_lib-append      port:openssl \
                         port:expat \
                         port:libpcap \
                         port:libxml2
diff --git a/net/ndndump/Portfile b/net/ndndump/Portfile
index d4a0fb0..06363ae 100644
--- a/net/ndndump/Portfile
+++ b/net/ndndump/Portfile
@@ -2,34 +2,32 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           github 1.0
 
-use_configure       yes
-use_autoreconf      yes
 name                ndndump
-version             0.1
-revision            1
-description	        tcpdump for NDN
-long_description \
-	A simple tcpdump-like program that decodes and print out \
-    ccnb-formatted packets (see www.ccnx.org).
-maintainers         ucla.edu:alexander.afanasyev
-categories	        net
-platforms	        darwin
 homepage            https://github.com/cawka/ndndump
+license             GNU-3+
+version             0.1
+revision            0
 
-fetch.type git
-git.url    https://github.com/cawka/ndndump.git
-git.branch master
+categories	        net ccnx
+platforms	        darwin
+maintainers         ucla.edu:alexander.afanasyev
 
-depends_build	\
-	port:autoconf \
-    port:libtool \
-	port:pkgconfig
-depends_lib-append	\
-    port:openssl \
-    port:ccnx \
-    port:boost \
-    port:libpcap
+description	        tcpdump for NDN
 
-configure.args-append --with-ccnx=${prefix}
-configure.args-append --with-boost=${prefix}
+long_description    A simple tcpdump-like program that decodes and print out \
+                    ccnb-formatted packets (see www.ccnx.org).
+
+use_autoreconf      yes
+
+github.setup        cawka ndndump v0.1
+checksums           rmd160  05320e661ff050a7dcb188299091f7321ac8e008 \
+                    sha256  f7b09b67b19f89026e92a86d642205d5f674cce54605ae100cc045bc0e4d9634
+
+depends_lib-append  port:ccnx \
+                    port:boost \
+                    port:libpcap
+
+configure.args-append   --with-ccnx=${prefix} \
+                        --with-boost=${prefix}
diff --git a/net/py-pyccn/Portfile b/net/py-pyccn/Portfile
index 15b88a2..ca0a59d 100644
--- a/net/py-pyccn/Portfile
+++ b/net/py-pyccn/Portfile
@@ -1,55 +1,57 @@
 # -*- 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
 # $Id$
 
-PortSystem          1.0
-PortGroup           python 1.0
+PortSystem              1.0
+PortGroup               python 1.0
+PortGroup               github 1.0
+                        
+# github.setup should be performed before name directive, otherwise port name becomes incorrect
+github.setup            remap PyCCN fc486a1f253e937fb7de40c2a8fc900ca23c166d
+checksums               rmd160  18ac8a27c1f683ee28849f84a3212dc40c1e97de \
+                        sha256  7b1a8f61e0379290c9c3043bfe0072a3fcb8aa9f70f9e53fafe612ba571ddb2d
 
-use_configure       yes
-use_autoreconf      yes
-name                py-pyccn
-version             0.2
-python.versions     27
-python.default_version   27
-revision            1
-description	        PyCCN - CCN bindings for Python
-long_description \
-	A "thin" implementation, which supports Python \
-    objects corresponding to the major CCNx entities - Interest, ContentObject, and \
-    so on, as well as some support objects.  The C code is mostly just responsible \
-    for marshaling data back and forth between the formats, though there are some \
-    useful functions for key generation/access included.
-maintainers         ucla.edu:alexander.afanasyev
-categories	        net python
-platforms	        darwin
-homepage            https://github.com/remap/PyCCN
+name                    py-pyccn
+homepage                https://github.com/remap/PyCCN
+license                 BSD
+version                 0.2
+revision                0
 
-fetch.type git
-git.url    https://github.com/remap/PyCCN.git
-git.branch fc486a1f253e937fb7de40c2a8fc900ca23c166d
+python.versions         27
+python.default_version  27
 
-depends_build	\
-	port:autoconf \
-    port:libtool \
-	port:pkgconfig
-depends_lib-append	\
-    port:openssl \
-    port:ccnx
+categories	            net ccnx python
+platforms	            darwin
+maintainers             ucla.edu:alexander.afanasyev
+
+description	            PyCCN - CCN bindings for Python
+
+long_description        A "thin" implementation, which supports Python \
+                        objects corresponding to the major CCNx entities - Interest, ContentObject, and \
+                        so on, as well as some support objects.  The C code is mostly just responsible \
+                        for marshaling data back and forth between the formats, though there are some \
+                        useful functions for key generation/access included.
+
+depends_lib-append	    port:ccnx
+
+use_autoreconf          yes
+use_configure           yes
 
 pre-configure {
     file mkdir "${worksrcpath}/build-aux"
 
-    configure.args-append --with-ccn=${prefix}
-    configure.env-append OPENSSL_INCLUDES=-I${prefix}/include
-    configure.env-append OPENSSL_LDFLAGS=-L${prefix}/lib
-    configure.env-append OPENSSL_LIBS="-lssl -lcrypto"
-    configure.env-append PYTHON_SITE_PKG=${python.pkgd}
-    configure.env-append PYTHON=${python.bin}
+    configure.env-append    PYTHON_SITE_PKG=${python.pkgd}
+    configure.python        ${python.bin}
 }
 
-build.cmd           make
+configure.args-append   --with-ccn=${prefix}
+configure.env-append    OPENSSL_INCLUDES=-I${prefix}/include \
+                        OPENSSL_LDFLAGS=-L${prefix}/lib \
+                        OPENSSL_LIBS="-lssl -lcrypto"
+
+build.cmd               make
 build.target    
 
-destroot.cmd        make
-destroot.target     install
-destroot.destdir    "DESTDIR=${destroot}"
+destroot.cmd            make
+destroot.target         install
+destroot.destdir        "DESTDIR=${destroot}"