]>
Commit | Line | Data |
---|---|---|
a5997a4c | 1 | ############################################################################### |
a5997a4c | 2 | # # |
70df8302 | 3 | # IPFire.org - A linux based firewall # |
eee037b8 | 4 | # Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> # |
70df8302 MT |
5 | # # |
6 | # This program is free software: you can redistribute it and/or modify # | |
a5997a4c | 7 | # it under the terms of the GNU General Public License as published by # |
70df8302 | 8 | # the Free Software Foundation, either version 3 of the License, or # |
a5997a4c MT |
9 | # (at your option) any later version. # |
10 | # # | |
70df8302 | 11 | # This program is distributed in the hope that it will be useful, # |
a5997a4c MT |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
70df8302 | 17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # |
a5997a4c MT |
18 | # # |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include Config | |
26 | ||
27267889 MF |
27 | THISAPP = core-updates |
28 | TARGET = $(DIR_INFO)/$(THISAPP) | |
a5997a4c | 29 | |
f7879935 | 30 | PROG = core-upgrade |
708f2635 | 31 | VER = $(VERSION) |
f7879935 | 32 | PAK_VER = $(CORE) |
708f2635 | 33 | |
f7879935 | 34 | SUMMARY = IPFire Core Update $(CORE) |
708f2635 | 35 | |
6fc9957e MT |
36 | META_FILENAME = meta-$(PROG)-$(CORE) |
37 | ||
a5997a4c MT |
38 | ############################################################################### |
39 | # Top-level Rules | |
40 | ############################################################################### | |
41 | ||
a5997a4c MT |
42 | check : |
43 | ||
44 | download : | |
45 | ||
9a7e4d85 | 46 | b2 : |
a5997a4c MT |
47 | |
48 | ############################################################################### | |
49 | # Installation Details | |
50 | ############################################################################### | |
51 | ||
708f2635 MT |
52 | .PHONY: |
53 | install: | |
54 | @rm -rf $(ARCHIVE_DIR) && mkdir -pv $(ARCHIVE_DIR) $(ARCHIVE_TMP) | |
9cd0c7fd | 55 | |
708f2635 | 56 | # Generate the archive and write out the rootfile |
8e6bb176 | 57 | $(call COPY_FILES,$(DIR_SRC)/config/rootfiles/core/$(CORE)/filelists,$(ARCHIVE_TMP),,$(ARCHIVE_DIR)/ROOTFILES,$(DIR_SRC)/config/rootfiles/core/$(CORE)/exclude) |
9cd0c7fd | 58 | |
708f2635 MT |
59 | # Create the archive |
60 | $(call COMPRESS_XZ,$(ARCHIVE_TMP),$(ARCHIVE_DIR)/files.tar.xz) | |
61 | ||
62 | # Remove the temporary files | |
63 | rm -rf $(ARCHIVE_TMP) | |
64 | ||
65 | # Install update scripts | |
66 | cd $(DIR_SRC) && install -v -m 744 config/rootfiles/core/$(CORE)/update.sh \ | |
67 | $(ARCHIVE_DIR)/update.sh | |
68 | ||
69 | # Replace the kernel version | |
70 | sed -e "s/xxxKVERxxx/$(KVER)/g" -i $(ARCHIVE_DIR)/update.sh | |
71 | ||
72 | # Create the package | |
73 | $(call CREATE_PACKAGE,$(ARCHIVE_DIR),$(PACKAGES_DIR)/$(PACKAGE_FILENAME)) | |
74 | ||
75 | # Write the meta file | |
79f9af39 | 76 | $(call CREATE_META,$(PACKAGES_DIR)/$(PACKAGE_FILENAME),$(PACKAGES_DIR)/$(META_FILENAME)) |
708f2635 MT |
77 | |
78 | # Cleanup | |
79 | @rm -rf $(ARCHIVE_DIR) |