]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/nut
buildprocess: Add extra metadata to pak lfs files
[ipfire-2.x.git] / lfs / nut
diff --git a/lfs/nut b/lfs/nut
index 33a4bb1bcd6708479ce05cbce732961d695ae867..625f7f094580616f48ffea5980acb0cb8f28a7d4 100644 (file)
--- a/lfs/nut
+++ b/lfs/nut
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2009  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2018  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -24,6 +24,8 @@
 
 include Config
 
+SUMMARY    = Network UPS Tools Core (Uninterruptible Power Supply Monitoring)
+
 VER        = 2.7.4
 
 THISAPP    = nut-$(VER)
@@ -34,7 +36,11 @@ TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = nut
 PAK_VER    = 7
 
-DEPS       = ""
+DEPS       =
+
+SERVICES   = nut
+
+CXXFLAGS  += -std=c++11
 
 ###############################################################################
 # Top-level Rules
@@ -77,16 +83,17 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       $(UPDATE_AUTOMAKE)
        cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc/nut \
                        --with-usb --with-user=root --with-group=nut \
                        --with-wrap=no --with-udev-dir=/etc/udev
-       cd $(DIR_APP) && make
+       cd $(DIR_APP) && make #$(MAKETUNING)
        cd $(DIR_APP) && make install
 #      sed -i -e "s|ATTR{|SYSFS{|g" /etc/udev/rules.d/52-nut-usbups.rules
        mkdir -p /var/state/ups
 
        #install initscripts
-       $(call INSTALL_INITSCRIPT,nut)
+       $(call INSTALL_INITSCRIPTS,$(SERVICES))
 
        install -v -m 644 $(DIR_SRC)/config/backup/includes/nut \
                         /var/ipfire/backup/addons/includes/nut