just to complete a bit Manuel&#39;s answer<br><br><div class="gmail_quote">2009/8/3 Manuel Wolfshant<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Antoine Gatineau wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ok,<br>
 Now I am rebuilding an el4 rpm based on el5 src.rpm.<br>
 I will remove the --with-hal option in the configure part. In order a full featured rpm, I&#39;m trying to keep every option unless hal.<br>
But I am having problems with dependencies. libX11-devel,<br>
</blockquote></div>
xorg-x11-devel<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
libXpm-devel,<br>
</blockquote>
still xorg-x11-devel, if I am not mistaken<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
dbus-glib-devel<br>
</blockquote>
dbus-devel<br>
</blockquote><div><br>you can drop this one since it&#39;s for the nut-hal package<br>(note that you might need to remove the nut-hal package definitions throughout the .spec...) <br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
and powerman-devel<br>
</blockquote>
not available, afaik<br>
IIRC, I had to compile it for RHEL-5, and in turn it required some other packages (a newer curl, for instance)<br>
I suggest to drop its usage<br>
</blockquote><div><br>yup, this part is for the powerman (external PDU) support.<br>just in case you want it: <a href="http://sourceforge.net/projects/powerman/files/">http://sourceforge.net/projects/powerman/files/</a><br>
<br>btw, are you working with Patrick Agrain?<br><br>Arnaud<br>-- <br>Linux / Unix Expert R&amp;D - Eaton - <a href="http://www.eaton.com/mgeops">http://www.eaton.com/mgeops</a><br>Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/">http://www.networkupstools.org/</a><br>
Debian Developer - <a href="http://www.debian.org">http://www.debian.org</a><br>Free Software Developer - <a href="http://arnaud.quette.free.fr/">http://arnaud.quette.free.fr/</a><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
do not exist in RHEL 4... These are for RHEL5.<br>
 Does anyone know the equivalent dependencies for RHEL4?<br>
Another possibility is to disable the option that requires thoses dependencies. I didn&#39;t find a document explaining that so could you help.<br>
By disabling the troublemaker options, I can build a package for my particuliar configuration. Of course it will not help others...<br>
 I put the RHEL5 spec file in attachement also.<br>
 Merci,<br>
Antoine<br>
<br>
------------------------------------------------------------------------<br>
*De :* Arnaud Quette [mailto:<a href="mailto:aquette.dev@gmail.com" target="_blank">aquette.dev@gmail.com</a>]<br>
*Envoyé :* lundi 3 août 2009 11:09<br>
*À :* Antoine Gatineau<br>
*Cc :* Charles Lepple; nut-upsuser<br>
*Objet :* Re: [Nut-upsuser] Usbhip-ups going wild<br>
<br>
salut Antoine<br>
<br></div>
2009/8/3 Antoine Gatineau &lt;<a href="mailto:antoine.gatineau@alcatel-lucent.com" target="_blank">antoine.gatineau@alcatel-lucent.com</a> &lt;mailto:<a href="mailto:antoine.gatineau@alcatel-lucent.com" target="_blank">antoine.gatineau@alcatel-lucent.com</a>&gt;&gt;<div>
<div></div><div class="h5"><br>
<br>
    Thanks for the info.<br>
         I use the first approach.<br>
    So, if I understood well, the nut-hal support (ie, the --with-hal)<br>
    is used only for the 2nd approach. Udev rules are dealt when using<br>
    --with-usb.<br>
    Is that correct?<br>
<br>
<br>
mostly! the udev rules are used in both cases...<br>
 <br>
    If so, I might be able to rebuild the nut-2.4.1 pachage for RHEL4.<br>
    For packaging help (I think I might need some for the next stage<br>
    ;-) ) do I continue this thread or use the nut-packaging list (or<br>
    both).<br>
<br>
<br>
no, continue using the present thread.<br>
nut-packaging is not really active, and I&#39;ve created it originally as a placeholder for packagers discussions (related to the NUT Packaging Standard - NPS - topic)<br>
<br>
cheers,<br>
Arnaud<br>
-- <br>
Linux / Unix Expert R&amp;D - Eaton - <a href="http://www.eaton.com/mgeops" target="_blank">http://www.eaton.com/mgeops</a><br>
Network UPS Tools (NUT) Project Leader - <a href="http://www.networkupstools.org/" target="_blank">http://www.networkupstools.org/</a><br>
Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>
Free Software Developer - <a href="http://arnaud.quette.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br>
 <br>
<br>
    ------------------------------------------------------------------------<br>
    *De :* Arnaud Quette [mailto:<a href="mailto:aquette.dev@gmail.com" target="_blank">aquette.dev@gmail.com</a><br>
    &lt;mailto:<a href="mailto:aquette.dev@gmail.com" target="_blank">aquette.dev@gmail.com</a>&gt;]<br>
    *Envoyé :* vendredi 31 juillet 2009 21:41<br>
    *À :* Antoine Gatineau<br>
    *Cc :* Charles Lepple; nut-upsuser<br>
<br>
    *Objet :* Re: [Nut-upsuser] Usbhip-ups going wild<br>
<br>
    salut Antoine,<br>
<br>
    2009/7/31 Antoine Gatineau &lt;<a href="mailto:antoine.gatineau@alcatel-lucent.com" target="_blank">antoine.gatineau@alcatel-lucent.com</a><br></div></div>
    &lt;mailto:<a href="mailto:antoine.gatineau@alcatel-lucent.com" target="_blank">antoine.gatineau@alcatel-lucent.com</a>&gt;&gt;<div><div></div><div class="h5"><br>
<br>
        I might ask a stupid question but isn&#39;t hal used to manage the<br>
        UPS device<br>
        and connection through udev rules?<br>
        I though that hal was mostly usefull with usb...<br>
<br>
        In the nut-hal document, it is said that HAL &quot;allows NUT<br>
        drivers to feed the<br>
        HAL system, which will itself feeds<br>
        applications such as the Gnome Power Manager&quot;<br>
        Does that mean hal is not used for managing the battery itself<br>
        but sees the<br>
        nut driver as a &quot;pseudo real  battery&quot;? In this case, indeed,<br>
        I do not need<br>
        it.<br>
        I use upsmon for power management.<br>
<br>
<br>
    not at all. there are 2 approaches:<br>
    - the standard one, where you have a driver (usbhid-ups), upsd and<br>
    upsmon.<br>
    udev only applies the device privileges rules.<br>
    - the Integrated Power Management approach, where NUT USB driver<br>
    can feed data to HAL (instead of upsd), replacing the basic<br>
    USB/HID support in HAL.<br>
    Note that HAL is being superseded by DeviceKit and DeviceKit-power.<br>
    This approach will probably be abandonned...<br>
<br>
<br>
        -----Message d&#39;origine-----<br>
        De : Charles Lepple [mailto:<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a><br>
        &lt;mailto:<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>&gt;]<br>
        Envoyé : vendredi 31 juillet 2009 15:08<br>
        À : Antoine Gatineau<br>
        Cc : &#39;nut-upsuser&#39;<br>
        Objet : Re: [Nut-upsuser] Usbhip-ups going wild<br>
<br>
        On Jul 31, 2009, at 9:03 AM, Antoine Gatineau wrote:<br>
<br>
        &gt; Indeed, nut depends on some packages not the distribution<br>
        itself.<br>
        &gt; You are surely right.<br>
        &gt;<br>
        &gt; Anyway, here are the links :<br>
        &gt; RHEL 4 : <a href="ftp://rpmfind.net/linux/EPEL/4ES/SRPMS/" target="_blank">ftp://rpmfind.net/linux/EPEL/4ES/SRPMS/</a><br>
        &gt; nut-2.2.0-4.el4.src.rpm<br>
        &gt; RHEL 5 : nut-2.4.1 found only on this one<br>
        &gt; <a href="http://wolfy.fedorapeople.org/nut/SRPM/" target="_blank">http://wolfy.fedorapeople.org/nut/SRPM/</a><br>
<br>
<br>
    use that one.<br>
    install it and edit the spec.<br>
    modifying --with-all by --with-usb should be sufficient.<br>
<br>
    cheers,<br>
    Arnaud<br>
    --     Linux / Unix Expert R&amp;D - Eaton - <a href="http://www.eaton.com/mgeops" target="_blank">http://www.eaton.com/mgeops</a><br>
    Network UPS Tools (NUT) Project Leader -<br>
    <a href="http://www.networkupstools.org/" target="_blank">http://www.networkupstools.org/</a><br>
    Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>
    Free Software Developer - <a href="http://arnaud.quette.free.fr/" target="_blank">http://arnaud.quette.free.fr/</a><br>
<br>
</div></div></blockquote>
<br>
<br><div><div></div><div class="h5">
<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@lists.alioth.debian.org" target="_blank">Nut-upsuser@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser</a><br>
</div></div></blockquote></div><br><br>