]>
Commit | Line | Data |
---|---|---|
a5997a4c MT |
1 | ############################################################################### |
2 | # This file is part of the IPCop Firewall. # | |
3 | # # | |
4 | # IPCop is free software; you can redistribute it and/or modify # | |
5 | # it under the terms of the GNU General Public License as published by # | |
6 | # the Free Software Foundation; either version 2 of the License, or # | |
7 | # (at your option) any later version. # | |
8 | # # | |
9 | # IPCop is distributed in the hope that it will be useful, # | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
12 | # GNU General Public License for more details. # | |
13 | # # | |
14 | # You should have received a copy of the GNU General Public License # | |
15 | # along with IPCop; if not, write to the Free Software # | |
16 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # | |
17 | # # | |
18 | # Makefiles are based on LFSMake, which is # | |
19 | # Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> # | |
20 | # # | |
21 | ############################################################################### | |
22 | ||
23 | ############################################################################### | |
24 | # Definitions | |
25 | ############################################################################### | |
26 | ||
27 | include Config | |
28 | ||
29 | VER = ipfire | |
30 | ||
31 | THISAPP = core-updates | |
32 | TARGET = $(DIR_INFO)/$(THISAPP) | |
33 | ||
34 | ############################################################################### | |
35 | # Top-level Rules | |
36 | ############################################################################### | |
37 | ||
38 | install : $(TARGET) | |
39 | ||
40 | check : | |
41 | ||
42 | download : | |
43 | ||
44 | md5 : | |
45 | ||
46 | ############################################################################### | |
47 | # Installation Details | |
48 | ############################################################################### | |
49 | ||
50 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
51 | for i in $$(ls -1 $(DIR_SRC)/config/rootfiles/core) ; do \ | |
52 | if [ "$$i" == "files" ]; then continue; fi; \ | |
53 | rm -rf /install/packages/package; \ | |
54 | mkdir -p /install/packages/package && \ | |
55 | eval $$(cat /usr/src/config/rootfiles/core/$$i/meta) \ | |
56 | && cp -f /usr/src/config/rootfiles/core/$$i/update.sh /install/packages/package \ | |
57 | && cp -f /usr/src/config/rootfiles/core/$$i/files /install/packages/package/ROOTFILES \ | |
58 | && chmod 755 /install/packages/package/update.sh \ | |
59 | && cd / \ | |
60 | && tar -cf /install/packages/package/files --files-from=/install/packages/package/ROOTFILES --exclude='#*' \ | |
61 | && cat /install/packages/package/ROOTFILES | grep -v "#" > /install/packages/package/ROOTFILES; \ | |
62 | cd /install/packages/package && tar cf ../core-update-$(VERSION)-$$i.ipfire \ | |
63 | --files-from=/usr/src/config/rootfiles/core/files && \ | |
64 | rm -rf /install/packages/package; \ | |
65 | sed -e "s/NAME/core-update/g" \ | |
66 | -e "s/VER/$(VERSION)/g" \ | |
67 | -e "s/RELEASE/$$i/g" \ | |
68 | -e "s/DEPS/$(DEPS)/g" \ | |
69 | -e "s/DESCDE/$(DESCDE)/g" \ | |
70 | -e "s/DESCEN/$(DESCEN)/g" \ | |
71 | -e "s/SIZE/`ls -l \/install\/packages\/core-update-$(VERSION)-$$i.ipfire | awk '{ print \$5 }'`/g" \ | |
72 | < /usr/src/src/pakfire/meta > /install/packages/meta-core-update-$$i; \ | |
73 | done |