pkgsrc/net/rancid/Makefile
pettai 451eaa7247 3.6.1
ios.pm: filter license registration timestamp
        fnrancid: filter oscillating md5-keys
        par.c: fix misplaced pointer deref

3.6
        rancid.pm: ipaddrval() if IPv6 prefix length is missing, simply set 128.
        *login: in_proc must be global in expect_after.  had trouble reproducing
        the original error, but this should be the correct fix.
        xlogin: escape the * in lastprompt - Mattieu Beretti
        *login: change handling of ssh key-related prompts to one line at a time
        to eliminate timing-related problem.
        alogin: login() eat one line at a time
        a10login: remove the aflex-specific stuff.  This is the wrong way to
        do this and it doesn't work properly anyway.
        control_rancid: create <group>/configs if it does not exist
        hrancid: use rancid.pm (removes code duplication)
        rancid.pm: check for existence of functions for given device type after
        loading the modules for the type.  return failure if any are missing.
        par: add -FH options
        rancid.types.conf, iosshtech.pm: Add device type ciscoshtech for
        example purposes
        acos.pm: filter trailing WS & recognize incomplete/invalid command
        error in basicFilter()
        acos.pm: filter trailing WS in ShowAflex()
        acos.pm: 'show vlan' is 'show vlans' in ACOS 4.x.
        acos.pm: Add cmd 'show partition-config all' for ACOS 4.x, where
        'show running-config all-partitions' does not work.
        acos.pm: recognize invalid cmd error in ShowRunningConfig() and filter
        the config size comment
        fnlogin: missing "end" to exit global mode for -[csx] - Richard Goode
        plogin: add -m & -M
        rancid.pm: missing variable initialization
        nxos.pm: fix bug in recognizing the end of an access-list
        hlogin: set tty init options when there is no controlling tty and set
        set the term width to 132 when there is no controlling tty and for -[sc]
        so that the hp device does not wrap lines.
        ios.pm: also filter IPv6 PDP addresses - Reuben Farrelly
        ios.pm: evaluation license periods are displayed differently
        lg: Add show interface optics
        iosxr.pm: More useless FPD messages
        junos.pm: handle a transient cmd protocol failure seen in show version
        control_rancid: use git ls-files instead of git status for .gitignore
        and <group>/rancid.conf
        fnrancid: fix formatting around removal of private-keys
        bigip.pm: filter snmpv3 oscillating auth-password-encrypted
        iosxr.pm: filter useless FPD upgrade message
2016-12-23 19:31:26 +00:00

76 lines
2.3 KiB
Makefile

# $NetBSD: Makefile,v 1.21 2016/12/23 19:31:26 pettai Exp $
#
DISTNAME= rancid-3.6.1
CATEGORIES= net
MASTER_SITES= ftp://ftp.shrubbery.net/pub/rancid/
MAINTAINER= pettai@NetBSD.org
HOMEPAGE= http://www.shrubbery.net/rancid/
COMMENT= Really Awesome New Cisco confIg Differ
LICENSE= original-bsd
DEPENDS+= tcl-expect>=5.4:../../lang/tcl-expect
BUILD_DEFS+= VARBASE
GNU_CONFIGURE= yes
USE_TOOLS+= perl:run
CONFIGURE_ARGS+= --disable-conf-install
CONFIGURE_ARGS+= --localstatedir=${VARBASE}/rancid
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/doc
CONFIGURE_ENV+= PERLV_PATH=${PERL5:Q}
CONFIGURE_ENV+= DIRNAME=${DIRNAME}
CONFIGURE_ENV+= ID=${ID}
RC_USER?= rancid
RC_GROUP?= rancid
PKG_GROUPS= ${RC_GROUP}
PKG_USERS= ${RC_USER}:${RC_GROUP}
PKG_GECOS.${RC_USER}= Really Awesome New Cisco confIg Differ
PKG_HOME.${RC_USER}= ${VARBASE}/rancid
PKG_SHELL.${RC_USER}= ${SH}
PKG_USERS_VARS+= RC_USER
PKG_GROUPS_VARS+= RC_GROUP
REPLACE_PERL= lib/dell.pm.in
EGDIR= ${PREFIX}/share/examples/rancid
PKG_SYSCONFSUBDIR?= rancid
CONF_FILES_PERMS= ${EGDIR}/lg.conf.sample ${PKG_SYSCONFDIR}/lg.conf \
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0644
CONF_FILES_PERMS+= ${EGDIR}/rancid.conf.sample ${PKG_SYSCONFDIR}/rancid.conf \
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0644
CONF_FILES_PERMS+= ${EGDIR}/rancid.types.base ${PKG_SYSCONFDIR}/rancid.types.base \
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0644
MESSAGE_SUBST+= PREFIX=${PREFIX}
MESSAGE_SUBST+= RC_USER=${RC_USER}
SUBST_CLASSES+= paths
SUBST_FILES.paths= ${WRKSRC}/etc/lg.conf.sample.in
SUBST_FILES.paths+= ${WRKSRC}/etc/rancid.conf.sample.in
SUBST_STAGE.paths= post-extract
SUBST_SED.paths= -e 's,@ENV_PATH@,${PREFIX}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin,'
OWN_DIRS_PERMS+= ${VARBASE}/rancid ${RC_USER} ${RC_GROUP} 0755
INSTALLATION_DIRS= share/examples/rancid
INSTALLATION_DIRS+= share/doc/rancid
INSTALLATION_DIRS+= ${VARBASE}/rancid
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" && exists(/sbin/ping)
CONFIGURE_ARGS+= ac_cv_PING_PATH=/sbin/ping
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/etc/lg.conf.sample ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/etc/rancid.conf.sample ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/etc/rancid.types.base ${DESTDIR}${EGDIR}
.include "../../mk/bsd.pkg.mk"