rpms/rancid/F-10 import.log, NONE, 1.1 rancid-2.3.2-Makefile.patch, NONE, 1.1 rancid-2.3.2-conf.patch, NONE, 1.1 rancid.cron, NONE, 1.1 rancid.logrotate, NONE, 1.1 rancid.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

giesen giesen at fedoraproject.org
Mon Jul 27 11:20:05 UTC 2009


Author: giesen

Update of /cvs/pkgs/rpms/rancid/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9327/F-10

Modified Files:
	.cvsignore sources 
Added Files:
	import.log rancid-2.3.2-Makefile.patch rancid-2.3.2-conf.patch 
	rancid.cron rancid.logrotate rancid.spec 
Log Message:
Initial import into CVS.



--- NEW FILE import.log ---
rancid-2_3_2-3_fc11:F-10:rancid-2.3.2-3.fc11.src.rpm:1248675528

rancid-2.3.2-Makefile.patch:
 Makefile.am |    2 +-
 Makefile.in |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- NEW FILE rancid-2.3.2-Makefile.patch ---
--- bin/Makefile.am.orig	2009-04-16 18:04:43.000000000 -0400
+++ bin/Makefile.am	2009-07-16 02:13:39.733312866 -0400
@@ -71,7 +71,7 @@
 #INCLUDES += -I$(top_srcdir)/include
 
 #CFLAGS += -g
-CFLAGS = -g -O0
+#CFLAGS = -g -O0
 
 YFLAGS = -d
 #LFLAGS = -i
--- bin/Makefile.in.orig	2009-04-16 18:04:43.000000000 -0400
+++ bin/Makefile.in	2009-07-16 02:13:39.734487978 -0400
@@ -110,7 +110,7 @@
 #INCLUDES += -I$(top_srcdir)/include
 
 #CFLAGS += -g
-CFLAGS = -g -O0
+#CFLAGS = -g -O0
 COMM = @COMM@
 CPP = @CPP@
 CPPFLAGS = @CPPFLAGS@

rancid-2.3.2-conf.patch:
 rancid.conf.sample.in |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- NEW FILE rancid-2.3.2-conf.patch ---
--- etc/rancid.conf.sample.in.orig	2007-12-20 13:09:24.000000000 -0500
+++ etc/rancid.conf.sample.in	2009-07-16 02:35:41.962728099 -0400
@@ -18,12 +18,12 @@
 #
 TMPDIR=/tmp; export TMPDIR
 # Be careful changing this, it affects CVSROOT below.
-BASEDIR=@localstatedir@; export BASEDIR
+BASEDIR=/var/rancid; export BASEDIR
 PATH=@bindir@:@ENV_PATH@; export PATH
 # Location of the CVS/SVN repository.  Be careful changing this.
 CVSROOT=$BASEDIR/CVS; export CVSROOT
 # Location of log files produced by rancid-run(1).
-LOGDIR=$BASEDIR/logs; export LOGDIR
+LOGDIR=/var/log/rancid; export LOGDIR
 #
 # Select which RCS system to use, "cvs" (default) or "svn".  Do not change
 # this after CVSROOT has been created with rancid-cvs.  Changing between these


--- NEW FILE rancid.cron ---
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/var/rancid
# Run config differ hourly
1 * * * * rancid RANCIDBINDIR/rancid-run


--- NEW FILE rancid.logrotate ---
/var/log/rancid/* {
    weekly
    rotate 1
    notifempty
    missingok
    compress
    olddir old
}


--- NEW FILE rancid.spec ---
Name: rancid
Version: 2.3.2
Release: 3%{?dist}
Summary: Really Awesome New Cisco confIg Differ

Group: Applications/Internet
License: BSD with advertising
URL: http://www.shrubbery.net/rancid/
Source0: ftp://ftp.shrubbery.net/pub/{name}/%{name}-%{version}.tar.gz
Source1: %{name}.cron
Source2: %{name}.logrotate
Patch0: rancid-2.3.2-Makefile.patch
Patch1: rancid-2.3.2-conf.patch

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: telnet
BuildRequires: rsh
BuildRequires: openssh-clients
BuildRequires: expect
BuildRequires: cvs
BuildRequires: subversion
BuildRequires: perl
BuildRequires: iputils

Requires(pre): shadow-utils
Requires: findutils
Requires: expect
Requires: perl
Requires: iputils
Requires: logrotate

%description
RANCID monitors a router's (or more generally a device's) configuration, 
including software and hardware (cards, serial numbers, etc) and uses CVS 
(Concurrent Version System) or Subversion to maintain history of changes.


%prep
%setup -q -n %{name}-%{version}
%patch0 -p0
%patch1 -p0

%build
%configure --sysconfdir=%{_sysconfdir}/%{name} --bindir=%{_libexecdir}/%{name} --enable-conf-install
make %{?_smp_mflags}


%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} INSTALL="install -p"
install -d -m 0755 %{buildroot}/%{_localstatedir}/%{name}
install -d -m 0755 %{buildroot}/%{_localstatedir}/log/%{name}
install -d -m 0755 %{buildroot}/%{_localstatedir}/log/%{name}/old
install -d -m 0755 %{buildroot}/%{_sysconfdir}/cron.d
install -d -m 0755 %{buildroot}/%{_bindir}/

#symlink some bins from %%{_libexecdir}/%%{name} to %%{_bindir}
for base in \
 %{name} %{name}-cvs %{name}-fe %{name}-run
 do
 ln -sf %{_libexecdir}/%{name}/${base} \
  %{buildroot}/%{_bindir}/${base}
done

install -D -p -m 0755 %{SOURCE1} %{buildroot}/%{_sysconfdir}/cron.d/%{name}

#Patch cron file to point to correct installation directory
sed -i 's|RANCIDBINDIR|%{_libexecdir}/%{name}|g' %{buildroot}/%{_sysconfdir}/cron.d/%{name}

install -D -p -m 0644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}

%clean
rm -rf %{buildroot}

%pre
getent group %{name} >/dev/null || groupadd -r %{name}
getent passwd %{name} >/dev/null || \
useradd -r -g %{name} -d %{_localstatedir}/%{name}/ -s /bin/bash \
-k /etc/skel -m -c "RANCID" %{name}
exit 0


%files
%defattr(-,root,root,-)
%doc CHANGES cloginrc.sample COPYING FAQ README README.lg Todo

#%%{_sysconfdir}-files
%attr(750,%{name},%{name}) %dir %{_sysconfdir}/%{name}
%attr(640,%{name},%{name}) %config(noreplace) %{_sysconfdir}/%{name}/*
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/cron.d/%{name}
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}

#%%{_libexecdir}/%%{name}-files
%dir %{_libexecdir}/%{name}/
%{_libexecdir}/%{name}/*

#%%{_bindir}-files
%{_bindir}/*

#%%{_mandir}-files
%{_mandir}/*/*

#%%{_datadir}/%%{name}-files
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*

#%%{_localstatedir}-directories
%attr(750,%{name},%{name}) %dir %{_localstatedir}/log/%{name}
%attr(750,%{name},%{name}) %dir %{_localstatedir}/log/%{name}/old
%attr(750,%{name},%{name}) %dir %{_localstatedir}/%{name}/


%changelog
* Wed Jul 22 2009 Gary T. Giesen <giesen at snickers.org> 2.3.2-3
- Changed GECOS name for rancid user

* Wed Jul 22 2009 Gary T. Giesen <giesen at snickers.org> 2.3.2-2
- Added logrotate (and updated crontab to let logrotate handle log file 
  cleanup
- Removed Requires: for rsh, telnet, and openssh-clients
- Removed Requires: for cvs
- Cleaned up file permissions
- Added shell for rancid user for CVS tree creation and troubleshooting
- Patch cron file for installation path
- Removed installation of CVS root to permit SVN use
- Moved from libdir to libexecdir

* Thu Jul 16 2009 Gary T. Giesen <giesen at snickers.org> 2.3.2-1
- Updated to 2.3.2 stable
- Removed versioned expect requirement so all supported Fedora/EPEL releases
  now meet the minimum
- Spec file cleanup/style changes

* Wed Oct 08 2008 Aage Olai Johnsen <aage at thaumaturge.org> 2.3.2-0.6a8
- Some fixes (#451189)

* Tue Sep 30 2008 Aage Olai Johnsen <aage at thaumaturge.org> 2.3.2-0.5a8
- Some fixes (#451189)

* Tue Sep 30 2008 Aage Olai Johnsen <aage at thaumaturge.org> 2.3.2-0.4a8
- More fixes (#451189)
- Patched Makefiles - Supplied by Mamoru Tasaka (mtasaka at ioa.s.u-tokyo.ac.jp) 

* Tue Sep 23 2008 Aage Olai Johnsen <aage at thaumaturge.org> 2.3.2-0.3a8
- More fixes (#451189)

* Wed Jul 09 2008 Aage Olai Johnsen <aage at thaumaturge.org> 2.3.2a8-0.2a8
- Plenty of fixes (#451189)
- Patched rancid.conf-file
- Added cronjob

* Sat May 31 2008 Aage Olai Johnsen <aage at thaumaturge.org> 2.3.2a8-0.1
- Initial RPM release


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/rancid/F-10/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	23 Jul 2009 16:37:23 -0000	1.1
+++ .cvsignore	27 Jul 2009 11:20:05 -0000	1.2
@@ -0,0 +1 @@
+rancid-2.3.2.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/rancid/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	23 Jul 2009 16:37:24 -0000	1.1
+++ sources	27 Jul 2009 11:20:05 -0000	1.2
@@ -0,0 +1 @@
+4e2de3ff6850b311c0e2a442f7ae5d82  rancid-2.3.2.tar.gz




More information about the fedora-extras-commits mailing list