1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

root/csw/mgar/pkg/cups/trunk/Makefile

Revision 20143, 13.0 KB (checked in by cgrzemba, 4 months ago)

cups/trunk: update overrides

  • Property svn:keywords set to Id
Line 
1# Copyright 2009 OpenCSW
2# Distributed under the terms of the GNU General Public License v2
3# $Id$
4
5NAME = cups
6VERSION = 1.5.3
7GARTYPE = v2
8
9define BLURB
10  CUPS provides a portable printing layer for UNIX(R)-based operating
11  systems.  It is developed and maintained by Easy Software Products to
12  promote a standard printing solution and is the standard printing system
13  in MacOS(R) X and most Linux(R) distributions.
14
15  http://www.cups.org/str.php?L3324
16endef
17
18# There's a problem with cups-polld going into a busy-wait loop when polling
19# print servers.
20#
21#   http://www.cups.org/str.php?L3257 (closed)
22#   http://www.cups.org/str.php?L3381 (filed again)
23#
24# The problem with cups-polld seems to be going away when CUPS is compiled with
25# debugging symbols. The debugging options is turned on for this package, in
26# order to be able to debug the binary if it ever shows the problem.
27
28# This build file support setting GARFLAVOR to DBG in order to build binaries
29# with debugging symbols.
30# GARFLAVOR = DBG
31
32# These are the source mirrors published on the CUPS home-page.
33CUPS_MIRRORS  = http://ftp.easysw.com/pub
34CUPS_MIRRORS += ftp://ftp2.easysw.com/pub
35CUPS_MIRRORS += ftp://ftp3.easysw.com/pub
36CUPS_MIRRORS += http://www.nu6.org/_/mirror/ftp.easysw.com/pub
37CUPS_MIRRORS += http://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub
38CUPS_MIRRORS += ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub
39CUPS_MIRRORS += http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub
40
41# Complete the mirror paths by adding /cups/x.y.z/ at the end.
42FULL_MIRRORS  = $(foreach S,$(CUPS_MIRRORS),$(S)/$(NAME)/$(VERSION)/)
43MASTER_SITES += $(FULL_MIRRORS)
44
45DISTFILES  = $(NAME)-$(VERSION)-source.tar.bz2
46DISTFILES += CSWcupsclient.preinstall
47DISTFILES += CSWcupsd.preinstall
48DISTFILES += CSWcupsd.postremove
49DISTFILES += client.conf.CSW
50DISTFILES += CSWcupsclient.README
51
52PATCHFILES += 0001-cswcups-for-the-service-name.patch
53PATCHFILES += 0002-use-posix-shell-in-install.sh.patch
54# PATCHFILES  = 0001-cswcups-for-service-name.patch
55# PATCHFILES += 0002-Adding-the-refcount-member-to-mime_type_t.patch
56# PATCHFILES += 0003-Reference-counting-for-printers-only.patch
57# PATCHFILES += 0006-Fail-compilation-if-no-SSL-impl-chosen.patch
58# PATCHFILES += 0007-Solaris-zone-support-in-init-script.patch
59# PATCHFILES += CFLAGS-leaking-to-C++-compiler.patch
60# PATCHFILES += 0008-Adding-CFLAGS-and-CXXFLAGS-to-linker-calls.patch
61# PATCHFILES += 0009-Add-workaround-for-krb5-config-outputting-CFLAGS.patch
62# PATCHFILES += 0009-giving-precedence-to-statvfs-in-printers.c.patch
63
64REINPLACE_USRLOCAL += doc/help/*.html
65REINPLACE_USRSHARE += doc/help/*.html
66
67VENDOR_URL = http://www.cups.org/
68
69LICENSE = LICENSE.txt
70
71GARCOMPILER = SOS12U3
72PACKAGING_PLATFORMS = solaris10-i386 solaris10-sparc
73
74BUILD_DEP_PKGS  = CSWggettext-dev
75BUILD_DEP_PKGS += CSWlibjpeg-dev
76BUILD_DEP_PKGS += CSWopenldap-dev
77BUILD_DEP_PKGS += CSWlibssl-dev
78BUILD_DEP_PKGS += CSWlibtiff-dev
79BUILD_DEP_PKGS += CSWlibkrb5-dev
80BUILD_DEP_PKGS += CSWlibgcrypt-dev
81BUILD_DEP_PKGS += CSWlibgpg-error-dev
82BUILD_DEP_PKGS += CSWlibiconv-dev
83BUILD_DEP_PKGS += SUNWhea
84BUILD_DEP_PKGS += SUNWlibm
85BUILD_DEP_PKGS += CSWlibslp-dev
86
87# The main metapackage
88PACKAGES += CSWcups
89SPKG_DESC_CSWcups = Common Unix Printing System
90# PKFILES is catchall
91ARCHALL_CSWcups = 1
92RUNTIME_DEP_PKGS_CSWcups += CSWcupsd
93RUNTIME_DEP_PKGS_CSWcups += CSWcupsclient
94CHECKPKG_OVERRIDES_CSWcups += surplus-dependency|CSWcupsclient
95
96PACKAGES += CSWphp5-cups
97SPKG_DESC_CSWphp5-cups = PHP5 bindings for CUPS
98PKGFILES_CSWphp5-cups += $(prefix)/php5/.*
99RUNTIME_DEP_PKGS_CSWphp5-cups += CSWlibcups2
100
101# The daemon
102PACKAGES += CSWcupsd
103SPKG_DESC_CSWcupsd = CUPS daemon
104PKGFILES_CSWcupsd += $(bindir)/ppd(c|html|i|merge|po)
105PKGFILES_CSWcupsd += $(datadir)/applications/.*
106PKGFILES_CSWcupsd += $(datadir)/cups
107PKGFILES_CSWcupsd += $(datadir)/cups/(banners|data|profiles|charsets).*
108PKGFILES_CSWcupsd += $(datadir)/cups/(fonts|templates|charmaps|model).*
109PKGFILES_CSWcupsd += $(datadir)/cups/mime.*
110PKGFILES_CSWcupsd += $(datadir)/doc/cups/.*
111PKGFILES_CSWcupsd += $(datadir)/icons.*
112PKGFILES_CSWcupsd += $(datadir)/locale/.*
113PKGFILES_CSWcupsd += $(libdir)/cups/.*
114PKGFILES_CSWcupsd += $(libdir)/svc/.*
115PKGFILES_CSWcupsd += $(localstatedir)/.*
116PKGFILES_CSWcupsd += $(mandir)/man1m
117PKGFILES_CSWcupsd += $(mandir)/man1m/cups(filter|d|-polld|-deviced|-driverd|-lpd)\.1m
118PKGFILES_CSWcupsd += $(mandir)/man5/(cups-snmp.conf|subscriptions.conf).5
119PKGFILES_CSWcupsd += $(mandir)/man5/(mime.convs|classes.conf|cupsd.conf).5
120PKGFILES_CSWcupsd += $(mandir)/man5/(mime.types|printers.conf|mailto.conf).5
121PKGFILES_CSWcupsd += $(mandir)/man7/(backend|filter).7
122PKGFILES_CSWcupsd += $(sbindir)/(cupsfilter|cupsd)
123PKGFILES_CSWcupsd += $(sysconfdir)/cups/cupsd.*
124PKGFILES_CSWcupsd += $(sysconfdir)/cups/interfaces.*
125PKGFILES_CSWcupsd += $(sysconfdir)/cups/ppd.*
126PKGFILES_CSWcupsd += $(sysconfdir)/cups/snmp.*
127PKGFILES_CSWcupsd += $(sysconfdir)/cups/ssl.*
128PKGFILES_CSWcupsd += $(sysconfdir)/init\.d/.*
129RUNTIME_DEP_PKGS_CSWcupsd += CSWlibcups2
130RUNTIME_DEP_PKGS_CSWcupsd += CSWlibcupscgi1
131RUNTIME_DEP_PKGS_CSWcupsd += CSWlibcupsdriver1
132RUNTIME_DEP_PKGS_CSWcupsd += CSWlibcupsimage2
133RUNTIME_DEP_PKGS_CSWcupsd += CSWlibcupsmime1
134RUNTIME_DEP_PKGS_CSWcupsd += CSWlibcupsppdc1
135RUNTIME_DEP_PKGS_CSWcupsd += CSWlibdbus1-3
136RUNTIME_DEP_PKGS_CSWcupsd += CSWlibgnutls26
137RUNTIME_DEP_PKGS_CSWcupsd += CSWlibgpg-error0
138RUNTIME_DEP_PKGS_CSWcupsd += CSWlibkrb5-3
139RUNTIME_DEP_PKGS_CSWcupsd += CSWlibslp1
140RUNTIME_DEP_PKGS_CSWcupsd += CSWlibldap2-4-2
141# need /opt/csw/bin/pdftops
142
143# Just docs
144CHECKPKG_OVERRIDES_CSWcupsd += file-with-bad-content|/usr/share|root/opt/csw/share/doc/cups/help/ref-cupsd-conf.html
145CHECKPKG_OVERRIDES_CSWcupsd += file-with-bad-content|/usr/local|root/opt/csw/share/doc/cups/help/ref-cupsd-conf.html
146
147PACKAGES += CSWcupsclient
148SPKG_DESC_CSWcupsclient = CUPS client binaries
149PKGFILES_CSWcupsclient  = $(sbindir)/(accept|reject|cups(addsmb|ctl|(en|dis)able))
150PKGFILES_CSWcupsclient += $(sbindir)/cups(accept|reject)
151PKGFILES_CSWcupsclient += $(sbindir)/(lp(admin|p|c|info|move))
152PKGFILES_CSWcupsclient += $(bindir)/(cancel|cupstest(dsc|ppd))
153PKGFILES_CSWcupsclient += $(bindir)/(lp(|options|passwd|q|r|rm|stat))
154PKGFILES_CSWcupsclient += $(bindir)/ipptool
155PKGFILES_CSWcupsclient += $(mandir)/man1/ipptool.1
156PKGFILES_CSWcupsclient += $(mandir)/man5/ipptoolfile.5
157PKGFILES_CSWcupsclient += $(sharedstatedir)/cups/ipptool/.*
158PKGFILES_CSWcupsclient += $(mandir)/man1/(cancel|cupstest(dsc|ppd)|lp).1
159PKGFILES_CSWcupsclient += $(mandir)/man1/(lpoptions|lppasswd|lpq|lpr|lprm).1
160PKGFILES_CSWcupsclient += $(mandir)/man1/lpstat.1
161PKGFILES_CSWcupsclient += $(mandir)/man1/ppd.*\.1
162PKGFILES_CSWcupsclient += $(mandir)/man1m/(cups|)(accept|reject)\.1m
163PKGFILES_CSWcupsclient += $(mandir)/man1m/cups(en|dis)able\.1m
164PKGFILES_CSWcupsclient += $(mandir)/man1m/cups(addsmb|ctl)\.1m
165PKGFILES_CSWcupsclient += $(mandir)/man1m/lp(admin|c|info|move)\.1m
166PKGFILES_CSWcupsclient += $(mandir)/man5/client.conf.5
167PKGFILES_CSWcupsclient += $(mandir)/man5/ppdcfile\.5
168PKGFILES_CSWcupsclient += $(mandir)/man7/(drv|notifier)\.7
169PKGFILES_CSWcupsclient += $(sysconfdir)/cups/client\.conf\.CSW
170PKGFILES_CSWcupsclient += $(datadir)/doc/cupsclient.*
171RUNTIME_DEP_PKGS_CSWcupsclient += CSWlibcups2
172RUNTIME_DEP_PKGS_CSWcupsclient += CSWlibcupsimage2
173RUNTIME_DEP_PKGS_CSWcupsclient += CSWlibgpg-error0
174
175PACKAGES += CSWcups-dev
176SPKG_DESC_CSWcups-dev = CUPS header files
177CATALOGNAME_CSWcups-dev = cups_dev
178PKGFILES_CSWcups-dev += $(PKGFILES_DEVEL)
179PKGFILES_CSWcups-dev += $(datadir)/cups/ppdc.*
180PKGFILES_CSWcups-dev += $(datadir)/cups/drv.*
181PKGFILES_CSWcups-dev += $(datadir)/cups/examples.*
182# The development package needs all the libraries
183RUNTIME_DEP_PKGS_CSWcups-dev += CSWlibcupsppdc1
184RUNTIME_DEP_PKGS_CSWcups-dev += CSWlibcupsdriver1
185RUNTIME_DEP_PKGS_CSWcups-dev += CSWlibcups2
186RUNTIME_DEP_PKGS_CSWcups-dev += CSWlibcupsmime1
187RUNTIME_DEP_PKGS_CSWcups-dev += CSWlibcupsimage2
188RUNTIME_DEP_PKGS_CSWcups-dev += CSWlibcupscgi1
189
190# The problematic cupslinks package
191# PACKAGES += CSWcupslinks
192CATALOGNAME_CSWcupslinks = cups_links
193SPKG_DESC_CSWcupslinks = Drop-in replacement for SUNWpcu and SUNWpcr
194ARCHALL_CSWcupslinks = 1
195PKGFILES_CSWcupslinks  = /usr/sbin/.*
196PKGFILES_CSWcupslinks += /usr/bin/.*
197INCOMPATIBLE_PKGS_CSWcupslinks = SUNWpcr SUNWpcu
198CUPSLINKS_TARGET = cupslinks
199
200# Packages compliant with the shared library policy.
201PACKAGES += CSWlibcups2
202SPKG_DESC_CSWlibcups2 = CUPS libraries, libcups.so.2
203PKGFILES_CSWlibcups2 += $(call pkgfiles_lib,libcups.so.2)
204RUNTIME_DEP_PKGS_CSWlibcups2 += CSWlibgnutls26
205RUNTIME_DEP_PKGS_CSWlibcups2 += CSWlibgpg-error0
206RUNTIME_DEP_PKGS_CSWlibcups2 += CSWlibz1
207
208PACKAGES += CSWlibcupscgi1
209SPKG_DESC_CSWlibcupscgi1 = CUPS libraries, libcupscgi.so.1
210PKGFILES_CSWlibcupscgi1 += $(call pkgfiles_lib,libcupscgi.so.1)
211RUNTIME_DEP_PKGS_CSWlibcupscgi1 += CSWlibcups2
212
213PACKAGES += CSWlibcupsdriver1
214SPKG_DESC_CSWlibcupsdriver1 = CUPS libraries, libcupsdriver.so.1
215PKGFILES_CSWlibcupsdriver1 += $(call pkgfiles_lib,libcupsdriver.so.1)
216RUNTIME_DEP_PKGS_CSWlibcupsdriver1 += CSWlibcups2
217
218PACKAGES += CSWlibcupsimage2
219SPKG_DESC_CSWlibcupsimage2 = CUPS libraries, libcupsimage.so.2
220PKGFILES_CSWlibcupsimage2 += $(call pkgfiles_lib,libcupsimage.so.2)
221RUNTIME_DEP_PKGS_CSWlibcupsimage2 += CSWlibjpeg7
222RUNTIME_DEP_PKGS_CSWlibcupsimage2 += CSWlibcups2
223RUNTIME_DEP_PKGS_CSWlibcupsimage2 += CSWlibtiff3
224RUNTIME_DEP_PKGS_CSWlibcupsimage2 += CSWlibpng15-15
225
226PACKAGES += CSWlibcupsmime1
227SPKG_DESC_CSWlibcupsmime1 = CUPS libraries, libcupsmime.so.1
228PKGFILES_CSWlibcupsmime1 += $(call pkgfiles_lib,libcupsmime.so.1)
229RUNTIME_DEP_PKGS_CSWlibcupsmime1 += CSWlibcups2
230
231PACKAGES += CSWlibcupsppdc1
232SPKG_DESC_CSWlibcupsppdc1 = CUPS libraries, libcupsppdc.so.1
233PKGFILES_CSWlibcupsppdc1 += $(call pkgfiles_lib,libcupsppdc.so.1)
234RUNTIME_DEP_PKGS_CSWlibcupsppdc1 += CSWlibcups2
235RUNTIME_DEP_PKGS_CSWlibcupsppdc1 += CSWlibgpg-error0
236
237# For some reason -norunpath is not used here, investigate later
238CHECKPKG_OVERRIDES_CSWlibcupsppdc1 += bad-rpath-entry
239
240# commented out because libtasn1.so.3 needed by libgnutls is not availible for 64bit (at the moment)
241# BUILD64_LIBS_ONLY = 1
242
243EXTRA_LINKER_FLAGS += -liconv
244EXTRA_LINKER_FLAGS += -norunpath
245
246CONFIGURE_ARGS += $(DIRPATHS)
247CONFIGURE_ARGS += --with-menudir=$(datadir)/applications
248CONFIGURE_ARGS += --localedir=$(datadir)/locale
249CONFIGURE_ARGS += --with-rcdir=$(sysconfdir)
250CONFIGURE_ARGS += --with-icondir=$(datadir)/icons
251CONFIGURE_ARGS += --with-openslp-includes=/opt/csw/include
252
253# This breaks non-global sparse zone support.  The class action script is
254# executed in the global zone, but not in the non-global zones, if /opt is
255# shared.
256# CONFIGURE_ARGS += --with-rcdir=/opt/csw/etc
257
258CONFIGURE_ARGS_DBG  = --enable-debug
259CONFIGURE_ARGS_DBG += --enable-debug-guards
260CONFIGURE_ARGS_DBG += --enable-debug-printfs
261
262CONFIGURE_ARGS += $(CONFIGURE_ARGS_$(GARFLAVOR))
263
264# This is a hack that's needed, because configure (Makedefs) will otherwise
265# plase -ltiff, etc. first and -L/opt/csw/lib afterwards, thus being unable
266# to find any of the image libraries.
267# Fortunately, configure honors values already in $DSOFLAGS, so we can use
268# that to make sure -L/opt/csw/lib is the first argument passed to ld.
269CONFIGURE_ARGS += DSOFLAGS=-L$(libdir)
270
271# PRIVATE_CUPS_INC = $(DESTDIR)$(includedir)/cups
272
273# CUPS uses the 'OPTIM' variable to set the optimization flags.
274# OPTIM_OPT = -xO0
275# OPTIM_DBG = -g -xO0
276# OPTIM = $(OPTIM_$(GARFLAVOR))
277# OPT_FLAGS_SOS = -xO0
278# export OPTIM
279
280# Don't run tests (at least for now); there are some LD_LIBRARY_PATH issues
281SKIPTEST ?= 1
282
283# For some reason, the CUPS guys have decided to use DSTROOT for what
284# everybody else calls DESTDIR.
285INSTALL_OVERRIDE_VARS = DSTROOT
286INSTALL_OVERRIDE_VAR_DSTROOT = $(DESTDIR)
287
288EXTRA_MERGE_EXCLUDE_FILES += .*\.default
289
290PROTOTYPE_MODIFIERS = lp_group_etc
291PROTOTYPE_FILES_lp_group_etc = $(sysconfdir).*
292PROTOTYPE_GROUP_lp_group_etc = lp
293
294PROTOTYPE_MODIFIERS = lp_group_var
295PROTOTYPE_FILES_lp_group_var = $(localstatedir).*
296PROTOTYPE_GROUP_lp_group_var = lp
297
298# http://lists.opencsw.org/pipermail/maintainers/2009-September/004249.html
299PRESERVECONF += $(sysconfdir)/cups/client\.conf
300PRESERVECONF += $(sysconfdir)/cups/cupsd\.conf
301# https://www.opencsw.org/mantis/view.php?id=5037
302PRESERVECONF += $(datadir)/cups/mime/mime.convs
303PRESERVECONF += $(datadir)/cups/mime/mime.types
304INITSMF = $(sysconfdir)/init\.d/cswcups
305
306include gar/category.mk
307
308post-install-modulated:
309        ginstall -m 644 \
310                $(WORKDIR)/client.conf.CSW \
311                $(DESTDIR)$(sysconfdir)/cups/client.conf.CSW
312        for f in $(DESTDIR)$(libdir_install)/cups/backend/*; do \
313                chmod 0700 $${f}; \
314        done
315        # https://www.opencsw.org/mantis/view.php?id=4532
316        ginstall -m 755 -d $(DESTDIR)$(datadir)/doc/cupsclient
317        ginstall -m 755 $(WORKDIR)/CSWcupsclient.README \
318                $(DESTDIR)$(datadir)/doc/cupsclient/README
319        @$(MAKECOOKIE)
320
321# This has been disabled and should be pulled in through post-install-modulated
322cupslinks:
323        # https://www.opencsw.org/mantis/view.php?id=2924
324        ginstall -d -m 755 $(DESTDIR)/usr/bin
325        for f in cancel lp lpoptions lppassd lpq lpr lprm lpstat; do \
326                ln -s ../../opt/csw/bin/$$f $(DESTDIR)/usr/bin/$$f; \
327        done
328        ginstall -d -m 755 $(DESTDIR)/usr/sbin
329        for f in accept lpadmin lpc lpinfo lpmove reject; do \
330                ln -s ../../opt/csw/sbin/$$f $(DESTDIR)/usr/sbin/$$f; \
331        done
Note: See TracBrowser for help on using the browser.