[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch to add install action to packages:
From: |
rader |
Subject: |
Re: Patch to add install action to packages: |
Date: |
Thu, 03 Mar 2005 06:26:26 -0600 |
> From: David Douthitt
> [...]
> The evidence of such trouble is evident already in a much simpler area:
> recognizing operating system versions and releases. HP-UX 11 had this
> problem, and the numerous various Linux distributions render this almost
> impossible to keep up with. Does cfengine recognize White Box Linux?
> TinySofa? Enguarde? Vine? Miracle? Red Flag? And most importantly, can
> it be made to recognize these variants without recompiling?
The answer is most certainly yes. The high energy physics world is
converging on a recompiled version of RHEL called Scientific Linux
(aka SL.) I glanced at the hard os/distro class code for a few
minutes and decided not to patch the Source. Instead I just wrote
the little module that follows my sig.
steve
- - -
systems & network manager
high energy physics
university of wisconsin
#!/usr/bin/perl
if ( ! -f "/etc/redhat-release" ) { exit; }
$id = `cat /etc/redhat-release`;
if ( $id =~ /Scientific Linux/ ) { print "+sl\n"; }
if ( $id =~ /Scientific Linux 3/ ) { print "+sl3\n"; }
if ( $id =~ /Scientific Linux SL Release 3/ ) { print "+sl3\n"; }
if ( $id =~ /Scientific Linux SL Release 4/ ) { print "+sl4\n"; }
- Re: Patch to add install action to packages:, David Douthitt, 2005/03/01
- Re: Patch to add install action to packages:, Phil D'Amore, 2005/03/01
- Re: Patch to add install action to packages:, David Douthitt, 2005/03/03
- Re: Patch to add install action to packages:,
rader <=
- Re: Patch to add install action to packages:, Phil D'Amore, 2005/03/03
- Re: Patch to add install action to packages:, David Douthitt, 2005/03/03
- Re: Patch to add install action to packages:, Tim Nelson, 2005/03/03
- Re: Patch to add install action to packages:, rader, 2005/03/03
- Re: Patch to add install action to packages:, Phil D'Amore, 2005/03/04
- Re: Patch to add install action to packages:, Jim Wight, 2005/03/04
- Re: Patch to add install action to packages:, rader, 2005/03/04