summaryrefslogtreecommitdiffstats
path: root/printer
diff options
context:
space:
mode:
authorTreeve Jelbert2020-11-07 09:16:30 +0100
committerTreeve Jelbert2020-11-07 09:20:56 +0100
commit6a081d7fa7e895e40efee9f67a3c10150dbf138b (patch)
treee1105f028741fe9229c3aaf35550d1be06613791 /printer
parent968e168ce3592f2845c5a019f0f49023895314c1 (diff)
libassuan: => 2.5.4
Diffstat (limited to 'printer')
-rwxr-xr-xprinter/opencups/BUILD19
-rwxr-xr-xprinter/opencups/CONFIGURE17
-rwxr-xr-xprinter/opencups/CONFLICTS3
-rwxr-xr-xprinter/opencups/DEPENDS47
-rwxr-xr-xprinter/opencups/DETAILS23
-rwxr-xr-xprinter/opencups/FINAL2
-rw-r--r--printer/opencups/HISTORY3
-rwxr-xr-xprinter/opencups/POST_REMOVE1
-rwxr-xr-xprinter/opencups/PROVIDES1
-rwxr-xr-xprinter/opencups/TRIGGERS6
-rwxr-xr-xprinter/opencups/init.d/cups13
-rw-r--r--printer/opencups/xinetd.d/cups-lpd11
12 files changed, 146 insertions, 0 deletions
diff --git a/printer/opencups/BUILD b/printer/opencups/BUILD
new file mode 100755
index 0000000000..6922de6439
--- /dev/null
+++ b/printer/opencups/BUILD
@@ -0,0 +1,19 @@
+# prevent install of init scripts and Mac OS X localization bundle dir
+OPTS="--without-rcdir --without-bundledir $OPTS" &&
+
+# set language options
+if [[ $EXTRA_LANG == n ]]; then
+ OPTS="--without-languages $OPTS"
+else
+ if [[ $CUPS_LANG == all ]]; then
+ OPTS="--with-languages $OPTS"
+ else
+ OPTS="--with-languages=$CUPS_LANG $OPTS"
+ fi
+fi &&
+
+OPTS="--libdir=$INSTALL_ROOT/usr/lib $CUPS_OPTS $OPTS" &&
+OPTS="$OPTS CC=gcc CXX=g++" &&
+OPTS+=" --disable-static" &&
+
+default_build
diff --git a/printer/opencups/CONFIGURE b/printer/opencups/CONFIGURE
new file mode 100755
index 0000000000..42c6b5c9bc
--- /dev/null
+++ b/printer/opencups/CONFIGURE
@@ -0,0 +1,17 @@
+. $GRIMOIRE/FUNCTIONS &&
+
+persistent_remove CUPS_VER &&
+
+config_query EXTRA_LANG "Do you want to build extra languages?" n
+
+if [[ $EXTRA_LANG == y ]]; then
+ config_query_list CUPS_LANG "Which additional language to install?" \
+ all de es fr ja pl sv
+fi &&
+
+config_query_option CUPS_OPTS \
+ "Do you want to enable raw printing" \
+ n \
+ '--enable-raw-printing' \
+ '--disable-raw-printing'
+
diff --git a/printer/opencups/CONFLICTS b/printer/opencups/CONFLICTS
new file mode 100755
index 0000000000..674124d803
--- /dev/null
+++ b/printer/opencups/CONFLICTS
@@ -0,0 +1,3 @@
+conflicts gnulpr &&
+conflicts cups-old &&
+conflicts cups
diff --git a/printer/opencups/DEPENDS b/printer/opencups/DEPENDS
new file mode 100755
index 0000000000..cda12135ba
--- /dev/null
+++ b/printer/opencups/DEPENDS
@@ -0,0 +1,47 @@
+depends zlib &&
+depends -sub CXX gcc &&
+depends pkgconfig &&
+
+depends shared-mime-info &&
+
+optional_depends avahi \
+ '--enable-avahi' \
+ '--disable-avahi' \
+ 'use Avahi Service Discovery' &&
+
+optional_depends mdnsresponder \
+ '--enable-dnssd' \
+ '--disable-dnssd' \
+ 'DNS Service Discovery' &&
+
+optional_depends libpaper \
+ '--enable-libpaper' \
+ '--disable-libpaper' \
+ 'Enable libpaper support' &&
+
+optional_depends "libusb" \
+ '--enable-libusb' \
+ '--disable-libusb' \
+ 'usb printers' &&
+optional_depends "dbus" \
+ "--enable-dbus" \
+ "--disable-dbus" \
+ "hardware notifications" &&
+
+optional_depends "linux-pam" \
+ "--enable-pam" \
+ "--disable-pam" \
+ "for pluggable authentication" &&
+
+optional_depends gnutls "--enable-gnutls" "--disable-gnutls --disable-ssl" 'security' &&
+
+optional_depends "acl" \
+ "--enable-acl" \
+ "--disable-acl" \
+ "for file system access control lists support" &&
+
+optional_depends krb5 '--enable-gssapi' '--disable-gssapi' 'GSSAPI support' &&
+optional_depends systemd '--enable-systemd' '--disable-systemd' 'SystemD support' &&
+
+suggest_depends ghostscript '' '' 'to print Postscript files'
+suggest_depends cups-filters '' '' 'extra backends and filters'
diff --git a/printer/opencups/DETAILS b/printer/opencups/DETAILS
new file mode 100755
index 0000000000..3bf303a1a8
--- /dev/null
+++ b/printer/opencups/DETAILS
@@ -0,0 +1,23 @@
+ SPELL=opencups
+ SPELLX=cups
+ VERSION=2.3.3op1
+ SOURCE_HASH=sha512:
+ SECURITY_PATCH=13
+ SOURCE=$SPELLX-$VERSION-source.tar.gz
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELLX-$VERSION"
+ WEB_SITE=https://github.com/OpenPrinting/cups
+ SOURCE_URL[0]=$WEB_SITE/download ....
+ ENTERED=20201018
+ LICENSE[0]=APACHE
+ KEYWORDS="printer"
+ SHORT="Common Unix Printing System is a portable printing layer"
+cat << EOF
+OpenPrinting fork of Apple/Cups
+
+CUPS provides a portable printing layer for UNIX-based operating systems.
+It was developed to promote a standard printing solution. It is the standard
+printing system in Mac OS X and most Linux distributions.
+CUPS uses the Internet Printing Protocol ("IPP") as the basis for managing
+print jobs and queues and adds network printer browsing and PostScript Printer
+Description ("PPD") based printing options to support real-world printing.
+EOF
diff --git a/printer/opencups/FINAL b/printer/opencups/FINAL
new file mode 100755
index 0000000000..604cb27a0f
--- /dev/null
+++ b/printer/opencups/FINAL
@@ -0,0 +1,2 @@
+default_final &&
+update-mime-database /usr/share/mime/
diff --git a/printer/opencups/HISTORY b/printer/opencups/HISTORY
new file mode 100644
index 0000000000..2294cd13a1
--- /dev/null
+++ b/printer/opencups/HISTORY
@@ -0,0 +1,3 @@
+2020-10-18 Treeve Jelbert <treeve@sourcemage.org>
+ * cloned from cups spell
+
diff --git a/printer/opencups/POST_REMOVE b/printer/opencups/POST_REMOVE
new file mode 100755
index 0000000000..8abcc909e3
--- /dev/null
+++ b/printer/opencups/POST_REMOVE
@@ -0,0 +1 @@
+update-mime-database /usr/share/mime/
diff --git a/printer/opencups/PROVIDES b/printer/opencups/PROVIDES
new file mode 100755
index 0000000000..7c846a0987
--- /dev/null
+++ b/printer/opencups/PROVIDES
@@ -0,0 +1 @@
+CUPS
diff --git a/printer/opencups/TRIGGERS b/printer/opencups/TRIGGERS
new file mode 100755
index 0000000000..9b329f7cc3
--- /dev/null
+++ b/printer/opencups/TRIGGERS
@@ -0,0 +1,6 @@
+
+if is_depends_enabled $SPELL linux-pam; then
+ on_cast linux-pam cast_self
+fi &&
+
+on_cast gnutls check_self
diff --git a/printer/opencups/init.d/cups b/printer/opencups/init.d/cups
new file mode 100755
index 0000000000..c35f34ee04
--- /dev/null
+++ b/printer/opencups/init.d/cups
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+PROGRAM=/usr/sbin/cupsd
+RUNLEVEL=3
+if [ -x /usr/sbin/ptal-init ]; then
+ NEEDS="hpoj +network +remote_fs"
+elif [ -x /usr/sbin/hpiod ]; then
+ NEEDS="hplip +network +remote_fs"
+else
+ NEEDS="+network +remote_fs"
+fi
+
+. /etc/init.d/smgl_init
diff --git a/printer/opencups/xinetd.d/cups-lpd b/printer/opencups/xinetd.d/cups-lpd
new file mode 100644
index 0000000000..499073fc9a
--- /dev/null
+++ b/printer/opencups/xinetd.d/cups-lpd
@@ -0,0 +1,11 @@
+service printer
+{
+ socket_type = stream
+ protocol = tcp
+ wait = no
+ user = lp
+ group = lp
+ passenv =
+ server = /usr/lib/cups/daemon/cups-lpd
+ server_args = -o document-format=application/octet-stream
+}