]> git.pld-linux.org Git - packages/nut.git/commitdiff
- bcond experimental hidups driver, everups is broken
authorMarcin Winkler <qurczak@gmail.com>
Sun, 18 Apr 2004 18:36:34 +0000 (18:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rel .3

Changed files:
    nut.spec -> 1.74

nut.spec

index 9e05d3f091be767e18b92453a4ef171831d677bc..4ecb24c532dc7e754e86ff020fb540eb06a21500 100644 (file)
--- a/nut.spec
+++ b/nut.spec
@@ -1,8 +1,13 @@
+#
+# Conditional build:
+%bcond_with    hidups                  # experimental hidups driver
+%bcond_with    new_everups_driver      # support for Ever UPS models (broken)
+
 Summary:       Network UPS Tools
 Summary(pl):   Sieciowe narzêdzie do UPS-ów
 Name:          nut
 Version:       1.4.1
-Release:       2
+Release:       3
 License:       GPL
 Group:         Applications/System
 Source0:       http://penguin.harrison.k12.co.us/mirrors/nut/release/1.4/%{name}-%{version}.tar.gz
@@ -156,7 +161,7 @@ Plik wynikowy oraz nag
 %setup -q
 %patch0 -p1
 %patch1 -p1
-%{?_with_new_everups_driver:install %{SOURCE4} drivers/everups.c }
+%{?with_new_everups_driver:install %{SOURCE4} drivers/everups.c }
 
 %build
 cp -f /usr/share/automake/config.sub .
@@ -164,6 +169,7 @@ cp -f /usr/share/automake/config.sub .
 %{__autoconf}
 LDFLAGS="-L%{_prefix}/X11R6/%{_lib}"; export LDFLAGS
 %configure \
+       %{?with_hidups:--with-linux-hiddev} \
        --with-ssl \
        --with-cgi \
        --with-linux-hiddev=%{_includedir}/linux/hiddev.h \
@@ -173,6 +179,7 @@ LDFLAGS="-L%{_prefix}/X11R6/%{_lib}"; export LDFLAGS
        --with-user=ups \
        --with-group=ups
 %{__make} all cgi
+%{?with_hidups:%{__make} hidups}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -194,6 +201,8 @@ install conf/*.users conf/*.conf conf/*.html $RPM_BUILD_ROOT%{_sysconfdir}
 install clients/upsclient.o common/parseconf.o $RPM_BUILD_ROOT%{_libdir}
 install clients/upsclient.h include/parseconf.h $RPM_BUILD_ROOT%{_includedir}/nut
 
+%{?with_hidups:install drivers/hidups $RPM_BUILD_ROOT/lib/nut}
+
 cat > $RPM_BUILD_ROOT/sbin/poweroff-ups << EOF
 #!/bin/sh
 /etc/rc.d/init.d/ups powerdown
This page took 0.078932 seconds and 4 git commands to generate.