Re: [blfs-dev] CA Certs

2012-12-10 Thread Bruce Dubbs
Randy McMurchy wrote:
 Hi all,

 I'd like to give some input about the CA Certs installation. First, why are
 the shell scripts installed in /bin and not /usr/bin? The wget program is not
 available and chances are networking is not enabled in single usr mode (why
 else would /usr not be mounted?)

I can't answer the why question.  AFAICR, we took the script from RedHat 
and they probably had it that way.  It probably should be in /usr/bin. 
There is a more serious issue than wget.  It's right in the first line 
of make-cert.pl:

#!/usr/bin/perl

To me, it doesn't make any difference.  If /usr/bin is mounted, then 
either /bin or /usr/bin will work.  I don't see these scripts being
used without /usr mounted.

 Also, the installation is not conducive to performing a DESTDIR installation.
 I modified the installation (including the scripts) to work with a complete
 DESTDIR installation. Would this be worth putting into the book?

I don't think so.  The code is right there to see.  It's only three
scripts and they need to be in the PATH to run with the instructions 
given.  What benefit would DESTDIR give?

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] CA Certs

2012-12-10 Thread Baho Utot
On 12/10/2012 05:52 PM, Randy McMurchy wrote:
 Hi all,

 I'd like to give some input about the CA Certs installation. First, why are
 the shell scripts installed in /bin and not /usr/bin? The wget program is not
 available and chances are networking is not enabled in single usr mode (why
 else would /usr not be mounted?)

 Also, the installation is not conducive to performing a DESTDIR installation.
 I modified the installation (including the scripts) to work with a complete
 DESTDIR installation. Would this be worth putting into the book?


I have also modified the installation for DESTDIR as well.

I haven't thought about where it resides
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [blfs-dev] CA Certs

2012-12-10 Thread Bruce Dubbs
Randy McMurchy wrote:
 Bruce Dubbs wrote these words on 12/10/12 17:11 CST:

 I don't think so.  The code is right there to see.  It's only three
 scripts and they need to be in the PATH to run with the instructions
 given.  What benefit would DESTDIR give?

 Actually, they don't *have* to be in the path to be executed from within a
 package directory. And DESTDIR is a method one can use for package management.
 Installing the scripts into {,/usr}/bin and then executing them doesn't really
 allow for a packaged installation. I was actually thinking that it would be
 really easy to create an autotooled package that would never need to be
 updated by us as the only change ever made is downloading the certs from
 Mozilla.

 No big deal as I've fixed it to work with a DESTDIR installation. The only
 thing we cannot do is the c_rehash command that creates the symlinks in
 /etc/ssl/certs) but that can almost be considered configuration which is
 always done after a package is installed. It was just a thought. :-)


Go ahead and change it if you have a better way, but autotools or even a 
make is a lot of overkill.  Just a few cp commands to install and 
perhaps another master script to put it all together -- something like 
update-pciids.  BTW, perhaps the scripts should go in /usr/sbin.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page