summaryrefslogtreecommitdiffstats
path: root/rules/cups.in
blob: d2f8e67bd907672e4f62feda4327eaf6eeb6cdd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
## SECTION=applications

menuconfig CUPS
	tristate
	prompt "cups                          "

	select ROOTFS_VAR_LOG
	select ROOTFS_VAR_RUN
	select LIBC_M
	select LIBC_CRYPT
	select LIBC_PTHREAD
	select ZLIB

	select SYSTEMD			if CUPS_SYSTEMD_UNIT
	select LIBPAPER			if CUPS_LIBPAPER
	select LIBUSB			if CUPS_LIBUSB
	select DBUS			if CUPS_DBUS
	select GNUTLS			if CUPS_SSL
	select AVAHI			if CUPS_AVAHI
	select AVAHI_LIBAVAHI_CLIENT	if CUPS_AVAHI
	select PERL			if CUPS_PERL && RUNTIME
	select PHP5			if CUPS_PHP && RUNTIME
	select PHP5_SAPI_CLI		if CUPS_PHP5_CLI && RUNTIME
	select PHP5_SAPI_CGI		if CUPS_PHP5_CGI && RUNTIME
	select PYTHON			if CUPS_PYTHON && CUPS_PYTHON2 && RUNTIME
	select PYTHON3			if CUPS_PYTHON && CUPS_PYTHON3 && RUNTIME

	help
	  CUPS is the standards-based, open source printing system. It uses the
	  Internet Printing Protocol (IPP) to support printing to local and
	  network printers.

if CUPS

comment "--- CUPS Features ---"

config CUPS_WEBINTERFACE
	bool "enable web interface"
	help
	   Enable CUPS printer management via HTTP(S). Useful for hosts which
	   should act as a print server, but can also serve as a GUI for CUPS.

	   If you overwrite /etc/cups/cupsd.conf in your projectroot, be sure to
	   set "WebInterface Yes" to enable it.

if CUPS_WEBINTERFACE

config CUPS_JAVA
	bool "enable Java support for web interface"

if CUPS_JAVA
	comment "Please remember to install a suitable Java interpreter!"

config CUPS_JAVA_PATH
	string "path to Java interpreter"
	default "/usr/bin/java"
endif

config CUPS_PERL
	bool "enable Perl support for web interface"

config CUPS_PHP
	bool "enable PHP support for web interface"

if CUPS_PHP
choice
	prompt "PHP interpreter"
	default CUPS_PHP5_CLI

config CUPS_PHP5_CLI
	bool "php5-cli"

config CUPS_PHP5_CGI
	bool "php5-cgi"

endchoice
endif	# CUPS_PHP

config CUPS_PYTHON
	bool "enable Python support for web interface"

if CUPS_PYTHON
choice
	prompt "Python interpreter"
	default CUPS_PYTHON3

config CUPS_PYTHON2
	bool "python2"

config CUPS_PYTHON3
	bool "python3"

endchoice
endif # CUPS_PYTHON

endif # CUPS_WEBINTERFACE

config CUPS_SYSTEMD_UNIT
	bool "install systemd unit file"
	default y
	depends on INITMETHOD_SYSTEMD
	help
	  Installs a systemd service file so that CUPS can be started as a
	  systemd service.

config CUPS_STARTSCRIPT
	bool "install init.d script"
	depends on INITMETHOD_BBINIT
	help
	  Install /etc/init.d/cups

config CUPS_TEST_TOOLS
	bool "install cupstest* tools"
	default n
	help
	  Install cupstestdsc and cupstestppd on the target.

comment "--- External Libraries ---"

config CUPS_LIBPAPER
	bool "libpaper support"
	help
	  Build with support for libpaper's collection of paper sizes

config CUPS_LIBUSB
	bool "libusb support"
	help
	  Build with libusb support. This is needed for the usb backend in order
	  to use USB printers.

config CUPS_DBUS
	bool "dbus support"
	help
	  Builds CUPS with support for sending event notifications over DBUS

config CUPS_SSL
	bool "enable TLS support"
	help
	  Enables SSL support over IPP and HTTP, also for the web interface.

config CUPS_AVAHI
	bool "enable Avahi support"
	help
	  Enables support for discovery of network printers over Avahi/zeroconf.

endif # CUPS
# vim: ft=kconfig ts=8 noet tw=80