Le Wednesday 01 September 2004 � 13:24:31, Bruce Barnett a �crit:
> When I try to configure the system using 
>       configure --prefix=/local/pcsc
> I get:
> 
>    enable USB drop directory     : /usr/local/pcsc/drivers
>    enable MuscleCard bundles dir : /usr/local/pcsc/services
>    enable confdir                : /etc (default)
> 
> instead of what I expected:
>    enable USB drop directory     : /local/pcsc/drivers
>    enable MuscleCard bundles dir : /local/pcsc/services
>    enable confdir                : /local/pcsc/etc

I changed configure.in so prefix is used. Now you can do:
$ ./configure --prefix=/local
[...]
enable USB drop directory     : /local/pcsc/drivers
enable MuscleCard bundles dir : /local/pcsc/services

You still have to use --enable-confdir=/local/pcsc/etc since the /etc
directory is different and not concerned by --prefix.

> Also - this is the first time I have been exposed to bundles.  It
> wasn't clear to me that "bundles" functionality are defined by
> location, instead of bundle contents. So at first I tried to put 
> the "service"-flavored bundles  in
> the same place as all of the other bundles.  I.e. in
> /local/pcsc/lib/drivers. But I spotted my error.

The default configuration works fine. I don't know if you should
document every possible cases.

I have no objection to include this kind of information in the INSTALL
file.  Just provide me a patch.

> You know, it would be really nice if there was a single file that
> could define the location of all of the directories needed.  Assigning
> them names in a consistent fashion would help a lot in merging
> together packages from different developers, and packages such as 
> opensc/OCF/muscle/JCOP/etc.

Your idea is very good but I think it is very user or distribution
dependent. When I want to test pcsc-lite I build a Debian package and
install it. So I already have the correct ./configure line in the
debian/rules file to build the package.

> For simple scripts, such as David Corcoran's
> muscleframework-1.1.5/MCardPlugin/installBundle file, it's simple to replace the 
> lines
> 
> -----------------------
> if [ x$DESTDIR = "x" ]
> then
>       DESTDIR=/usr/local/pcsc/services
> fi
> -----------------------
> with
> 
> -----------------------
> DESTDIR=${PCSC_MSC_BND:-/usr/local/pcsc/services}
> -----------------------

The "official" way to know where the services bundles are installed is
to use:
$ pkg-config libmusclecard --variable=muscledropdir

> (I had to modify this file because installBundle seems to ignored the
> value of --prefix=).

I patched muscleplugins/MCardPlugin/installBundle to use pkg-config.
We now have:
  if [ x$DESTDIR = "x" ]
  then
      DESTDIR=$(pkg-config libmusclecard --variable=muscledropdir)
      DESTDIR=${DESTDIR:-/usr/local/pcsc/services}
  fi

> I wish I didn't have to modify so many of the scripts that use
> different conventions, in strange places.

Do not hesitate to propose improvements and share your modifications.

> As for pcsc-lite, (and other programs) I have added a file called "Configure" as a 
> wrapper
> for ./configure.  It contains

My "Configure" is called debian/rules and contains the same kind
informations. I just don't know if we should provide such a script.

> Perhaps others might find this useful

You can also have a look at the "Linux Registry Project" [1] to replace
your env.sh configuration file.

Thanks for your comments and ideas.

Bye,

[1] http://registry.sourceforge.net/

-- 
 Dr. Ludovic Rousseau                        [EMAIL PROTECTED]
 -- Normaliser Unix c'est comme pasteuriser le camembert, L.R. --
_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to