Pakfire laedt die Listen jetzt besser und hat eine veraenderte Oberflaeche bekommen.
[ipfire-2.x.git] / lfs / core-updates
CommitLineData
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
27include Config
28
29VER = ipfire
30
31THISAPP = core-updates
32TARGET = $(DIR_INFO)/$(THISAPP)
33
34###############################################################################
35# Top-level Rules
36###############################################################################
37
38install : $(TARGET)
39
40check :
41
42download :
43
44md5 :
45
46###############################################################################
47# Installation Details
48###############################################################################
49
9cd0c7fd
MT
50CORE = $(patsubst $(DIR_SRC)/config/rootfiles/%,%,$(wildcard $(DIR_SRC)/config/rootfiles/core/*))
51
52$(TARGET) : $(CORE)
53
54core/%:
55 rm -rf /install/packages/package
56 mkdir -p /install/packages/package
57 eval $$(cat /usr/src/config/rootfiles/$@/meta)
58 cp -f /usr/src/config/rootfiles/$@/update.sh /install/packages/package
59 cp -f /usr/src/config/rootfiles/$@/files /install/packages/package/ROOTFILES
60 chmod 755 /install/packages/package/update.sh
61 cd / && tar cf /install/packages/package/files --files-from=/install/packages/package/ROOTFILES --exclude='#*'
62 -cat /install/packages/package/ROOTFILES | grep -v "#" > /install/packages/package/ROOTFILES
63 cd /install/packages/package && tar cf ../core-upgrade-$(VERSION)-$$(basename $@).ipfire \
64 update.sh files ROOTFILES
65 rm -rf /install/packages/package
66 sed -e "s/NAME/core-upgrade/g" \
a5997a4c 67 -e "s/VER/$(VERSION)/g" \
9cd0c7fd 68 -e "s/RELEASE/$$(basename $@)/g" \
a5997a4c
MT
69 -e "s/DEPS/$(DEPS)/g" \
70 -e "s/DESCDE/$(DESCDE)/g" \
71 -e "s/DESCEN/$(DESCEN)/g" \
9cd0c7fd
MT
72 -e "s/SIZE/`ls -l \/install\/packages\/core-upgrade-$(VERSION)-$$(basename $@).ipfire | awk '{ print $$5 }'`/g" \
73 < /usr/src/src/pakfire/meta > /install/packages/meta-core-upgrade-$$(basename $@)