Desc: Configure options
File: configure.txt
Date: 25 July 2001
Auth: Russell Kroll <rkroll@exploits.org>

There are a few options that can be given to configure to tweak compiles:

 --with-statepath=PATH

   Change the location of the state files created by the model programs.
   Default is /var/state/ups.

 --with-udpport=PORT

   Change the UDP and TCP ports used by the network code.  Default is 3305.

 --with-user=<username>

   Programs started as root will setuid() to this user for somewhat 
   safer operation.  The default user is nobody.  

   Warning: Running lots of daemons as 'nobody' on your system isn't
   such a good idea.  You should create different users.  See the FAQ.

   Note: upsmon does not totally drop root as it needs to invoke a 
   shutdown.  There is always at least a stub process remaining with
   root powers.

 --with-group=<groupname>

   Programs started as root will setgid() to this group for safety.
   The default group is nogroup.

 --with-logfacility=FACILITY

   Change the facility used when writing to the log file.  Read the man
   page for openlog to get some idea of what's available on your system.
   Default is LOG_DAEMON.

 --without-shared-memory

   Disables shared memory on the model drivers and upsd.  This is useful
   on systems where the automatic detection fails, or for debugging.

 --sysconfdir=PATH

   Changes the configuration path for the suite.  By default this path
   is /usr/local/ups/etc.  Making this /etc might be useful.

 --with-pidpath=PATH

   Changes the directory where pid files are stored.  By default this is
   /var/run.  Certain programs like upsmon will leave files here.

 --with-linux-hiddev=PATH

   Sets the directory to the hiddev.h for USB UPS support on Linux.
   This defaults to /usr/include/linux/hiddev.h, and is only used when
   building the experimental "hidups" driver.

 --with-modelpath=PATH

   The UPS model drivers will be installed to this path.  By default they
   install to "bin" under the prefix, which is usually /usr/local/ups.
