APC SU1400XLT User Manual Page 112

  • Download
  • Add to my manuals
  • Print
  • Page
    / 115
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 111
package find the line in the spec file which reads
%define rh7 0
and edit it to read
%define rh7 1
Alternately you may pass the define on the command line when calling rpmbuild:
rpmbuild -ba --define "build_rh7 1" apcupsd.spec
rpmbuild --rebuild --define build_rh7 1" apcupsd-x.x.x-x.src.rpm
How do I control whether usb support gets built?
Up through version 3.12, by default standard serial port support was built and the apcupsd-std
package was produced. The usb package pre-configured the configuration files for usb devices and
installed a couple additional tools in /etc/apcupsd but the usb driver was built regardless. To get the
usb package and support in those versions either set the
%define usb 0
to
%define usb 1
in the spec file directly or pass it to rpmbuild on the command line:
rpmbuild -ba --define "build_rh7 1" --define "build_usb 1" apcupsd.spec
With the release of 3.14 USB support is now considered standard and the apcupsd-std and
apcupsd-usb packages are obsoleted in favor of a single apcupsd package configured for usb
connected UPS's. The serial port driver is still built and can be configured accordingly after
installation. If you are performing an upgrade it will of course not replace your current config file.
The build directive:
--define "build_usb 1"
is no longer recognized.
What other defines are used?
There is a define for the initdir for the daemon control script. On RedHat or Mandrake systems this is
set to /etc/rc.d/init.d/. On SuSE systems this is set to /etc/rc.d. You would only need to edit this if
packaging for a platform that uses a different directory.
A second define controls whether the Gnome monitoring application, new in the 3.14 release, is built.
This application requires the Gtk2 version to be >= 2.4. If you want to build the apcupsd-gapcmon
package add:
--define "build_gapcmon 1"
A third define controls whether the SNMP driver is built. If you want to build the net-snmp driver add:
--define "build_snmp 1"
Can I supply packages for other platforms you do not publish?
Page view 111
1 2 ... 107 108 109 110 111 112 113 114 115

Comments to this Manuals

No comments