Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151846 - net-misc/rancid - Really Awesome New Cisco confIg Differ
Summary: net-misc/rancid - Really Awesome New Cisco confIg Differ
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Andrew Hamilton
URL: http://www.shrubbery.net/rancid/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-10-18 09:21 UTC by Marko Djukic
Modified: 2017-02-22 12:34 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild for rancid 2.3.1 (rancid-2.3.1.ebuild,1.65 KB, text/plain)
2006-10-18 09:22 UTC, Marko Djukic
Details
ebuild and patches for rancid 2.3.8 (rancid-2.3.8-ebuild.tar.gz,20.00 KB, application/octet-stream)
2013-01-22 04:04 UTC, Andrew Hamilton
Details
rancid license (rancid,2.33 KB, text/plain)
2013-01-22 04:04 UTC, Andrew Hamilton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marko Djukic 2006-10-18 09:21:33 UTC
Rancid, the networking config differ, is missing from the portage. Attaching an ebuild. This was originally copied from an existing ebuild from the internet which I've fixed a few bugs with.
Comment 1 Marko Djukic 2006-10-18 09:22:11 UTC
Created attachment 99948 [details]
Ebuild for rancid 2.3.1
Comment 2 Tobias Scherbaum (RETIRED) gentoo-dev 2008-07-02 15:30:10 UTC
I'll take a look at within the next few days.
Comment 3 Justin Lambert 2008-07-07 13:10:08 UTC
It looks like gentoo will need the expect patch as well, I'm having problems with the pagination and expect.  Detail here:

http://shrubbery.net/rancid/#osystems
Comment 4 Tobias Scherbaum (RETIRED) gentoo-dev 2008-12-29 17:22:54 UTC
(In reply to comment #2)
> I'll take a look at within the next few days.
> 

I'm out, didn't found the time to look into this. Re-assigning to maintainer-wanted@ again. Sorry guys.
Comment 5 Alexander Hoogerhuis 2009-02-17 18:09:06 UTC
Any hope for this one?

-A
Comment 6 Arnaud Launay 2010-01-24 08:48:12 UTC
Gentoo is definitely in need of maintainers...
Comment 7 Valentin Stoicescu 2010-07-13 19:53:17 UTC
I created a new ebuild for rancid-2.3.3 . You can find it at 
http://github.com/tomushu/gentoo_ebuilds/tree/master/rancid/ and a short install how to at http://tomushu.greenlab.ro/ 

Comment 8 needle 2010-09-25 15:34:26 UTC
(In reply to comment #7)
> I created a new ebuild for rancid-2.3.3 . You can find it at 
> http://github.com/tomushu/gentoo_ebuilds/tree/master/rancid/ and a short
> install how to at http://tomushu.greenlab.ro/ 
> 

I have created a howto RANCID on the gentoo-wiki. Tested tomshu's ebuild and it works already with rancid-2.3.5. http://en.gentoo-wiki.com/wiki/RANCID_using_svn_and_viewvc.
Comment 9 Alexander Hoogerhuis 2011-05-14 16:50:56 UTC
The ebuild also could  to have this line added:

RESTRICT="mirror"

to avoid trying mirrors for source code that won't be there.

Also, if rancid is built to use svn, should it depend on cvs?
Comment 10 Alexander Hoogerhuis 2011-05-14 17:41:22 UTC
Also, from src_install:

        fperms  0770 /var/rancid
        fowners rancid:rancid /var/rancid/

These needs to be moved to pkg_postinstall because first time this ebuild hits a machine the users doesnt exist yet at that stage.

Moved to under enew{user,group} and it works. :)
Comment 11 Alexander Hoogerhuis 2011-05-17 18:51:10 UTC
I've picked though the ebuild and tweaked a bit, anyone wanting to use it or pick anything from it can have a look here:

http://rsync.boxed.no/overlays/boxed-main.xml

The actual ebuild is here:

http://rsync.boxed.no/boxed-main/net-misc/rancid/rancid-2.3.6-r1.ebuild

-A
Comment 12 Alexander Hoogerhuis 2011-05-17 20:30:53 UTC
And this one will also, as a added bonus feature, actually work.

http://rsync.boxed.no/boxed-main/net-misc/rancid/rancid-2.3.6-r3.ebuild

-A
Comment 13 Andrew Hamilton 2013-01-22 04:04:02 UTC
Created attachment 336428 [details]
ebuild and patches for rancid 2.3.8
Comment 14 Andrew Hamilton 2013-01-22 04:04:24 UTC
Created attachment 336430 [details]
rancid license

license file for rancid
Comment 15 Andrew Hamilton 2013-01-22 04:04:54 UTC
Attaching an ebuild and patches for rancid 2.3.8.  The patches fix the following issues:

rancid-config.patch:
change some insecure default configuration options to more secure defaults

rancid-disablemaintainermode.patch
fixes maintainer mode issues with automake

rancid-mailprefix.patch
replaces a rancid configure-time option for the mail prefix with a configurable mail prefix in /etc/rancid.conf

Note that this ebuild also adds a LICENSE attribute; I have attached the rancid license file separately.
Comment 16 Sergey Popov gentoo-dev 2013-01-22 04:42:14 UTC
CCing proxy maintainers(by Andrew Hamilton's request through mail) and license team

@licenses, please check attached license and decide if it's free or not.
IMO license is based on some kind of BSD one, but i am not expert ;-)
Comment 17 Ulrich Müller gentoo-dev 2013-01-22 07:59:26 UTC
(In reply to comment #16)
> @licenses, please check attached license and decide if it's free or not.
> IMO license is based on some kind of BSD one, but i am not expert ;-)

It is derived from the original BSD license (BSD-4) with an additional clause:

   5. It is requested that non-binding fixes and modifications be contributed
      back to Terrapin Communications, Inc.

Depending on how one understands the word "requested", this may or may not fail the "Desert Island" test:
<https://wiki.gentoo.org/wiki/License_Groups#When_is_a_license_a_free_software_license.3F>


Furthermore, files Makefile.am and bin/mtrancid.in are distributed under more restrictive terms:

   Copyright (C) 1997-2011 by Terrapin Communications, Inc.
   All rights reserved.

   This software may be freely copied, modified and redistributed
   without fee for non-commerical purposes provided that this license
   remains intact and unmodified with any RANCID distribution.

   There is no warranty or other guarantee of fitness of this software.
   It is provided solely "as is".  The author(s) disclaim(s) all
   responsibility and liability with respect to this software's usage
   or its effect upon hardware, computer systems, other software, or
   anything else.

The non-commercial restriction makes it non-free.
Comment 18 Reuben Farrelly 2013-01-22 08:28:35 UTC
I interpret "requested" as meaning optional.  If it was intended that all fixes and modifications MUST be contributed back the license would explicitly state "required" and not "requested".

FWIW the package is in Fedora as well and the RPM spec file lists the license type as "BSD with advertising".  Now I know this doesn't automatically make it OK to bring into Gentoo but obviously there is some precedent there (and presumably a similar discussion may have been had when it was brought into Fedora).

It appears more of an oversight than a deliberate act to have a different license on the above two files, because what's in the COPYING file actually seems more complete than what is in Makefile.am and bin/mtrancid.in .  

Also from the RANCID FAQ:

5) License
Q. Please explain the RANCID license.
A. Quite simple; read it.  It is a slightly modified BSD license; it has an
   additional clause.

This leads me to think it's intended to be all one license, not different license clauses for different components.

I'll send an email to the primary author and see if I can get some clarification.
Comment 19 Michael Weber (RETIRED) gentoo-dev 2013-01-22 23:53:30 UTC
in tree, keeping this open 'till license got resolved.
Comment 20 Reuben Farrelly 2013-01-23 00:36:04 UTC
I've had a response in email, from the maintainer of the project.  It -is- the case that the differing license header is an oversight:

-------- Original Message --------
Subject: Re: RANCID License Inconsistency
Date: Tue, 22 Jan 2013 17:29:01 +0000
From: heasley <heas@shrubbery.net>
To: Reuben Farrelly <xx@reub.net>
CC: Really Awesome New Cisco confIg Differ <rancid@shrubbery.net>

Tue, Jan 22, 2013 at 07:34:06PM +1100, Reuben Farrelly:
> Hi,
> 
> Tracking a Gentoo Bugzilla entry, where a contributor is trying to get 
> an ebuild of RANCID into the tree:
> 
> https://bugs.gentoo.org/show_bug.cgi?id=151846
> 
> There's a concern in relation to the license, in which one of the 
> reviewers has stated "Furthermore, files Makefile.am and bin/mtrancid.in 
> are distributed under more restrictive terms".
> 
> Looking at the src code in 2.3.8 and 3.0a1 it appears that this is the 
> case - the copyright notice at the top of those two individual files are 
> slightly different to the COPYING file in the root of the tarball.
> 
> Can you please clarify if this is deliberate or an oversight?  It looks 
> like an oversight but...

This is an oversight.  I have updated the code repository so that the 3.0
release will be corrected.

Also, clause 5, is optional, merely a request.

3.0 will include a 6th clause as follows:

## 6. Parties packaging or redistributing RANCID MAY NOT distribute altered
##    versions of the etc/rancid.types.base file nor alter how this file is
##    processed nor when in relation to etc/rancid.types.conf.  The purpose
##    of this condition is to help suppress our support costs.

gentoo's input on that is welcome.

-----------
Comment 21 Ulrich Müller gentoo-dev 2013-01-23 16:35:19 UTC
(In reply to comment #20)
> Also, clause 5, is optional, merely a request.

Good, so as already conjectured in comment #18, it is a free software license. The text from attachment 336430 [details] (maybe after removing the ## garbage) should be committed as new license file, and it can be added to the MISC-FREE group.

However:

> 3.0 will include a 6th clause as follows:
> 
> ## 6. Parties packaging or redistributing RANCID MAY NOT distribute altered
> ##    versions of the etc/rancid.types.base file nor alter how this file is
> ##    processed nor when in relation to etc/rancid.types.conf.  The purpose
> ##    of this condition is to help suppress our support costs.
> 
> gentoo's input on that is welcome.

"MAY NOT distribute altered versions" means that it's non-free. Not so much a problem for Gentoo (because we can simply remove the license from MISC-FREE again), but I guess that other distros like Debian or Fedora would have to drop the package.
Comment 22 Wolfram Schlich (RETIRED) gentoo-dev 2014-04-27 12:30:30 UTC
so, will this bug include adding rancid version 3.0 to portage, or should I open a separate version bump request bug for that one (2.3.8 is in the tree already)?
Comment 23 Andrew Hamilton 2014-04-28 21:26:37 UTC
I will work on getting 3.0 into the tree.
Comment 24 Amy Liffey gentoo-dev 2017-02-22 12:34:56 UTC
Already in tree.