]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/cups
Postfix: Update to 3.8.1
[people/pmueller/ipfire-2.x.git] / lfs / cups
CommitLineData
a31b2bc4 1###############################################################################
a31b2bc4 2# #
70df8302 3# IPFire.org - A linux based firewall #
275f0fb7 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 #
a31b2bc4 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 #
a31b2bc4
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
a31b2bc4
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/>. #
a31b2bc4 18# #
a31b2bc4
MT
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
b8e360ba 27VER = 2.4.2
f15707c7 28SUMMARY = The Common UNIX Printing System
a31b2bc4 29
fd3e7da0 30THISAPP = cups-$(VER)
6d390861 31DL_FILE = $(THISAPP)-source.tar.gz
f417cab6 32DL_FROM = $(URL_IPFIRE)
a31b2bc4
MT
33DIR_APP = $(DIR_SRC)/cups-$(VER)
34TARGET = $(DIR_INFO)/$(THISAPP)
483f59cd 35PROG = cups
665ab5a1 36PAK_VER = 35
a31b2bc4 37
665ab5a1 38DEPS = avahi cups-filters dbus ghostscript libexif
3489ebac 39
f15707c7
RR
40SERVICES = cups
41
a31b2bc4
MT
42###############################################################################
43# Top-level Rules
44###############################################################################
45
46objects = $(DL_FILE)
47
48$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
49
b8e360ba 50$(DL_FILE)_BLAKE2 = 97053feb502d4fdc28810b806000b6c84a6795d5adcec0789e73e5477d5802d46a99381366d16219f627166df088f6decde5c144bd0c38b5745815dc1e426bc5
a31b2bc4
MT
51
52install : $(TARGET)
53
54check : $(patsubst %,$(DIR_CHK)/%,$(objects))
55
56download :$(patsubst %,$(DIR_DL)/%,$(objects))
57
9a7e4d85 58b2 : $(subst %,%_BLAKE2,$(objects))
a31b2bc4 59
f15707c7 60dist:
a08c3a2e 61 $(PAK)
a31b2bc4
MT
62
63###############################################################################
9a7e4d85 64# Downloading, checking, b2sum
a31b2bc4
MT
65###############################################################################
66
67$(patsubst %,$(DIR_CHK)/%,$(objects)) :
68 @$(CHECK)
69
70$(patsubst %,$(DIR_DL)/%,$(objects)) :
71 @$(LOAD)
72
9a7e4d85
PM
73$(subst %,%_BLAKE2,$(objects)) :
74 @$(B2SUM)
a31b2bc4
MT
75
76###############################################################################
77# Installation Details
78###############################################################################
79
80$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
81 @$(PREBUILD)
6d390861 82 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
25ac6657
AB
83 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/cups-2.4.2_Fix_default_cupsd_keychain_with_OpenSSL.patch
84 cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/cups-2.4.2_Fix_TLS_certificate_generation_bugs_with_openssl.patch
80a74a78 85 $(UPDATE_AUTOMAKE)
f3604e11
MT
86 cd $(DIR_APP) && \
87 ./configure \
88 --prefix=/usr \
89 --sysconfdir=/var/ipfire \
90 --localstatedir=/var \
2b5aece9 91 --enable-debug \
25ac6657 92 --with-dnssd=avahi \
2b5aece9 93 --enable-dbus \
25ac6657 94 --with-tls=openssl \
6064cd87 95 --enable-libusb
f3604e11 96
a92a4ecb 97 cd $(DIR_APP) && make $(MAKETUNING)
a31b2bc4 98 cd $(DIR_APP) && make install
f3604e11 99
3b9f6349 100 cd $(DIR_APP) && ln -v -sf /usr/bin/smbspool /usr/lib/cups/backend/smb
f3604e11 101
d6b2b662
DW
102 install -v -m 644 $(DIR_SRC)/config/backup/includes/cups \
103 /var/ipfire/backup/addons/includes/cups
104
be2732c2 105 # install initscript
f15707c7 106 $(call INSTALL_INITSCRIPTS,$(SERVICES))
079afb4b 107 cp -fv $(DIR_SRC)/config/cups/cupsd.conf /var/ipfire/cups/
f3604e11 108
71aba971
MT
109 # Install convenience link
110 ln -svf /var/ipfire/cups /etc/cups
111
a31b2bc4
MT
112 @rm -rf $(DIR_APP)
113 @$(POSTBUILD)