]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/foomatic
suricata: Change midstream policy to "pass-flow"
[people/pmueller/ipfire-2.x.git] / lfs / foomatic
CommitLineData
fccb3371 1###############################################################################
fccb3371 2# #
70df8302 3# IPFire.org - A linux based firewall #
fa11cdd7 4# Copyright (C) 2007-2023 IPFire Team <info@ipfire.org> #
70df8302
MT
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
f15707c7
RR
27SUMMARY = Tools for using the foomatic database of printers and printer drivers
28
fa11cdd7 29VER = 4.0.13
b91712ac
MT
30VER_DB = 4.0-$(DATE)
31VER_FILTERS = 4.0.17
fa11cdd7 32DATE = 20230828
fccb3371
MT
33
34THISAPP = foomatic-$(VER)
b91712ac 35DL_FILE = foomatic-filters-$(VER_FILTERS).tar.gz
fccb3371 36DL_FROM = $(URL_IPFIRE)
b91712ac 37DIR_APP = $(DIR_SRC)/foomatic-filters-$(VER_FILTERS)
fccb3371
MT
38TARGET = $(DIR_INFO)/$(THISAPP)
39PROG = foomatic
c283a6f6 40PAK_VER = 10
fccb3371 41
9aa2c4cc 42DEPS = cups ghostscript hplip
fccb3371 43
f15707c7
RR
44SERVICES =
45
9739875e
MT
46CFLAGS += -fcommon
47
b91712ac
MT
48export LIB_CUPS=/usr/lib/cups
49export CUPS_BACKENDS=/usr/lib/cups/backends
50export CUPS_FILTERS=/usr/lib/cups/filters
51export CUPS_PPDS=/usr/share/cups/model
52
fccb3371
MT
53###############################################################################
54# Top-level Rules
55###############################################################################
56
57objects = $(DL_FILE) \
b91712ac
MT
58 foomatic-db-$(VER_DB).tar.gz \
59 foomatic-db-engine-$(VER).tar.gz
fccb3371
MT
60
61$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
b91712ac 62foomatic-db-$(VER_DB).tar.gz = $(DL_FROM)/foomatic-db-$(VER_DB).tar.gz
fccb3371 63foomatic-db-engine-$(VER).tar.gz = $(DL_FROM)/foomatic-db-engine-$(VER).tar.gz
fccb3371 64
9a7e4d85 65$(DL_FILE)_BLAKE2 = 2c8089dd0a07677885180efd6157576a1e84448aeda83bdb0e1c2692242cd711eaa0c32956a5434ea109706bc9733118ee886caf1cab085d53d480ac45fd80e7
fa11cdd7
AB
66foomatic-db-$(VER_DB).tar.gz_BLAKE2 = 9887993715c7d3037f76c9d97f52b02f5748d365cd0f547abcbce4098b5dc478aeac541d925a3a36bd3cae174df74860429174179ec1a29f6a7812f7ba793442
67foomatic-db-engine-$(VER).tar.gz_BLAKE2 = 7784a3fec0bf7059f13ecd9eb31be61811b1d10d28c0bdc1f9eaaf4068a462f70b4147ac3d7015a66faf0e55d205b906d6d23aa365e5ffa52020c4c120845d37
fccb3371
MT
68
69install : $(TARGET)
70
71check : $(patsubst %,$(DIR_CHK)/%,$(objects))
72
73download :$(patsubst %,$(DIR_DL)/%,$(objects))
74
9a7e4d85 75b2 : $(subst %,%_BLAKE2,$(objects))
fccb3371 76
66c36198 77dist:
fccb3371
MT
78 $(PAK)
79
80###############################################################################
9a7e4d85 81# Downloading, checking, b2sum
fccb3371
MT
82###############################################################################
83
84$(patsubst %,$(DIR_CHK)/%,$(objects)) :
85 @$(CHECK)
86
87$(patsubst %,$(DIR_DL)/%,$(objects)) :
88 @$(LOAD)
89
9a7e4d85
PM
90$(subst %,%_BLAKE2,$(objects)) :
91 @$(B2SUM)
fccb3371
MT
92
93###############################################################################
94# Installation Details
95###############################################################################
96
97$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
98 @$(PREBUILD)
b91712ac 99 @rm -rf $(DIR_SRC)/foomatic-* && cd $(DIR_SRC) && \
fccb3371 100 tar zxf $(DIR_DL)/$(DL_FILE) && \
b91712ac
MT
101 tar zxf $(DIR_DL)/foomatic-db-$(VER_DB).tar.gz && \
102 tar zxf $(DIR_DL)/foomatic-db-engine-$(VER).tar.gz
a1d042dd 103 cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc
fccb3371
MT
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
b91712ac
MT
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
fccb3371
MT
123 @rm -rf $(DIR_SRC)/foomatic-*
124 @$(POSTBUILD)