public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-misc/rancid: rancid-2.3.8.ebuild ChangeLog metadata.xml Manifest
@ 2013-01-22 23:08 Michael Weber (xmw)
  0 siblings, 0 replies; only message in thread
From: Michael Weber (xmw) @ 2013-01-22 23:08 UTC (permalink / raw
  To: gentoo-commits

xmw         13/01/22 23:08:39

  Added:                rancid-2.3.8.ebuild ChangeLog metadata.xml Manifest
  Log:
  Initial import, thanks to all contributors on bug 151846.
  
  (Portage version: 2.2.0_alpha154/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)

Revision  Changes    Path
1.1                  net-misc/rancid/rancid-2.3.8.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/rancid/rancid-2.3.8.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/rancid/rancid-2.3.8.ebuild?rev=1.1&content-type=text/plain

Index: rancid-2.3.8.ebuild
===================================================================
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/rancid/rancid-2.3.8.ebuild,v 1.1 2013/01/22 23:08:39 xmw Exp $

EAPI=4

inherit autotools eutils readme.gentoo user

DESCRIPTION="Really Awesome New Cisco confIg Differ"
HOMEPAGE="http://www.shrubbery.net/rancid/"
SRC_URI="ftp://ftp.shrubbery.net/pub/${PN}/${P}.tar.gz"
LICENSE="BSD-4"

SLOT="0"
RESTRICT="mirror"
KEYWORDS="~amd64"
IUSE="cvs subversion"
REQUIRED_USE="^^ ( cvs subversion )"

DEPEND="dev-lang/perl
	dev-lang/tcl
	dev-tcltk/expect
	sys-apps/diffutils
	cvs? ( dev-vcs/cvs )
	subversion? ( dev-vcs/subversion )
	|| (
		net-misc/netkit-telnetd
		net-misc/telnet-bsd
	)"
RDEPEND="${DEPEND}"

src_prepare() {
	epatch "${FILESDIR}"/${P}-mailprefix.patch
	epatch "${FILESDIR}"/${P}-config.patch
	epatch "${FILESDIR}"/${P}-buildsystem.patch
	eautoreconf
}

src_configure() {
	econf \
		--localstatedir="${EPREFIX}"/var/${PN} \
		--enable-conf-install \
		--docdir="${EPREFIX}"/usr/share/doc/${PF} \
		--htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
		$(use svn && echo "--with-svn=fsfs")
}

src_install() {
	default

	if use svn ; then
		sed -e 's/^RCSSYS=cvs/RCSSYS=svn/' \
			-i "${D}"/etc/rancid.conf || die
	fi

	echo "CONFIG_PROTECT=\"${EPREFIX}/var/rancid/.cloginrc\"" > "${T}"/99${PN}
	doenvd "${T}"/99${PN}

	readme.gentoo_src_install
}

pkg_preinst() {
	enewgroup ${PN}
	enewuser ${PN} -1 /bin/bash "${EPREFIX}"/var/rancid ${PN}

	keepdir /var/${PN}{,/logs}
	touch 	"${ED}"/var/${PN}/.cloginrc

	fperms ug=rwX,o= /var/${PN}/{,logs,.cloginrc}
	fowners ${PN}:${PN} /var/${PN}/{,logs,.cloginrc}
}

DOC_CONTENTS="Micro-HOWTO on how to get running:

1) Modify MAILPREFIX, ADMINMAILPREFIX, and LIST_OF_GROUPS
in /etc/rancid.conf:
MAILPREFIX=\"rancid-\"
ADMINMAILPREFIX=\"rancid-admin-\"
LIST_OF_GROUPS=\"routers switches\"

2) Setup email aliases for rancid:
you will need to define mail aliases for {MAILPREFIX}{GROUP}
and {ADMINMAILPREFIX}{GROUP} for each group you defined above
How to do this depends on your mailserver

3) Run rancid-cvs as the rancid user to initialise directories and
repositories; eg. su -c /usr/bin/rancid-cvs - rancid
Note the command is the same even if you are using subversion

4) Populate /var/rancid/{GROUPNAME}/router.db with nodes
see man 5 router.db for detailed formatting information

5) Populate /var/rancid/.cloginrc with credentials
see /usr/share/rancid/cloginrc.sample for an example

6) Test clogin access with: clogin -f /var/rancid/.clogin hostname

7) Add a cronjob for the rancid user to regularly call rancid-run
eg: run crontab -u rancid -e and add the lines below
# run rancid once an hour
0 * * * *	/usr/bin/rancid-run
# cleanup old logfiles generated by rancid once a day
50 23 * * *	/usr/bin/find /var/rancid/logs -type f -mtime +2 -exec rm {} \;
"



1.1                  net-misc/rancid/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/rancid/ChangeLog?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/rancid/ChangeLog?rev=1.1&content-type=text/plain

Index: ChangeLog
===================================================================
# ChangeLog for net-misc/rancid
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/rancid/ChangeLog,v 1.1 2013/01/22 23:08:39 xmw Exp $

*rancid-2.3.8 (22 Jan 2013)

  22 Jan 2013; Michael Weber <xmw@gentoo.org> +rancid-2.3.8.ebuild,
  +files/rancid-2.3.8-buildsystem.patch, +files/rancid-2.3.8-config.patch,
  +files/rancid-2.3.8-mailprefix.patch, +metadata.xml:
  Initial import, thanks to all contributors on bug 151846.




1.1                  net-misc/rancid/metadata.xml

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/rancid/metadata.xml?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/rancid/metadata.xml?rev=1.1&content-type=text/plain

Index: metadata.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>alphahamilton@gmail.com</email>
<name>Andrew Hamilton</name>
</maintainer>
<maintainer>
<email>xmw@gentoo.org</email>
<name>Michael Weber</name>
</maintainer>
<herd>proxy-maint</herd>
<longdescription lang="en">
</longdescription>
</pkgmetadata>




1.1                  net-misc/rancid/Manifest

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/rancid/Manifest?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/rancid/Manifest?rev=1.1&content-type=text/plain

Index: Manifest
===================================================================
AUX rancid-2.3.8-buildsystem.patch 1741 SHA256 6addb41b560b1cfa74e9aa4c526ea7622f5809310ae749505763e510b5ea0388 SHA512 2ce1befcd4898654958e8a961156a6eda95da319d98ca66c9cb216ab46b80166571146b631a699be5702d5bb7baa8301b570fe82fb89ba8096a941807005f9ab WHIRLPOOL e10781cc3e9bd8dad3d2ec970b3def5893d2411bf2bc0e929d6803292c2b928efbb9d9e0f8fd62a8113219f96b9a59d174eeeab2db06972509978c8332fc4d2b
AUX rancid-2.3.8-config.patch 1241 SHA256 66cb3e28127b2e8336cf315b5004bd6ea1d83a4af803f89fd535b9af450fbcbf SHA512 abad6758dbe89eacf566b5cc931749ed9667ec7f7e824a8091f5a02edfeacb4497b1dfc5444ae41f5652a479791c585e4625b8877e710f460698a8bb2cccce9c WHIRLPOOL 271911b9c89a3fa7aa2d3b078bc832b1eff85343770b4f73352615ab53c1c9b4eb28827dfd17b10b9eba7bcb651c846f39f20f14506ec82dc8a8671a29ea3379
AUX rancid-2.3.8-mailprefix.patch 5878 SHA256 1703c25a50667c3f979010e883da8a83d540a551922716c0e4de09b3a4bdbbf3 SHA512 c01cdaafd599c8b1559b158ba0999c1e79c40dc4c8f6c0f5aa284225a5903ba967b742cee7d81f2edeb07c6e7e344c1208c018421c023a7f678204c647f3e8bd WHIRLPOOL 9e0d0c22c24386231aa029a0e5e1bf78df56bd75558f8c12aabcee5a2ab75ef25b21569334318351f700eb55cec0ef3d7864f65eb87d12035aebb9e3766c2df5
DIST rancid-2.3.8.tar.gz 379908 SHA256 44e44c87a22968d5229c01d60aa46960da023a24846eef43f9e3c8d70fd5b3fb SHA512 cd071670e160f2e8268e676ae92b0d982719a2bc306aef3ef8fdbbaae398854178613eee2a139f206e799eba6c0b49dce2094db69ea57ef938e5d0c2c294a3cc WHIRLPOOL 69fbc3eef603888cfafcb5ddd445da68da4d1ca15509b1f8938de09379f9f613063487fd836f18abeffcba7d6b83b5bc2dde74825e7a263b3109dabb36f3d045
EBUILD rancid-2.3.8.ebuild 2771 SHA256 5c2f3f99f891c3079469bbd81d8ad309988e57dd3391a1f9670f9f50dd2edfa9 SHA512 14f32e1f63e5579eb89d7dfc630404fd34feeddec03adebcd31e45bcd0e5742caab67551ef9a8000daf92989be0596fe6a9bf6da3ca10930c469099edeab49af WHIRLPOOL d438633e3c346914e344861f330ffd8233ce2aecc215cc89abf5bc06d42c6ba84154da90a050c1e9a57206dee4a70bc366c0518b1489a3e61586c4a793e5118d
MISC ChangeLog 404 SHA256 c14da0f38f72ec6e36f19ffc9643c9cfdc7ff26d4a6ef42d0d817d715bb86271 SHA512 62294077366fead1919aea946fc0fbb00cc3c7a934da64f1ea84fb5e6e51ac4ed4e0b2f8932e976e8831981189db7f298b9401f36447491a2d707219486dbc61 WHIRLPOOL ae65421edac546877197a7d3da5da3754b3b31d6d7f329482461c31bdac849d6ddd5c2a23ee092d2bf0fd99afce09437f9061a6b4c0f380c15141be044098129
MISC metadata.xml 391 SHA256 1d6816c4fc6fb913ae99a522eee39e11363c1273b93e6f0ab685f69731f963e9 SHA512 2b1e2b513771d20f5718cceabda85ba0a1657dd035f5a008f0214259a81bc05a5a552f1ce93dbd292d91e1d0552e7f841a9caaaf726e6eb3d704289cc12ac148 WHIRLPOOL ff7dd112251fa74b9795b8655ded2ce15530d6a0536781dc7f22d53fb910fb86f59d34edfb765cd89936a2ff40a6f35848e7a996a2569ab0ffccd7771ea87270





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-22 23:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-22 23:08 [gentoo-commits] gentoo-x86 commit in net-misc/rancid: rancid-2.3.8.ebuild ChangeLog metadata.xml Manifest Michael Weber (xmw)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox