]> git.ipfire.org Git - ipfire-3.x.git/blame - lfs/core-updates
s/TARGET/OBJECT/g
[ipfire-3.x.git] / lfs / core-updates
CommitLineData
a5997a4c 1###############################################################################
a5997a4c 2# #
70df8302
MT
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
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
25include Config
26
27VER = ipfire
28
29THISAPP = core-updates
6679675b 30OBJECT = $(DIR_INFO)/$(THISAPP)
a5997a4c
MT
31
32###############################################################################
33# Top-level Rules
34###############################################################################
35
6679675b 36install : $(OBJECT)
a5997a4c
MT
37
38check :
39
40download :
41
42md5 :
43
44###############################################################################
45# Installation Details
46###############################################################################
47
084ab6f4 48CORE = $(patsubst $(DIR_SOURCE)/rootfiles/%,%,$(wildcard $(DIR_SOURCE)/rootfiles/core/*))
9cd0c7fd 49
6679675b 50$(OBJECT) : $(CORE)
9cd0c7fd
MT
51
52core/%:
53 rm -rf /install/packages/package
54 mkdir -p /install/packages/package
084ab6f4
MT
55 eval $$(cat $(DIR_SOURCE)/rootfiles/$@/meta)
56 cp -f $(DIR_SOURCE)/rootfiles/$@/update.sh /install/packages/package
57 cp -f $(DIR_SOURCE)/rootfiles/$@/files /install/packages/package/ROOTFILES
9cd0c7fd
MT
58 chmod 755 /install/packages/package/update.sh
59 cd / && tar cf /install/packages/package/files --files-from=/install/packages/package/ROOTFILES --exclude='#*'
60 -cat /install/packages/package/ROOTFILES | grep -v "#" > /install/packages/package/ROOTFILES
61 cd /install/packages/package && tar cf ../core-upgrade-$(VERSION)-$$(basename $@).ipfire \
62 update.sh files ROOTFILES
63 rm -rf /install/packages/package
64 sed -e "s/NAME/core-upgrade/g" \
a5997a4c 65 -e "s/VER/$(VERSION)/g" \
9cd0c7fd 66 -e "s/RELEASE/$$(basename $@)/g" \
a5997a4c 67 -e "s/DEPS/$(DEPS)/g" \
9cd0c7fd
MT
68 -e "s/SIZE/`ls -l \/install\/packages\/core-upgrade-$(VERSION)-$$(basename $@).ipfire | awk '{ print $$5 }'`/g" \
69 < /usr/src/src/pakfire/meta > /install/packages/meta-core-upgrade-$$(basename $@)