diff options
Diffstat (limited to 'share')
-rw-r--r-- | share/Makefile.am | 4 | ||||
-rw-r--r-- | share/Makefile.in | 7 | ||||
-rw-r--r-- | share/rancid.spec | 113 |
3 files changed, 119 insertions, 5 deletions
diff --git a/share/Makefile.am b/share/Makefile.am index 76b8fa4..90ccae0 100644 --- a/share/Makefile.am +++ b/share/Makefile.am @@ -3,7 +3,7 @@ ## $Id$ ## -## Copyright (c) 1997-2007 by Terrapin Communications, Inc. +## Copyright (c) 1997-2008 by Terrapin Communications, Inc. ## All rights reserved. ## ## This code is derived from software contributed to and maintained by @@ -53,7 +53,7 @@ dist_pkgdata_SCRIPTS=getipacctg dist_pkgdata_DATA=README.misc cisco-load.exp cisco-reload.exp \ index.html lgnotes.html -EXTRA_DIST = rtrfilter.in downreport.in +EXTRA_DIST = rancid.spec rtrfilter.in downreport.in CLEANFILES= downreport diff --git a/share/Makefile.in b/share/Makefile.in index 362b3d4..ac8858b 100644 --- a/share/Makefile.in +++ b/share/Makefile.in @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.10 from Makefile.am. +# Makefile.in generated by automake 1.10.1 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -175,6 +175,7 @@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ @@ -185,7 +186,7 @@ dist_pkgdata_SCRIPTS = getipacctg dist_pkgdata_DATA = README.misc cisco-load.exp cisco-reload.exp \ index.html lgnotes.html -EXTRA_DIST = rtrfilter.in downreport.in +EXTRA_DIST = rancid.spec rtrfilter.in downreport.in CLEANFILES = downreport # auto_edit does the autoconf variable substitution. This allows the diff --git a/share/rancid.spec b/share/rancid.spec new file mode 100644 index 0000000..3d2ada7 --- /dev/null +++ b/share/rancid.spec @@ -0,0 +1,113 @@ +Name: rancid +Version: 2.3.2a8 +Release: 2%{?dist} +Summary: Really Awesome New Cisco confIg Differ + +Group: Applications/System +License: non-free +URL: http://www.shrubbery.net/rancid/ +Source: rancid-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-root +Requires: cvs expect >= 5.40 + +%package lg +Summary: RANCID Looking Glass CGI scripts +Group: Applications/System + +%description +Rancid is a "Really Awesome New Cisco confIg Differ" developed to +maintain CVS controlled copies of router configs. Rancid is not limited +to Cisco devices. It currently supports Cisco routers, Juniper routers, +Catalyst switches, Foundry switches, Redback NASs, ADC EZT3 muxes, MRTd +(and thus likely IRRd), Alteon switches, and HP procurve switches and a +host of others. + +%description lg +RANCID also includes looking glass software. It is based on Ed Kern's +looking glass which was once used for http://nitrous.digex.net/, for the +old-school folks who remember it. Our version has added functions, supports +cisco, juniper, and foundry and uses the login scripts that come with +rancid; so it can use telnet or ssh to connect to your devices(s). + +%prep +%setup -q + +%build +%configure --localstatedir=%{_localstatedir}/rancid +make + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +# Get rid of unwanted /usr/share/rancid install +rm -rf $RPM_BUILD_ROOT/%{_datadir}/rancid +# Move lg CGI scripts to CGI directory +mkdir -p $RPM_BUILD_ROOT/var/www/cgi-bin +mv $RPM_BUILD_ROOT/%{_bindir}/*.cgi $RPM_BUILD_ROOT/var/www/cgi-bin +# Workaround for the stupid rpmbuild to NOT search for dependencies in the +# documentation. We need to do it here as %doc ignores %attr. +find share -type f -print | xargs chmod a-x +# Install the sample .cloginrc file +cp cloginrc.sample $RPM_BUILD_ROOT/%{_localstatedir}/rancid/.cloginrc + +%pre +if [ $1 -eq 1 ]; then + egrep -q '^rancid:' /etc/passwd || useradd -M -r -d %{_localstatedir}/rancid -c "RANCID User" rancid +fi + +%postun +if [ $1 -eq 0 ]; then + # It's a matter of taste if we should remove the user on uninstall or not + userdel rancid +fi + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc BUGS CHANGES COPYING FAQ README UPGRADING Todo +%doc share/cisco-load.exp share/cisco-reload.exp +%doc share/downreport share/getipacctg share/rtrfilter +%config(noreplace) /etc/rancid.conf +%{_bindir}/* +%{_mandir}/man1/[a-k]* +%{_mandir}/man1/[m-z]* +%{_mandir}/man5/[a-k]* +%{_mandir}/man5/[m-z]* +%dir %attr(770,rancid,rancid) %{_localstatedir}/rancid +%config(noreplace) %attr(640,rancid,rancid) %{_localstatedir}/rancid/.cloginrc + +%files lg +%config(noreplace) /etc/lg.conf +%{_mandir}/man1/lg_intro* +%{_mandir}/man5/lg.conf* +/var/www/cgi-bin/* +%doc README.lg + +%changelog +* Fri Feb 15 2008 Steve Snodgrass <ssnodgra@xxxxxxxx> 2.3.2a8-1 +- Install .cloginrc as a configuration file +- Don't try to create the rancid user if it already exists + +* Wed Feb 13 2008 Steve Snodgrass <ssnodgra@xxxxxxxx> 2.3.2a8-1 +- Create subpackage for looking glass CGI scripts +- Include configuration files in RPM +- Many other tweaks + +* Wed Nov 16 2005 Michael Stefaniuc <mstefani@xxxxxxxxxx> 2.3.1-3 +- Use /var/rancid as localstatedir +- Create the rancid user on install and remove it on uninstall +- Use %doc correctly + +* Wed Nov 02 2005 Michael Stefaniuc <mstefani@xxxxxxxxxx> 2.3.1-2 +- Original spec file by Dan Pfleger. +- Add a changelog. +- Make the formating of the spec file adhere to the Fedora Extras Packaging + guidelines. +- New %description based on the README and the website. +- Add cvs Requires. +- Changed Group +- Use macros in the files section. Simplify it. +- Do not install the looking glass cgi's. Those make rpm pull in more perl + module dependencies. |