ccnping: Deprecating (replaced by ndnping)
diff --git a/net/ccnping/Portfile b/net/ccnping/Portfile
index a9941c8..96bd363 100644
--- a/net/ccnping/Portfile
+++ b/net/ccnping/Portfile
@@ -2,56 +2,18 @@
# $Id$
PortSystem 1.0
-PortGroup github 1.0
-
-github.setup NDN-Routing ccnping 071f07b409c62dc1cf0de4e2eb2d214ea76bb624
-checksums rmd160 8c7071eba0e93da07f71f0dda7b0a538a7cbd078 \
- sha256 b7c9ce05a990b7ef8411e43fcc60cf861a8da1e9d55e0bcc1ef557103cf2f4a6
name ccnping
homepage https://github.com/NDN-Routing/ccnping
license GPL-2+
version 0.1
-revision 1
categories net ccnx
-platforms darwin
maintainers ucla.edu:alexander.afanasyev
description ping command equivalent for CCNx
long_description ccnpingserver and ccnping are CCNx applications used for testing connectivity
-use_configure false
-depends_lib-append port:ccnx
-
-# User should be already created by ccnx port
-set ccnxuser ccnx
-set ccnxgroup ccnx
-set ccnxdir ${prefix}/etc/ccnx
-
-build.env-append CFLAGS=-I${prefix}/include \
- LIBS=-L${prefix}/lib \
- INSTALL_BASE=${prefix} \
- CC=${configure.cc}
-
-destroot {
- system "echo /ndn/`hostname` > ${ccnxdir}/ccnpingserver.conf.example"
- xinstall -W ${worksrcpath} ccnping ccnpingserver ccnpingserver-wrapper ${destroot}${prefix}/bin/
-}
-
-patchfiles patch-Makefile.diff \
- patch-wrapper.diff
-
-notes "
-ccnpingserver needs a local prefix to be configured in ${ccnxdir}/ccnpingserver.conf
-configuration file. This file should contain just one line with local prefix, for example: /ndn/ucla.edu
-"
-
-startupitem.executable "${prefix}/bin/ccnpingserver-wrapper"
-
-startupitem.create yes
-startupitem.name ${name}
-
-startupitem.netchange no
-startupitem.logevents no
+replaced_by ndnping
+PortGroup obsolete 1.0
diff --git a/net/ccnping/files/patch-Makefile.diff b/net/ccnping/files/patch-Makefile.diff
deleted file mode 100644
index c2498db..0000000
--- a/net/ccnping/files/patch-Makefile.diff
+++ /dev/null
@@ -1,32 +0,0 @@
-diff --git Makefile Makefile
-index bf720d4..e8a9b86 100644
---- Makefile
-+++ Makefile
-@@ -1,22 +1,21 @@
--CC = cc
--CFLAGS = -g -Wall -Wpointer-arith -Wreturn-type -Wstrict-prototypes
--LIBS = -lccn -lcrypto
-+EXTRA_CFLAGS = -g -Wall -Wpointer-arith -Wreturn-type -Wstrict-prototypes
-+EXTRA_LIBS = -lccn -lcrypto
-
- PROGRAMS = ccnping ccnpingserver
-
- all: $(PROGRAMS)
-
- ccnping: ccnping.o
-- $(CC) $(CFLAGS) -o $@ ccnping.o $(LIBS)
-+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ ccnping.o $(LIBS) $(EXTRA_LIBS)
-
- ccnpingserver: ccnpingserver.o
-- $(CC) $(CFLAGS) -o $@ ccnpingserver.o $(LIBS)
-+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ ccnpingserver.o $(LIBS) $(EXTRA_LIBS)
-
- clean:
- rm -f *.o
- rm -f $(PROGRAMS)
-
- .c.o:
-- $(CC) $(CFLAGS) -c $<
-+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $<
-
- .PHONY: all clean
diff --git a/net/ccnping/files/patch-wrapper.diff b/net/ccnping/files/patch-wrapper.diff
deleted file mode 100644
index 5e68729..0000000
--- a/net/ccnping/files/patch-wrapper.diff
+++ /dev/null
@@ -1,19 +0,0 @@
-diff --git ccnpingserver-wrapper ccnpingserver-wrapper
-new file mode 100755
-index 0000000..c0993c8
---- /dev/null
-+++ ccnpingserver-wrapper
-@@ -0,0 +1,13 @@
-+#!/bin/sh
-+
-+# This script should be installed in the same place as ccnd, ccndc, ccndsmoketest, ...
-+# adjust the path to get consistency.
-+D=`dirname "$0"`
-+export PATH="$D:$PATH"
-+
-+if [ ! -f "$D/../etc/ccnx/ccnpingserver.conf" ]; then
-+ sleep 100
-+else
-+ su - ccnx -c "$D/ccnpingserver `cat $D/../etc/ccnx/ccnpingserver.conf | xargs`"
-+fi
-+