Date: Wed, 19 Aug 2015 15:56:26 GMT From: roam@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r289928 - soc2015/roam Message-ID: <201508191556.t7JFuQRS077121@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: roam Date: Wed Aug 19 15:56:26 2015 New Revision: 289928 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=289928 Log: Makefile: add a ayiya-server test target Modified: soc2015/roam/Makefile Modified: soc2015/roam/Makefile ============================================================================== --- soc2015/roam/Makefile Wed Aug 19 15:56:23 2015 (r289927) +++ soc2015/roam/Makefile Wed Aug 19 15:56:26 2015 (r289928) @@ -38,6 +38,8 @@ RM?= rm -rf MKDIR?= mkdir -p +SUDO?= sudo + down: cd ${.CURDIR}/ng_ayiya && ${MAKE} down @@ -66,3 +68,25 @@ distclean: ${RM} $D/ cd $S && ${MAKE} cleandir && ${MAKE} cleandir + +shutdown: + ${SUDO} ngctl list | awk "/Type: ayiya/ { print \$$2 }" | while read node; do \ + ${SUDO} ngctl shutdown "$$node:inet6" || true; \ + ${SUDO} ngctl shutdown "$$node:"; \ + done + +ayiya-server: + @if [ -z "${TUNNELSFILE}" ] || [ -z "${LISTENADDR}" ]; then \ + printf "\n\nYou must specify the path to the tic-tunnels.txt file in the TUNNELSFILE variable and the IPv4 address to listen on in the LISTENADDR variable\n\n"; \ + false; \ + fi + + ${MAKE} -C ${.CURDIR} obj + ${MAKE} -C ${.CURDIR} depend + ${MAKE} -C ${.CURDIR} + + ${MAKE} -C ${.CURDIR} shutdown + ${SUDO} ${MAKE} -C ${.CURDIR}/ng_ayiya unload || true + ${SUDO} ${MAKE} -C ${.CURDIR}/ng_ayiya load + + cd ${.CURDIR} && ${SUDO} `${MAKE} -C ${.CURDIR}/ayiya_listen -V .OBJDIR`/ayiya_listen -v -a "${LISTENADDR}" -t "${TUNNELSFILE}" -v
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508191556.t7JFuQRS077121>