pkgsrc/net/rancid/Makefile

76 lines
2.3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.23 2017/08/15 13:22:20 jperkin Exp $
#
DISTNAME= rancid-3.6.2
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
2.3.6 * rancid: fail on error opening nvram: * rancid: skip ASA 5520 configuration author line * control_rancid: for svn stupidity, run update (yes update) and commit after setting svn:ignore, else . is out of date. * rancid: filter auto "rogue ap" configuration * alogin: adjust match of active alarms msg at login * jrancid: patch for master/backup matching on EX series * rancid: update cisco WAE identity string match * {xr}rancid: summarize DirSlotN() bytes free as GB, else MB. * rancid: filter sflog from DirSlotN() for IOS on cisco 10k * fnrancid: update recent fortinet software * rancid: ignore show flash on IOS XE * rancid: copy the dhcp database filter to ShowFlash() * clogin: Fix pasto in IOS terminal width command. * hlogin: -r missing from usage o/p * clogin: add -r and passphrase/identfile from cloginrc * francid: remove system uptime line on CER 3000 2.3.5 * alogin: respond to active alarms msg at login * *rancid: update for grammar deprecated in perl 5.12 * *login: handle noenable value consistently, '1' to turn it on * configure: look for -n <count> option to ping, for Windows ping (over cygwin) * rancid: missed case fpr accepting '>' prompt, rather than just '#' * xrrancid: filter sequences from ipv4/6 access-lists * zrancid: force terminal type vt100 so as not to confuse Linux * francid: filter system uptime on new Brocades * rancid: filter ASA time-based license noise * rancid: filter command in WriteTerm if echoed * configure: specifically look for ping in /sbin & /usr/sbin & fix typo in test operator * rancid: handle a few IOS serial number formatting variants * hpuifilter: change filtering to avoid use of string functions due to a Debian bug. Should be faster too. * rancid: adjust show inventory matches for variables WS * nxrancid: show environment clock and show core vdc-all are not valid commands on all platforms
2011-01-24 15:54:57 +01:00
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
.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"