fix rancid-3.13
This commit is contained in:
parent
d3fa076bc8
commit
4ffa29495a
|
@ -0,0 +1,2 @@
|
|||
EBUILD rancid-0.ebuild 150 BLAKE2B 6d1ea73fd8da2862048ce1348fc5c3cbfbee7ebc2aadcee72b45823bcc570c8347a9ef42309a6fc21f3fbe58da07c06d151db5db5a9979af961f61ba3757f41b SHA512 b15b786dfbbd33a8e7df4527ca9bda46dd374bc5bc6c39a724d100501d3d0ec59483b83283319864e59f6782abcb1d71e6122d878ebba6532328ba8446fed2dd
|
||||
MISC metadata.xml 366 BLAKE2B c2234c807433af153ff818c86a421c72181c278f95421339c5338d74e6962f3a33170d4cf7bbae97b46189986b30065b4a7342865a847612159f7a0e8539c0c3 SHA512 9a3e5b0062fe74ef8ff9413ec231002a4f226a66b2901cbb16a109b33261bc5fa0b9103d3f5f8b9d398dfea50514f0e56cfa5b025769f8c7e192484f25590880
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>alarig@swordarmor.fr</email>
|
||||
<name>Alarig Le Lay</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
|
@ -0,0 +1,8 @@
|
|||
# Copyright 2020-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit acct-group
|
||||
|
||||
ACCT_GROUP_ID=-1
|
|
@ -0,0 +1,3 @@
|
|||
EBUILD rancid-0.ebuild 264 BLAKE2B 83ab5c176e7ece5f2085ca18c27c71b9d09e884b2c8bb30c3c01b7bd0fcbbd69842f3821e9a8c6e1269c4ab0e342b54ca53b1d29c88c92921c2801147f1ed63c SHA512 ced09e1bba351aa686384556a7d2b9828e58cee17e6601b04cb55451c61929a0fdba3c17ae434acf80c04bc258035514f0de1f473c3edf22637083199adffc10
|
||||
MISC metadata.xml 366 BLAKE2B c2234c807433af153ff818c86a421c72181c278f95421339c5338d74e6962f3a33170d4cf7bbae97b46189986b30065b4a7342865a847612159f7a0e8539c0c3 SHA512 9a3e5b0062fe74ef8ff9413ec231002a4f226a66b2901cbb16a109b33261bc5fa0b9103d3f5f8b9d398dfea50514f0e56cfa5b025769f8c7e192484f25590880
|
||||
MISC rancid-0.ebuild~ 268 BLAKE2B 96a3dbdef19da9976a69fa3b21db5f94dff69734de72f20e6cea0b59aeb14d5020eae58b245116aeb1f9f8129e96ce9a48b5aac3c1d80d1e72a5901623f2908c SHA512 68143bc5eb29f1bf4568157a8e347f6ca318761aa6087d064b8c58b631bd8d287c2a37978e2fdf98d405531929ea114ae4f21a4b2d7ef35af2cf357dd91670aa
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>alarig@swordarmor.fr</email>
|
||||
<name>Alarig Le Lay</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
|
@ -0,0 +1,13 @@
|
|||
# Copyright 2020-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit acct-user
|
||||
|
||||
DESCRIPTION="User for net-misc/rancid"
|
||||
ACCT_USER_ID=-1
|
||||
ACCT_USER_GROUPS=( rancid )
|
||||
ACCT_USER_HOME="/var/${PN}/"
|
||||
|
||||
acct-user_add_deps
|
|
@ -0,0 +1,13 @@
|
|||
# Copyright 2020-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit acct-user
|
||||
|
||||
DESCRIPTION="User for net-misc/rancid"
|
||||
ACCT_USER_ID=-1
|
||||
ACCT_USER_GROUPS=( rancid )
|
||||
ACCT_USER_HOME="/var/lib/${PN}/"
|
||||
|
||||
acct-user_add_deps
|
|
@ -0,0 +1,8 @@
|
|||
DEFINED_PHASES=install preinst pretend
|
||||
DESCRIPTION=System group: rancid
|
||||
EAPI=7
|
||||
INHERIT=acct-group
|
||||
KEYWORDS=alpha amd64 arm arm64 hppa ia64 ~loong m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
SLOT=0
|
||||
_eclasses_=user-info 69a1ed744ec33cf2c910ff2bd6084d11 acct-group 4ab6ca538789e73c2c796d01318ae2d7
|
||||
_md5_=e22ec16d0b44df387e0587bd6e4d8b30
|
|
@ -0,0 +1,9 @@
|
|||
DEFINED_PHASES=install postinst preinst prerm pretend
|
||||
DESCRIPTION=User for net-misc/rancid
|
||||
EAPI=7
|
||||
INHERIT=acct-user
|
||||
KEYWORDS=alpha amd64 arm arm64 hppa ia64 ~loong m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris
|
||||
RDEPEND=acct-group/rancid
|
||||
SLOT=0
|
||||
_eclasses_=user-info 69a1ed744ec33cf2c910ff2bd6084d11 acct-user ce2d3878b49fe819717a68300f633480
|
||||
_md5_=17a66899be86a567752ca933d1cd4fb3
|
|
@ -0,0 +1,16 @@
|
|||
BDEPEND=sys-devel/gnuconfig >=app-portage/elt-patches-20170815 || ( >=sys-devel/automake-1.16.5:1.16 ) >=sys-devel/autoconf-2.71-r5 >=sys-devel/libtool-2.4.7
|
||||
DEFINED_PHASES=configure install preinst prepare
|
||||
DEPEND=!app-arch/par acct-group/rancid acct-user/rancid dev-lang/perl dev-lang/tcl:0= =dev-tcltk/expect-5.45.4-r1 sys-apps/diffutils git? ( dev-vcs/git ) cvs? ( dev-vcs/cvs ) subversion? ( dev-vcs/subversion ) || ( net-misc/netkit-telnetd net-misc/telnet-bsd )
|
||||
DESCRIPTION=Really Awesome New Cisco confIg Differ
|
||||
EAPI=7
|
||||
HOMEPAGE=http://www.shrubbery.net/rancid/
|
||||
INHERIT=autotools eutils
|
||||
IUSE=+git cvs subversion
|
||||
KEYWORDS=amd64 x86
|
||||
LICENSE=BSD-4
|
||||
RDEPEND=!app-arch/par acct-group/rancid acct-user/rancid dev-lang/perl dev-lang/tcl:0= =dev-tcltk/expect-5.45.4-r1 sys-apps/diffutils git? ( dev-vcs/git ) cvs? ( dev-vcs/cvs ) subversion? ( dev-vcs/subversion ) || ( net-misc/netkit-telnetd net-misc/telnet-bsd )
|
||||
REQUIRED_USE=^^ ( git cvs subversion )
|
||||
SLOT=0
|
||||
SRC_URI=ftp://ftp.shrubbery.net/pub/rancid/rancid-3.13.tar.gz
|
||||
_eclasses_=gnuconfig b6b3e92f8b8c996400074b5f61a59256 toolchain-funcs 37a4612ce5522df5a100359a8dbc8491 multilib 5ca4e49abed8e3a2f7b56920eadee157 libtool 241a8f577b9781a42a7421e53448a44e autotools 6dcd6b6a486e79928e1243ff9ba41fcc edos2unix 33e347e171066657f91f8b0c72ec8773 strip-linguas ac3ee41ee2d31d8c41a77c0838320cc7 wrapper 4a1902f969e5718126434fc35f3a0d9c eutils 8f942ebdcf04334697649d4a0bf65a32
|
||||
_md5_=87d3395f5ab96c292e2114dce2f9f3fb
|
|
@ -0,0 +1,11 @@
|
|||
DEFINED_PHASES=configure postinst
|
||||
DEPEND=acct-group/rancid acct-user/rancid dev-tcltk/expect net-misc/iputils net-misc/openssh || ( net-misc/netkit-telnetd net-misc/telnet-bsd )
|
||||
DESCRIPTION=Really Awesome New Cisco confIg Differ
|
||||
EAPI=7
|
||||
HOMEPAGE=https://shrubbery.net/rancid/
|
||||
KEYWORDS=~amd64 ~x86
|
||||
LICENSE=BSD
|
||||
RDEPEND=acct-group/rancid acct-user/rancid dev-tcltk/expect net-misc/iputils net-misc/openssh || ( net-misc/netkit-telnetd net-misc/telnet-bsd )
|
||||
SLOT=0
|
||||
SRC_URI=https://shrubbery.net/pub/rancid/rancid-3.13.tar.gz
|
||||
_md5_=2aae2a4ec2bc9be55e7e02cd39435cdb
|
|
@ -1,5 +1,4 @@
|
|||
AUX rancid-3.13-no_network_in_sandbox.patch 1638 BLAKE2B 1f8b827a69f08d524031627b710e5132e7e0293fb11719b2e25c37ddceccf163b517fed1059566fcfc97a123232d64036249df87ac049f1417f30c4dc95773f9 SHA512 9cabb25f1136fb8f61a9caa3d3466651a5ba34bcae7e4419953ee35c7885f8853681ec37e8b15033ce82b83b7c9878d3a271640412e7a0ef5cecba8f5e104cd2
|
||||
DIST rancid-3.13.tar.gz 506297 BLAKE2B cb28c03a09ecbc79b55c4962880c54088908598ceaacdc62751fdd2adf08fdb3e38917365c47e95eb7b49671731d8146bb6d6cb2f775cc9ff57c83eed92deb5e SHA512 2dbd8a743a03cd94b474c08b0bb1868a991353690b9f3ff2828d16a3a102ca68e4092cb07f24ec4e57c4436e6657f3f2638f890069fbbd35d6c7a34d5bd55df5
|
||||
DIST rancid-3.9.tar.gz 515946 BLAKE2B 85f49e61c0e885d3bfacf917a3809c5bde01ac9e384ddc6bfcaa01588c8cb5f5632b572a5d732cad044e321aef815c93bbd382531bcf3c86a28f98cd7a624de0 SHA512 d3c88e2092aa907481dbdaa41baea413a5ab5ba194a80c644ae59faea4538b7377e20e15a81270d2e453ca78cc96bdbe3516ed75c9e9e61a7c3bcc7121fbc77c
|
||||
EBUILD rancid-3.13-r1.ebuild 2904 BLAKE2B fb24c4201c99a692552416f9782fcc0af06037abdbfa3fa3f5904e4124d7cde40094552427ef81bf18cd57930c6823f791082a8b075d429d09efac9598a790b3 SHA512 7bc3475acb4a4bdf21ee5a7c13aaae6b7dfa9b458e18a31ff7e4542ba789666d7d1666de1a3aec4ea257dccf0fe19a5062fe9d9fd48447d88aa0ae235a4bac20
|
||||
EBUILD rancid-3.9.ebuild 2998 BLAKE2B 37605679da9c57e083ab8b28c9975c4e7f54c6c1f8ac7b3b69161e01f8edae9feb2031a4f71f9616ca7e389aaa3203eb9cbf6779d314f93a502731ba87b8a977 SHA512 7c3b326e2d94a8f5be283a05e02b3c96048f8e00cec8d465f9506315f928ba6cc71924209666d924d8f6af092ad122b295e2189df518a689ae7ce8e3cf301c45
|
||||
EBUILD rancid-3.13-r2.ebuild 2858 BLAKE2B 242cbbeeec4f7df06d823f91c85082417070a13f841ecd78a8593987997975065acc0cfd79ca70d92f3d4e8283d6377c139608c5f7cee476ab1c9afaa0020f69 SHA512 0cd1488a991504a667ced27878573fa1f5652dff422c9c938003b7da30f4349db92603fa4c6d28a139fb5ebd40c9dbe24feed71ef6a3abe00e8a764a9e15c4b2
|
||||
EBUILD rancid-3.13-r3.ebuild 851 BLAKE2B a50e023833962464e2ea815c26c7a7313f09b1501d87812cf1339c225b694629cea6cfbb51c30cf2617cca2210d12e178bd063e66945ceab122c961b7989c4c2 SHA512 687637f37fa1658805a557970d5ca9698fdfa101e4241eefa6ed33ed8cfdd28ae82d864ce31834363397d12fd8cb0b09971ecb72c82c7c24df3846f656bb8577
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
EAPI="7"
|
||||
|
||||
inherit autotools eutils user
|
||||
inherit autotools eutils
|
||||
|
||||
DESCRIPTION="Really Awesome New Cisco confIg Differ"
|
||||
HOMEPAGE="http://www.shrubbery.net/rancid/"
|
||||
|
@ -18,6 +18,8 @@ REQUIRED_USE="^^ ( git cvs subversion )"
|
|||
# app-arch/par is blocker, due to bug #455838
|
||||
DEPEND="
|
||||
!app-arch/par
|
||||
acct-group/rancid
|
||||
acct-user/rancid
|
||||
dev-lang/perl
|
||||
dev-lang/tcl:0=
|
||||
=dev-tcltk/expect-5.45.4-r1
|
||||
|
@ -63,12 +65,8 @@ 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}
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
# Copyright 2021-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Really Awesome New Cisco confIg Differ"
|
||||
HOMEPAGE="https://shrubbery.net/rancid/"
|
||||
SRC_URI="https://shrubbery.net/pub/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="
|
||||
acct-group/rancid
|
||||
acct-user/rancid
|
||||
dev-tcltk/expect
|
||||
net-misc/iputils
|
||||
net-misc/openssh
|
||||
|| ( net-misc/netkit-telnetd net-misc/telnet-bsd )
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--localstatedir="/var/lib/${PN}"
|
||||
--sysconfdir="/etc/${PN}"
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
#src_install() {
|
||||
# default
|
||||
# insinto "/etc/cron.d/"
|
||||
# newins "${FILESDIR}/${PN}-cron" "${PN}"
|
||||
#}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "cvs" dev-vcs/cvs
|
||||
optfeature "git" dev-vcs/git
|
||||
optfeature "subversion" dev-vcs/subversion
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit autotools eutils 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 x86"
|
||||
IUSE="git cvs subversion"
|
||||
REQUIRED_USE="^^ ( git cvs subversion )"
|
||||
|
||||
# app-arch/par is blocker, due to bug #455838
|
||||
DEPEND="
|
||||
!app-arch/par
|
||||
dev-lang/perl
|
||||
dev-lang/tcl:0=
|
||||
=dev-tcltk/expect-5.45.4-r1
|
||||
sys-apps/diffutils
|
||||
git? ( dev-vcs/git )
|
||||
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
|
||||
|
||||
# respect CFLAGS, bug #455840
|
||||
sed -i -e '/^CFLAGS/d' bin/Makefile.am || die 'sed on bin/Makefile.am failed'
|
||||
|
||||
#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_with subversion svn fsfs)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use subversion ; 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}
|
||||
}
|
||||
|
||||
DISABLE_AUTOFORMATTING="yes"
|
||||
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 +5 -exec rm {} \;
|
||||
"
|
Loading…
Reference in New Issue