Index: Makefile =================================================================== --- Makefile (revision 425377) +++ Makefile (working copy) @@ -66,6 +66,8 @@ post-patch: .if ${PORT_OPTIONS:MCOMWARE} ${CAT} ${FILESDIR}/comware_types.conf >> ${WRKSRC}/etc/rancid.types.base + ${SED} -e 's/%%VERSION%%/${PORTVERSION}/g' ${FILESDIR}/cmwlogin > ${WRKDIR}/cmwlogin + ${SED} -e 's/%%VERSION%%/${PORTVERSION}/g' ${FILESDIR}/cmw.pm > ${WRKDIR}/cmw.pm .endif ${REINPLACE_CMD} "s|par.1|rancid-par.1|" ${WRKSRC}/man/Makefile.in ${MV} ${WRKSRC}/man/par.1 ${WRKSRC}/man/rancid-par.1 @@ -76,8 +78,8 @@ ${LN} -s ${LOCALBASE}/libexec/${PORTNAME}/rancid-cvs ${STAGEDIR}${LOCALBASE}/bin ${LN} -s ${LOCALBASE}/libexec/${PORTNAME}/rancid-run ${STAGEDIR}${LOCALBASE}/bin .if ${PORT_OPTIONS:MCOMWARE} - ${INSTALL_DATA} ${FILESDIR}/cmw.pm ${STAGEDIR}/${LOCALBASE}/lib/rancid - ${INSTALL_SCRIPT} ${FILESDIR}/cmwlogin ${STAGEDIR}/${LOCALBASE}/libexec/rancid + ${INSTALL_DATA} ${WRKDIR}/cmw.pm ${STAGEDIR}/${LOCALBASE}/lib/rancid + ${INSTALL_SCRIPT} ${WRKDIR}/cmwlogin ${STAGEDIR}/${LOCALBASE}/libexec/rancid .endif .for file in ${NEWCONFIG_FILES} @ if [ -f ${LOCALBASE}/etc/${PORTNAME}/${file} ] ; then \ Index: files/cmw.pm =================================================================== --- files/cmw.pm (revision 425377) +++ files/cmw.pm (working copy) @@ -2,7 +2,7 @@ ## ## $Id: cmw.pm.in 3000 2015-01-06 18:47:49Z heas $ ## -## rancid 3.1.99 +## rancid %%VERSION%% ## Copyright (c) 1997-2015 by Terrapin Communications, Inc. ## All rights reserved. ## @@ -53,7 +53,7 @@ require(Exporter); our @ISA = qw(Exporter); -use rancid 3.1.99; +use rancid %%VERSION%%; our $login; @@ -520,6 +520,3 @@ 1; -__END__ - - Index: files/cmwlogin =================================================================== --- files/cmwlogin (revision 425377) +++ files/cmwlogin (working copy) @@ -2,7 +2,7 @@ ## ## $Id: cmwlogin 3022 2015-01-13 20:00:00Z heas $ ## -## rancid 3.1.99 +## rancid %%VERSION%% ## Copyright (c) 1997-2015 by Terrapin Communications, Inc. ## All rights reserved. ## @@ -140,7 +140,7 @@ set do_passwd 0 # Version string } -V* { - send_user "rancid 3.1.99\n" + send_user "rancid %%VERSION%%\n" exit 0 # Enable Username } -w* { Index: files/comware_types.conf =================================================================== --- files/comware_types.conf (revision 425377) +++ files/comware_types.conf (working copy) @@ -1,4 +1,5 @@ # Comware devices +# source: https://sites.google.com/site/jrbinks/code/rancid/cmwrancid cmw;script;rancid -t cmw cmw;login;cmwlogin cmw;module;cmw