include Config
-VER = 2.4.1
+VER = 2.4.3
THISAPP = nut-$(VER)
DL_FILE = $(THISAPP).tar.gz
DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
PROG = nut
-PAK_VER = 1
+PAK_VER = 2
DEPS = ""
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_MD5 = 609ebaf2123fc7171d25a6c742dd7d66
+$(DL_FILE)_MD5 = 6f893b61b07915e7a139324fa3f79121
install : $(TARGET)
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
- cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc
+ 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 $(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 -v -m 644 $(DIR_SRC)/config/backup/includes/nut \
+ /var/ipfire/backup/addons/includes/nut
@rm -rf $(DIR_APP)
@$(POSTBUILD)