Add backup include for nut.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 25 Oct 2009 11:16:37 +0000 (12:16 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 25 Oct 2009 11:16:37 +0000 (12:16 +0100)
initskripts rootfile update.

config/backup/includes/nut [new file with mode: 0644]
config/rootfiles/common/initscripts
config/rootfiles/packages/nut
lfs/nut

diff --git a/config/backup/includes/nut b/config/backup/includes/nut
new file mode 100644 (file)
index 0000000..e8f8e84
--- /dev/null
@@ -0,0 +1 @@
+/etc/nut/
index 99eba48..efe5122 100644 (file)
@@ -79,6 +79,7 @@ etc/rc.d/init.d/networking/red.up/99-U-dialctrl.pl
 etc/rc.d/init.d/networking/red.up/99-pakfire-update
 #etc/rc.d/init.d/nfs-server
 etc/rc.d/init.d/ntp
+#etc/rc.d/init.d/nut
 #etc/rc.d/init.d/portmap
 #etc/rc.d/init.d/postfix
 etc/rc.d/init.d/random
index 7e85fc1..146d320 100644 (file)
@@ -1,3 +1,4 @@
+var/ipfire/backup/addons/includes/nut
 etc/rc.d/init.d/nut
 #etc/nut
 etc/nut/nut.conf.sample
diff --git a/lfs/nut b/lfs/nut
index bb17184..3ecf78d 100644 (file)
--- a/lfs/nut
+++ b/lfs/nut
@@ -77,8 +77,12 @@ $(subst %,%_MD5,$(objects)) :
 $(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/nut --with-usb --with-user=root --with-group=nut --with-wrap=no --with-udev-dir=/etc/udev
+       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
+       install -v -m 644 $(DIR_SRC)/config/backup/includes/nut \
+                        /var/ipfire/backup/addons/includes/nut
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)