]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/cups
suricata: Change midstream policy to "pass-flow"
[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
79da0b31 27VER = 2.4.6
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
6e269cd7 36PAK_VER = 38
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
79da0b31 50$(DL_FILE)_BLAKE2 = 4e61112ddaa46f20b1cfcb8f523dd07ba7d82604b9857754b288a2a9c5bc50ce242cfa119867347e4696818dc2eb505cf7fff1f9a0634e314edb2500395b83e4
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)
80a74a78 83 $(UPDATE_AUTOMAKE)
f3604e11
MT
84 cd $(DIR_APP) && \
85 ./configure \
86 --prefix=/usr \
87 --sysconfdir=/var/ipfire \
88 --localstatedir=/var \
2b5aece9 89 --enable-debug \
25ac6657 90 --with-dnssd=avahi \
2b5aece9 91 --enable-dbus \
25ac6657 92 --with-tls=openssl \
6064cd87 93 --enable-libusb
f3604e11 94
a92a4ecb 95 cd $(DIR_APP) && make $(MAKETUNING)
a31b2bc4 96 cd $(DIR_APP) && make install
f3604e11 97
3b9f6349 98 cd $(DIR_APP) && ln -v -sf /usr/bin/smbspool /usr/lib/cups/backend/smb
f3604e11 99
d6b2b662
DW
100 install -v -m 644 $(DIR_SRC)/config/backup/includes/cups \
101 /var/ipfire/backup/addons/includes/cups
102
be2732c2 103 # install initscript
f15707c7 104 $(call INSTALL_INITSCRIPTS,$(SERVICES))
079afb4b 105 cp -fv $(DIR_SRC)/config/cups/cupsd.conf /var/ipfire/cups/
f3604e11 106
71aba971
MT
107 # Install convenience link
108 ln -svf /var/ipfire/cups /etc/cups
109
a31b2bc4
MT
110 @rm -rf $(DIR_APP)
111 @$(POSTBUILD)