]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/foomatic
Updated Kernel (2.6.32.22).
[people/pmueller/ipfire-2.x.git] / lfs / foomatic
CommitLineData
fccb3371 1###############################################################################
fccb3371 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 #
fccb3371 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 #
fccb3371
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
fccb3371
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/>. #
fccb3371
MT
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
27DATE = 20070813
a1d042dd 28VER = 3.0-20070813
fccb3371
MT
29
30THISAPP = foomatic-$(VER)
31DL_FILE = foomatic-filters-$(VER).tar.gz
32DL_FROM = $(URL_IPFIRE)
33DIR_APP = $(DIR_SRC)/foomatic-filters-$(VER)
34TARGET = $(DIR_INFO)/$(THISAPP)
35PROG = foomatic
36PAK_VER = 1
37
2231d107 38DEPS = "cups ghostscript libtiff hplip"
fccb3371
MT
39
40###############################################################################
41# Top-level Rules
42###############################################################################
43
44objects = $(DL_FILE) \
45 foomatic-db-$(DATE).tar.gz \
46 foomatic-db-engine-$(VER).tar.gz \
47 foomatic-db-hpijs-$(DATE).tar.gz
48
49$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
50foomatic-db-$(DATE).tar.gz = $(DL_FROM)/foomatic-db-$(DATE).tar.gz
51foomatic-db-engine-$(VER).tar.gz = $(DL_FROM)/foomatic-db-engine-$(VER).tar.gz
52foomatic-db-hpijs-$(DATE).tar.gz = $(DL_FROM)/foomatic-db-hpijs-$(DATE).tar.gz
53
54$(DL_FILE)_MD5 = 41de0f45866ab4c19c1d5e3e2cdab42f
55foomatic-db-$(DATE).tar.gz_MD5 = a3ab04b7cc5d870b040ffce19e664698
56foomatic-db-engine-$(VER).tar.gz_MD5 = ec9639719a9c1d4095248e534c3f2d0d
57foomatic-db-hpijs-$(DATE).tar.gz_MD5 = e59fa189336e96a9d43cfcfb6222a9c2
58
59install : $(TARGET)
60
61check : $(patsubst %,$(DIR_CHK)/%,$(objects))
62
63download :$(patsubst %,$(DIR_DL)/%,$(objects))
64
65md5 : $(subst %,%_MD5,$(objects))
66
67dist:
68 $(PAK)
69
70###############################################################################
71# Downloading, checking, md5sum
72###############################################################################
73
74$(patsubst %,$(DIR_CHK)/%,$(objects)) :
75 @$(CHECK)
76
77$(patsubst %,$(DIR_DL)/%,$(objects)) :
78 @$(LOAD)
79
80$(subst %,%_MD5,$(objects)) :
81 @$(MD5)
82
83###############################################################################
84# Installation Details
85###############################################################################
86
87$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
88 @$(PREBUILD)
89 @rm -rf $(DIR_SRC)/foomatic-* && cd $(DIR_SRC) && \
90 tar zxf $(DIR_DL)/$(DL_FILE) && \
91 tar zxf $(DIR_DL)/foomatic-db-$(DATE).tar.gz && \
92 tar zxf $(DIR_DL)/foomatic-db-engine-$(VER).tar.gz && \
93 tar zxf $(DIR_DL)/foomatic-db-hpijs-$(DATE).tar.gz
a1d042dd 94 cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc
fccb3371
MT
95 cd $(DIR_APP) && make $(MAKETUNING)
96 cd $(DIR_APP) && make install
97 cd $(DIR_SRC)/foomatic-db-$(DATE) && ./configure --prefix=/usr --sysconfdir=/etc
98 cd $(DIR_SRC)/foomatic-db-$(DATE) && make $(MAKETUNING)
99 cd $(DIR_SRC)/foomatic-db-$(DATE) && make install
100 cd $(DIR_SRC)/foomatic-db-engine-$(VER) && ./configure --prefix=/usr --sysconfdir=/etc
101 cd $(DIR_SRC)/foomatic-db-engine-$(VER) && make $(MAKETUNING)
102 cd $(DIR_SRC)/foomatic-db-engine-$(VER) && make install
103 cd $(DIR_SRC)/foomatic-db-hpijs-$(DATE) && ./configure --prefix=/usr --sysconfdir=/etc
104 cd $(DIR_SRC)/foomatic-db-hpijs-$(DATE) && make $(MAKETUNING)
105 cd $(DIR_SRC)/foomatic-db-hpijs-$(DATE) && make install
106 @rm -rf $(DIR_SRC)/foomatic-*
107 @$(POSTBUILD)