]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - lfs/foomatic
suricata: Change midstream policy to "pass-flow"
[people/pmueller/ipfire-2.x.git] / lfs / foomatic
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007-2019 IPFire Team <info@ipfire.org> #
5 # #
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. #
10 # #
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. #
15 # #
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/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include Config
26
27 SUMMARY = Tools for using the foomatic database of printers and printer drivers
28
29 VER = 4.0.9
30 VER_DB = 4.0-$(DATE)
31 VER_FILTERS = 4.0.17
32 DATE = 20131023
33
34 THISAPP = foomatic-$(VER)
35 DL_FILE = foomatic-filters-$(VER_FILTERS).tar.gz
36 DL_FROM = $(URL_IPFIRE)
37 DIR_APP = $(DIR_SRC)/foomatic-filters-$(VER_FILTERS)
38 TARGET = $(DIR_INFO)/$(THISAPP)
39 PROG = foomatic
40 PAK_VER = 8
41
42 DEPS = cups ghostscript hplip
43
44 SERVICES =
45
46 CFLAGS += -fcommon
47
48 export LIB_CUPS=/usr/lib/cups
49 export CUPS_BACKENDS=/usr/lib/cups/backends
50 export CUPS_FILTERS=/usr/lib/cups/filters
51 export CUPS_PPDS=/usr/share/cups/model
52
53 ###############################################################################
54 # Top-level Rules
55 ###############################################################################
56
57 objects = $(DL_FILE) \
58 foomatic-db-$(VER_DB).tar.gz \
59 foomatic-db-engine-$(VER).tar.gz
60
61 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
62 foomatic-db-$(VER_DB).tar.gz = $(DL_FROM)/foomatic-db-$(VER_DB).tar.gz
63 foomatic-db-engine-$(VER).tar.gz = $(DL_FROM)/foomatic-db-engine-$(VER).tar.gz
64
65 $(DL_FILE)_BLAKE2 = 2c8089dd0a07677885180efd6157576a1e84448aeda83bdb0e1c2692242cd711eaa0c32956a5434ea109706bc9733118ee886caf1cab085d53d480ac45fd80e7
66 foomatic-db-$(VER_DB).tar.gz_BLAKE2 = 030f9753327c745dfbd6648ca624fe396eb83da2a94aafd0ada948377350dcc4432f3ceac3f544f2c03dba579561c272004ba9f29ddaeefcaae31b9ebd81cfac
67 foomatic-db-engine-$(VER).tar.gz_BLAKE2 = e4835ce6f2f683852fef9f6b2cdd13a8a5c232b1cb0ef78d81944795fac115a8c68c0e0ff1d4dfa4926b72eaa5f6e6abc1e639a4c6be8e907e1ad3da271c9fe6
68
69 install : $(TARGET)
70
71 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
72
73 download :$(patsubst %,$(DIR_DL)/%,$(objects))
74
75 b2 : $(subst %,%_BLAKE2,$(objects))
76
77 dist:
78 $(PAK)
79
80 ###############################################################################
81 # Downloading, checking, b2sum
82 ###############################################################################
83
84 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
85 @$(CHECK)
86
87 $(patsubst %,$(DIR_DL)/%,$(objects)) :
88 @$(LOAD)
89
90 $(subst %,%_BLAKE2,$(objects)) :
91 @$(B2SUM)
92
93 ###############################################################################
94 # Installation Details
95 ###############################################################################
96
97 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
98 @$(PREBUILD)
99 @rm -rf $(DIR_SRC)/foomatic-* && cd $(DIR_SRC) && \
100 tar zxf $(DIR_DL)/$(DL_FILE) && \
101 tar zxf $(DIR_DL)/foomatic-db-$(VER_DB).tar.gz && \
102 tar zxf $(DIR_DL)/foomatic-db-engine-$(VER).tar.gz
103 cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc
104 cd $(DIR_APP) && make $(MAKETUNING)
105 cd $(DIR_APP) && make install
106 cd $(DIR_SRC)/foomatic-db-$(DATE) && ./configure --prefix=/usr --sysconfdir=/etc
107 cd $(DIR_SRC)/foomatic-db-$(DATE) && make $(MAKETUNING)
108 cd $(DIR_SRC)/foomatic-db-$(DATE) && make install
109 cd $(DIR_SRC)/foomatic-db-engine-$(VER) && ./configure --prefix=/usr --sysconfdir=/etc
110 cd $(DIR_SRC)/foomatic-db-engine-$(VER) && make $(MAKETUNING)
111 cd $(DIR_SRC)/foomatic-db-engine-$(VER) && make install
112
113 # Remove unwanted files
114 rm -rfv /usr/lib/ppr \
115 /etc/foomatic/filter.conf.sample \
116 /usr/share/foomatic/templates
117
118 -mkdir -pv /var/cache/foomatic
119
120 -mkdir -pv /etc/foomatic
121 echo "cups" > /etc/foomatic/defaultspooler
122
123 @rm -rf $(DIR_SRC)/foomatic-*
124 @$(POSTBUILD)