Re: [squid-users] changing file locations on compilation

From: Simon White <simon@dont-contact.us>
Date: Sat, 23 Mar 2002 12:58:32 +0000

23-Mar-02 at 12:29, Clemson, Chris (Chris.Clemson@softwareag.co.uk) wrote :
> I have been using squid for quite a while now, and I am trying to compile
> squid-2.4.STABLE4 on SuSE Linux.
> At the moment we have Squid 2.3 running, which came as part of the
> distribution cds.
> SuSE seem to have their squid files spread out all over the place:
>
> squid.conf is in /etc (which is good, IMO),
> the squid executable is in /usr/sbin
> mime.conf and mib.txt and the errors and icons directories are in
> /usr/share/squid

The output from ./configure --help will aid you:

  --prefix=PREFIX install architecture-independent files in PREFIX
                          [/usr/local/squid]
  --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR user executables in DIR [EPREFIX/bin]
  --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  --datadir=DIR read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR modifiable architecture-independent data in DIR
                          [PREFIX/com]
  --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR C header files in DIR [PREFIX/include]
  --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR info documentation in DIR [PREFIX/info]
  --mandir=DIR man documentation in DIR [PREFIX/man]
  --srcdir=DIR find the sources in DIR [configure dir or ..]

so your --sbindir=/usr/sbin, --exec-prefix=/etc, and you will probably want to
play around with the others too (--datadir=/usr/share/squid ??). You can get
it to work like with SuSE (and RedHat, who use the same structure - all conf
files in /etc).

I /might/ be wrong about exec-prefix... I'm not completely sure where
squid.conf goes, from memory. Someone else might be able to help out here.

Other option is to wait for the RPM for SuSE, which will probably follow their
current path strategy.

-- 
[Simon White. vim/mutt/Linux. simon@mtds.com. GIMPS: 51.45%] v-- John Lennon
Sometimes we sit and read other people's interpretations of our lyrics
and think, 'Hey, that's pretty good.' If we liked it, we would keep our
mouths shut and just accept the credit as if it was what we meant all along.
Received on Sat Mar 23 2002 - 05:58:37 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:07:03 MST