]>
Commit | Line | Data |
---|---|---|
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 | ||
25 | include Config | |
26 | ||
d1c8c9ef | 27 | VER = 2.4.1 |
f15707c7 | 28 | SUMMARY = The Common UNIX Printing System |
a31b2bc4 | 29 | |
fd3e7da0 | 30 | THISAPP = cups-$(VER) |
6d390861 | 31 | DL_FILE = $(THISAPP)-source.tar.gz |
f417cab6 | 32 | DL_FROM = $(URL_IPFIRE) |
a31b2bc4 MT |
33 | DIR_APP = $(DIR_SRC)/cups-$(VER) |
34 | TARGET = $(DIR_INFO)/$(THISAPP) | |
483f59cd | 35 | PROG = cups |
275f0fb7 | 36 | PAK_VER = 32 |
a31b2bc4 | 37 | |
9aa2c4cc | 38 | DEPS = avahi cups-filters dbus ghostscript |
3489ebac | 39 | |
f15707c7 RR |
40 | SERVICES = cups |
41 | ||
a31b2bc4 MT |
42 | ############################################################################### |
43 | # Top-level Rules | |
44 | ############################################################################### | |
45 | ||
46 | objects = $(DL_FILE) | |
47 | ||
48 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
49 | ||
d1c8c9ef | 50 | $(DL_FILE)_BLAKE2 = 690d9d92f9bc84c2bb360699191cd67e1489ffc3ab219376dfc1a8795379950c95bf58c2033a0dbd2918262c5d104e21e31c4585cb35d229b0fac6cf4967bfd7 |
a31b2bc4 MT |
51 | |
52 | install : $(TARGET) | |
53 | ||
54 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
55 | ||
56 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
57 | ||
9a7e4d85 | 58 | b2 : $(subst %,%_BLAKE2,$(objects)) |
a31b2bc4 | 59 | |
f15707c7 | 60 | dist: |
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 \ |
6064cd87 | 90 | --enable-avahi \ |
2b5aece9 MT |
91 | --enable-dbus \ |
92 | --enable-gnutls \ | |
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) |