@ -1,5 +1,5 @@
#
# Copyright (C) 2006-2015 OpenWrt.org
# Copyright (C) 2006-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -18,19 +18,12 @@ PKG_MAINTAINER:=Martin Rowe <martin.p.rowe@gmail.com>
PKG_LICENSE := GPL-2.0
PKG_LICENSE_FILES := LICENSE-GPL2
PKG_BUILD_DIR := $( BUILD_DIR) /nut -$( PKG_VERSION)
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) -$( PKG_VERSION)
PKG_INSTALL := 1
PKG_CONFIG_DEPENDS := \
CONFIG_NUT_CLIENTS_UPSC \
CONFIG_NUT_CLIENTS_UPSCMD \
CONFIG_NUT_CLIENTS_UPSLOG \
CONFIG_NUT_CLIENTS_UPSMON \
CONFIG_NUT_CLIENTS_UPSRW \
CONFIG_NUT_CLIENTS_UPSSCHED \
CONFIG_NUT_DRIVER_SNMP \
CONFIG_NUT_DRIVER_USB \
CONFIG_NUT_SERVER \
CONFIG_NUT_SSL
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
@ -39,10 +32,10 @@ define Package/nut/Default
SECTION:= net
CATEGORY:= Network
URL:= http://www.networkupstools.org/
DEPENDS:= nut
TITLE:= Network UPS Tools ( NUT)
e n d e f
d e f i n e P a c k a g e / n u t / d e s c r i p t i o n
d e f i n e P a c k a g e / n u t / d e s c r i p t i o n / D e f a u l t
N e t w o r k U P S T o o l s ( N U T ) i s a c l i e n t / s e r v e r m o n i t o r i n g s y s t e m t h a t
a l l o w s c o m p u t e r s t o s h a r e u n i n t e r r u p t i b l e p o w e r s u p p l y ( U P S ) a n d
p o w e r d i s t r i b u t i o n u n i t ( P D U ) h a r d w a r e . C l i e n t s a c c e s s t h e h a r d w a r e
@ -52,68 +45,222 @@ endef
d e f i n e P a c k a g e / n u t
$( call Package/nut/Default)
TITLE:= Network UPS Tools
DEPENDS:= \
+libpthread \
+NUT_DRIVER_SNMP:libnetsnmp \
+NUT_DRIVER_USB:libusb-compat \
+NUT_SSL:libopenssl
MENU:= 1
e n d e f
d e f i n e P a c k a g e / n u t / d e s c r i p t i o n
$( call Package /nut /description /Default )
e n d e f
d e f i n e P a c k a g e / n u t / c o n f i g
source " $( SOURCE) /Config.in "
e n d e f
d e f i n e P a c k a g e / n u t / c o n f f i l e s
/ e t c / n u t / n u t . c o n f
$( if $ ( CONFIG_NUT_CLIENTS_UPSMON ) ,/etc /nut /upsmon .conf )
$( if $ ( CONFIG_NUT_CLIENTS_UPSSCHED ) ,/etc /nut /upssched .conf )
$( if $ ( CONFIG_NUT_SERVER ) ,/etc /nut /ups .conf )
$( if $ ( CONFIG_NUT_SERVER ) ,/etc /nut /upsd .conf )
$( if $ ( CONFIG_NUT_SERVER ) ,/etc /nut /upsd .users )
d e f i n e P a c k a g e / n u t / i n s t a l l
true
e n d e f
d e f i n e P a c k a g e / n u t / i n s t a l l
d e f i n e P a c k a g e / n u t - s e r v e r / i n s t a l l
$( INSTALL_DIR) $( 1) /etc/nut
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_DIR) $( 1) /usr/share/nut
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_BIN) ./files/nut-server.init $( 1) /etc/init.d/nut-server
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin/upsd $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin/upsdrvctl $( 1) /usr/sbin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/nut/cmdvartab $( 1) /usr/share/nut/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/share/nut/driver.list $( 1) /usr/share/nut/
$( INSTALL_DIR) $( 1) /etc/config
$( INSTALL_CONF) ./files/nut_server $( 1) /etc/config/nut_server
ln -sf /var/etc/nut/nut.conf $( 1) /etc/nut/nut.conf
ln -sf /var/etc/nut/ups.conf $( 1) /etc/nut/ups.conf
ln -sf /var/etc/nut/upsd.users $( 1) /etc/nut/upsd.users
ln -sf /var/etc/nut/upsd.conf $( 1) /etc/nut/upsd.conf
e n d e f
d e f i n e P a c k a g e / n u t - c o m m o n
$( call Package/nut/Default)
TITLE += ( common)
DEPENDS:= nut \
+NUT_DRIVER_SNMP:libnetsnmp \
+NUT_DRIVER_USB:libusb-compat \
+NUT_SSL:libopenssl
e n d e f
d e f i n e P a c k a g e / n u t - c o m m o n / d e s c r i p t i o n
$( call Package /nut /description /Default )
T h i s p a c k a g e c o n t a i n s t h e c o m m o n f i l e s .
e n d e f
d e f i n e P a c k a g e / n u t - c o m m o n / i n s t a l l
$( INSTALL_DIR) $( 1) /etc/nut
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libupsclient.so* $( 1) /usr/lib/
ln -sf /var/etc/nut/nut.conf $( 1) /etc/nut/nut.conf
e n d e f
d e f i n e P a c k a g e / n u t - s e r v e r
$( call Package/nut/Default)
TITLE += ( server)
DEPENDS:= nut +nut-common
e n d e f
d e f i n e P a c k a g e / n u t - s e r v e r / d e s c r i p t i o n
$( call Package /nut /description /Default )
u p s d i s r e s p o n s i b l e f o r s e r v i n g t h e d a t a f r o m t h e d r i v e r s t o t h e
c l i e n t s . I t c o n n e c t s t o e a c h d r i v e r a n d m a i n t a i n s a l o c a l c a c h e o f t h e
c u r r e n t s t a t e . Q u e r i e s f r o m t h e c l i e n t s a r e s e r v e d f r o m t h i s c a c h e , s o
d e l a y s a r e m i n i m a l . T h i s p r o g r a m i s e s s e n t i a l , a n d m u s t b e r u n n i n g a t
a l l t i m e s t o a c t u a l l y m a k e a n y u s e o u t o f t h e d r i v e r s a n d c l i e n t s .
e n d e f
d e f i n e P a c k a g e / n u t - s e r v e r / c o n f f i l e s
/ e t c / c o n f i g / n u t _ s e r v e r
e n d e f
d e f i n e P a c k a g e / n u t - u p s m o n
$( call Package/nut/Default)
TITLE += ( monitor)
DEPENDS:= nut +nut-common
USERID:= nut = 113:nut= 113
e n d e f
d e f i n e P a c k a g e / n u t - u p s m o n / d e s c r i p t i o n
$( call Package /nut /description /Default )
u p s m o n i s t h e c l i e n t p r o c e s s t h a t i s r e s p o n s i b l e f o r t h e m o s t i m p o r t a n t
p a r t o f U P S m o n i t o r i n g - - s h u t t i n g d o w n t h e s y s t e m w h e n t h e p o w e r g o e s
o u t . I t c a n c a l l o u t t o o t h e r h e l p e r p r o g r a m s f o r n o t i f i c a t i o n p u r p o s e s
d u r i n g p o w e r e v e n t s . u p s m o n c a n m o n i t o r m u l t i p l e s y s t e m s u s i n g a s i n g l e
p r o c e s s . E v e r y U P S t h a t i s d e f i n e d i n t h e u p s m o n . c o n f c o n f i g u r a t i o n f i l e
i s a s s i g n e d a p o w e r v a l u e a n d a t y p e ( s l a v e o r m a s t e r ) .
e n d e f
d e f i n e P a c k a g e / n u t - u p s m o n / c o n f f i l e s
/ e t c / c o n f i g / n u t _ m o n i t o r
e n d e f
d e f i n e P a c k a g e / n u t - u p s m o n / i n s t a l l
$( INSTALL_DIR) $( 1) /etc/nut
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_BIN) ./files/nut-monitor.init $( 1) /etc/init.d/nut-monitor
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin/upsmon $( 1) /usr/sbin/
$( INSTALL_DIR) $( 1) /etc/config
$( INSTALL_CONF) ./files/nut_monitor $( 1) /etc/config/nut_monitor
ln -sf /var/etc/nut/upsmon.conf $( 1) /etc/nut/upsmon.conf
e n d e f
d e f i n e P a c k a g e / n u t - u p s c
$( call Package/nut/Default)
TITLE += ( upsc command )
DEPENDS:= nut +nut-common
e n d e f
d e f i n e P a c k a g e / n u t - u p s c / d e s c r i p t i o n
$( call Package /nut /description /Default )
u p s c i s p r o v i d e d a s a q u i c k w a y t o p o l l t h e s t a t u s o f a U P S s e r v e r . I t
c a n b e u s e d i n s i d e s h e l l s c r i p t s a n d o t h e r p r o g r a m s t h a t n e e d U P S d a t a
b u t d o n n o t w a n t t o i n c l u d e t h e f u l l i n t e r f a c e .
e n d e f
d e f i n e P a c k a g e / n u t - u p s c / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/upsc $( 1) /usr/bin
e n d e f
d e f i n e P a c k a g e / n u t - u p s l o g
$( call Package/nut/Default)
TITLE += ( logging client)
DEPENDS:= nut +nut-common
e n d e f
d e f i n e P a c k a g e / n u t - u p s l o g / d e s c r i p t i o n
$( call Package /nut /description /Default )
u p s l o g i s a d a e m o n t h a t w i l l p o l l a U P S a t p e r i o d i c i n t e r v a l s , f e t c h t h e
v a r i a b l e s t h a t i n t e r e s t y o u , f o r m a t t h e m , a n d w r i t e t h e m t o a f i l e .
e n d e f
d e f i n e P a c k a g e / n u t - u p s l o g / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/upslog $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / n u t - u p s c m d
$( call Package/nut/Default)
TITLE += ( controller)
DEPENDS:= nut +nut-common
e n d e f
d e f i n e P a c k a g e / n u t - u p s c m d / d e s c r i p t i o n
$( call Package /nut /description /Default )
u p s c m d a l l o w s y o u t o i n v o k e "instant commands" i n y o u r U P S h a r d w a r e . N o t
a l l h a r d w a r e s u p p o r t s t h i s , s o c h e c k t h e l i s t w i t h - l t o s e e i f a n y t h i n g
w i l l w o r k o n y o u r e q u i p m e n t . O n h a r d w a r e t h a t s u p p o r t s i t , y o u c a n u s e
t h i s p r o g r a m t o s t a r t a n d s t o p b a t t e r y t e s t s , i n v o k e a f r o n t p a n e l t e s t
( b e e p ! ) , t u r n t h e l o a d o n o r o f f , a n d m o r e .
e n d e f
d e f i n e P a c k a g e / n u t - u p s c m d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/upscmd $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / n u t - u p s r w
$( call Package/nut/Default)
TITLE += ( variable editor)
DEPENDS:= nut +nut-common
e n d e f
d e f i n e P a c k a g e / n u t - u p s r w / d e s c r i p t i o n
$( call Package /nut /description /Default )
u p s r w a l l o w s y o u t o v i e w a n d c h a n g e t h e r e a d / w r i t e v a r i a b l e s i n s i d e y o u r
U P S . I t s e n d s c o m m a n d s v i a t h e u p s d t o y o u r d r i v e r , w h i c h c o n f i g u r e s t h e
h a r d w a r e f o r y o u . T h e l i s t o f v a r i a b l e s t h a t a l l o w y o u t o c h a n g e t h e i r
v a l u e s i s b a s e d o n t h e c a p a b i l i t i e s o f y o u r U P S e q u i p m e n t . N o t a l l
m o d e l s s u p p o r t t h i s f e a t u r e . T y p i c a l l y , c h e a p e r h a r d w a r e d o e s n o t
s u p p o r t a n y o f t h e m .
e n d e f
d e f i n e P a c k a g e / n u t - u p s r w / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/upsrw $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / n u t - u p s s c h e d
$( call Package/nut/Default)
TITLE += ( helper for triggering events from upsmon)
DEPENDS:= nut +nut-common +nut-upsmon
e n d e f
d e f i n e P a c k a g e / n u t - u p s s c h e d / d e s c r i p t i o n
$( call Package /nut /description /Default )
u p s s c h e d w a s c r e a t e d t o a l l o w u s e r s t o e x e c u t e p r o g r a m s a t t i m e s r e l a t i v e
t o e v e n t s b e i n g m o n i t o r e d b y u p s m o n . T h e o r i g i n a l p u r p o s e w a s t o a l l o w
f o r a s h u t d o w n t o o c c u r a f t e r s o m e f i x e d p e r i o d o n b a t t e r y , b u t t h e r e a r e
o t h e r u s e s t h a t a r e p o s s i b l e .
Y o u c a n a l t e r n a t i v e l y w r i t e y o u r o w n s c r i p t a n d s a v e s o m e s p a c e .
e n d e f
d e f i n e P a c k a g e / n u t - u p s s c h e d / c o n f f i l e s
/ e t c / n u t / u p s s c h e d . c o n f
e n d e f
d e f i n e P a c k a g e / n u t - u p s s c h e d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_DIR) $( 1) /usr/sbin
$( INSTALL_CONF) $( PKG_INSTALL_DIR) /etc/nut/nut.conf.sample $( 1) /etc/nut/nut.conf
$( if $( or $( CONFIG_NUT_CLIENTS_UPSC) ,\
$( CONFIG_NUT_CLIENTS_UPSCMD) ,\
$( CONFIG_NUT_CLIENTS_LOG) ,\
$( CONFIG_NUT_CLIENTS_UPSRW) ,\
$( CONFIG_NUT_CLIENTS_UPSMON) ,\
$( CONFIG_NUT_CLIENTS_UPSSCHED) ) ,$( CP) $( PKG_INSTALL_DIR) /usr/lib/libupsclient.so* $( 1) /usr/lib/)
$( if $( or $( CONFIG_NUT_SERVER) ,\
$( CONFIG_NUT_CLIENTS_UPSMON) ) ,$( INSTALL_DIR) $( 1) /etc/init.d)
$( if $( CONFIG_NUT_SERVER) ,$( INSTALL_DIR) $( 1) /lib/nut)
$( if $( CONFIG_NUT_SERVER) ,$( INSTALL_DIR) $( 1) /usr/share/nut)
$( if $( CONFIG_NUT_SERVER) ,$( CP) ./files/nut-server.init $( 1) /etc/init.d/)
$( if $( CONFIG_NUT_SERVER) ,$( CP) $( PKG_INSTALL_DIR) /usr/sbin/upsd $( 1) /usr/sbin)
$( if $( CONFIG_NUT_SERVER) ,$( CP) $( PKG_INSTALL_DIR) /usr/sbin/upsdrvctl $( 1) /usr/sbin)
$( if $( CONFIG_NUT_SERVER) ,$( CP) $( PKG_INSTALL_DIR) /usr/share/nut/cmdvartab $( 1) /usr/share/nut/)
$( if $( CONFIG_NUT_SERVER) ,$( CP) $( PKG_INSTALL_DIR) /usr/share/nut/driver.list $( 1) /usr/share/nut/)
$( if $( CONFIG_NUT_SERVER) ,$( INSTALL_CONF) $( PKG_INSTALL_DIR) /etc/nut/ups.conf.sample $( 1) /etc/nut/ups.conf)
$( if $( CONFIG_NUT_SERVER) ,$( INSTALL_CONF) $( PKG_INSTALL_DIR) /etc/nut/upsd.conf.sample $( 1) /etc/nut/upsd.conf)
$( if $( CONFIG_NUT_SERVER) ,$( INSTALL_CONF) $( PKG_INSTALL_DIR) /etc/nut/upsd.users.sample $( 1) /etc/nut/upsd.users)
$( if $( CONFIG_NUT_CLIENTS_UPSC) ,$( CP) $( PKG_INSTALL_DIR) /usr/bin/upsc $( 1) /usr/bin/)
$( if $( CONFIG_NUT_CLIENTS_UPSCMD) ,$( CP) $( PKG_INSTALL_DIR) /usr/bin/upscmd $( 1) /usr/bin/)
$( if $( CONFIG_NUT_CLIENTS_UPSLOG) ,$( CP) $( PKG_INSTALL_DIR) /usr/bin/upslog $( 1) /usr/bin/)
$( if $( CONFIG_NUT_CLIENTS_UPSRW) ,$( CP) $( PKG_INSTALL_DIR) /usr/bin/upsrw $( 1) /usr/bin/)
$( if $( CONFIG_NUT_CLIENTS_UPSMON) ,$( CP) ./files/nut-monitor.init $( 1) /etc/init.d/)
$( if $( CONFIG_NUT_CLIENTS_UPSMON) ,$( CP) $( PKG_INSTALL_DIR) /usr/sbin/upsmon $( 1) /usr/sbin/)
$( if $( CONFIG_NUT_CLIENTS_UPSMON) ,$( INSTALL_CONF) $( PKG_INSTALL_DIR) /etc/nut/upsmon.conf.sample $( 1) /etc/nut/upsmon.conf)
$( if $( CONFIG_NUT_CLIENTS_UPSSCHED) ,$( CP) $( PKG_INSTALL_DIR) /usr/bin/upssched-cmd $( 1) /usr/bin/)
$( if $( CONFIG_NUT_CLIENTS_UPSSCHED) ,$( CP) $( PKG_INSTALL_DIR) /usr/sbin/upssched $( 1) /usr/sbin/)
$( if $( CONFIG_NUT_CLIENTS_UPSSCHED) ,$( INSTALL_CONF) $( PKG_INSTALL_DIR) /etc/nut/upssched.conf.sample $( 1) /etc/nut/upssched.conf)
$( INSTALL_DIR) $( 1) /etc/nut
$( INSTALL_DIR) $( 1) /etc/uci-defaults
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/bin/upssched-cmd $( 1) /usr/bin/
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/sbin/upssched $( 1) /usr/sbin/
$( INSTALL_CONF) $( PKG_INSTALL_DIR) /etc/nut/upssched.conf.sample $( 1) /etc/nut/upssched.conf
$( INSTALL_DATA) ./files/nut-sched.default $( 1) /etc/uci-defaults/nut-upssched
e n d e f
d e f i n e P a c k a g e / n u t - w e b - c g i
$( call Package/nut/Default)
TITLE += Web CGI interface
DEPENDS += +libgd
DEPENDS:= nut +nut-common +libgd
e n d e f
d e f i n e P a c k a g e / n u t - w e b - c g i / d e s c r i p t i o n
@ -127,23 +274,29 @@ define Package/nut-web-cgi/conffiles
/ e t c / n u t / u p s s e t . c o n f
/ e t c / n u t / u p s s t a t s . h t m l
/ e t c / n u t / u p s s t a t s - s i n g l e . h t m l
/ e t c / c o n f i g / n u t _ c g i
e n d e f
d e f i n e P a c k a g e / n u t - w e b - c g i / i n s t a l l
$( INSTALL_DIR) $( 1) /www/cgi-bin/nut $( 1) /www/nut
$( INSTALL_DIR) $( 1) /etc/nut
$( INSTALL_DIR) $( 1) /usr/share/www/cgi-bin
$( INSTALL_CONF) $( PKG_INSTALL_DIR) /etc/nut/hosts.conf.sample $( 1) /etc/nut/hosts.conf
$( INSTALL_CONF) $( PKG_INSTALL_DIR) /etc/nut/upsset.conf.sample $( 1) /etc/nut/upsset.conf
$( CP) $( PKG_INSTALL_DIR) /usr/html/* $( 1) /www/nut/
$( INSTALL_DIR) $( 1) /etc/uci-defaults
$( INSTALL_BIN) $( PKG_INSTALL_DIR) /usr/cgi-bin/* $( 1) /www/cgi-bin/nut
$( INSTALL_CONF) ./files/add_nut_httpd_conf $( 1) /etc/uci-defaults/add_nut_httpd_conf
$( INSTALL_CONF) $( PKG_INSTALL_DIR) /etc/nut/upsstats.html.sample $( 1) /etc/nut/upsstats.html
$( INSTALL_CONF) $( PKG_INSTALL_DIR) /etc/nut/upsstats-single.html.sample $( 1) /etc/nut/upsstats-single.html
$( CP) $( PKG_INSTALL_DIR) /usr/share/www/nut $( 1) /usr/share/www/
$( CP) $( PKG_INSTALL_DIR) /usr/share/www/cgi-bin/nut $( 1) /usr/share/www/cgi-bin/
$( INSTALL_DIR) $( 1) /etc/config
$( INSTALL_CONF) ./files/nut_cgi $( 1) /etc/config/nut_cgi
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_BIN) ./files/nut-cgi.init $( 1) /etc/init.d/nut-cgi
ln -sf /var/etc/nut/hosts.conf $( 1) /etc/nut/hosts.conf
e n d e f
d e f i n e P a c k a g e / n u t - a v a h i - s e r v i c e
$( call Package/nut/Default)
TITLE += ( Avahi service)
DEPENDS += +avahi-daemon
DEPENDS:= nut +avahi-daemon
e n d e f
d e f i n e P a c k a g e / n u t - a v a h i - s e r v i c e / d e s c r i p t i o n
@ -166,6 +319,7 @@ define DriverPackage
define Package/nut-driver-$( 2)
$( call Package/nut/Default)
TITLE:= $( 2) ( NUT $( 1) driver)
DEPENDS:= nut +nut-common
$( if $( filter $( 1) ,snmp) ,DEPENDS+= @NUT_DRIVER_SNMP)
$( if $( filter $( 1) ,usb) ,DEPENDS+= @NUT_DRIVER_USB)
endef
@ -325,15 +479,13 @@ CONFIGURE_ARGS += \
--$( if $( CONFIG_NUT_DRIVER_SNMP) ,with,without) -snmp \
--without-neon \
--without-powerman \
--with-cgi \
--without-ipmi \
--without-freeipmi \
--$( if $( CONFIG_NUT_SSL) ,with,without) -ssl $( if $( CONFIG_NUT_SSL) ,--with-openssl) \
--without-libltdl \
--$( if $( CONFIG_PACKAGE_nut-web-cgi) ,with,without) -cgi \
--with-statepath= /var/run \
--with-drvpath= /lib/nut \
--with-cgipath= /usr/share/www/cgi-bin/nut \
--with-htmlpath= /usr/share/www/nut \
--with-user= root \
--with-group= root
@ -345,6 +497,14 @@ define Build/InstallDev
e n d e f
$( eval $ ( call BuildPackage ,nut ) )
$( eval $ ( call BuildPackage ,nut -common ) )
$( eval $ ( call BuildPackage ,nut -server ) )
$( eval $ ( call BuildPackage ,nut -upsmon ) )
$( eval $ ( call BuildPackage ,nut -upsc ) )
$( eval $ ( call BuildPackage ,nut -upscmd ) )
$( eval $ ( call BuildPackage ,nut -upslog ) )
$( eval $ ( call BuildPackage ,nut -upsrw ) )
$( eval $ ( call BuildPackage ,nut -upssched ) )
$( eval $ ( call BuildPackage ,nut -web -cgi ) )
$( eval $ ( call BuildPackage ,nut -avahi -service ) )
$( foreach d ,$ ( filter -out $ ( SERIAL_DRIVERLIST_IGNORE ) ,$ ( SERIAL_DRIVERLIST ) ) ,$ ( eval $ ( call BuildPackage ,nut -driver -$ ( d ) ) ) )