]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/blobdiff - lfs/backup
Merge branch 'master' into next
[people/mfischer/ipfire-2.x.git] / lfs / backup
index 736f101be9a3ac7c13c79897434741d5fa11dbea..211f3570f0f12bf1e9a5c1accdf58ba96ebee9d2 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2021  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        #
 
 include Config
 
+SUMMARY    = IPFire backup extension
+
 VER        = ipfire
 
 THISAPP    = backup-$(VER)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = backup
-PAK_VER    = 1
+PAK_VER    = 2
+
+DEPS       =
 
-DESCDE     = "Im Paket Backup sind alle notwendigen Dateien für das Backup des IPFire enthalten."
-DESCEN     = "Backup contains all the files that are necessary for backing up the IPFire."
-DEPS       = ""
+SERVICES   =
 
 ###############################################################################
 # Top-level Rules
@@ -42,13 +44,13 @@ DEPS       = ""
 
 install : $(TARGET)
 
-check : 
+check :
 
 download :
 
-md5 : 
+md5 :
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
@@ -58,8 +60,12 @@ dist:
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        -mkdir -p /var/ipfire/backup/bin
-       install -v -m 755 $(DIR_SRC)/config/backup/backup.pl /var/ipfire/backup/bin
+       install -v -m 755 -o root $(DIR_SRC)/config/backup/backup.pl /var/ipfire/backup/bin
        install -v -m 644 $(DIR_SRC)/config/backup/include /var/ipfire/backup/
        install -v -m 644 $(DIR_SRC)/config/backup/exclude /var/ipfire/backup/
        chown nobody:nobody -R /var/ipfire/backup/
+       chown root:root -R /var/ipfire/backup/bin/
+       -mkdir -p /var/ipfire/backup/addons
+       -mkdir -p /var/ipfire/backup/addons/includes
+       -mkdir -p /var/ipfire/backup/addons/backup
        @$(POSTBUILD)