1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
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. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
30 TARGET = $(DIR_INFO)/$(THISAPP)
32 ###############################################################################
34 ###############################################################################
44 ###############################################################################
45 # Installation Details
46 ###############################################################################
48 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
49 rm -rf /install/updater /tmp/*
51 # Compress files of filelists
52 # Reason for this tar+untar+tar is removing of entries listed two or more in src/ROOTFILES
53 mkdir -p /install/updater
54 find $(DIR_SRC)/config/rootfiles/updater/filelists -maxdepth 1 -type f | xargs cat >> /tmp/ROOTFILES
55 sed -e "s/KVER/$(KVER)/g" -i /tmp/ROOTFILES
56 tar -c -C / --files-from=/tmp/ROOTFILES \
57 -f /$(SNAME).tar --exclude='#*' --exclude='dev/pts/*' \
58 --exclude='proc/*' --exclude='tmp/ROOTFILES'
60 tar -x -C /tmp -f /$(SNAME).tar
62 cd /tmp && tar jcf /install/updater/files.ipfire * && rm -rf *
65 cp $(DIR_SRC)/config/rootfiles/updater/update.sh /install/updater/
66 chmod 755 /install/updater/update.sh
67 cd /install/updater && tar jcf ../images/updater-$(SNAME)-$(VERSION).tar.bz2 \
68 update.sh files.ipfire
69 rm -rf /install/updater