[Lunar-commits] <moonbase> cups: Adding a CONFIGURE, fleshing out the DEPENDS and adding a systemd.d dir.

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Tue Aug 23 22:21:50 CEST 2011


commit cddeaa81bb3bff444a7af4e11be4c2813e68e322
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Tue Aug 23 16:21:50 2011 -0400

    cups: Adding a CONFIGURE, fleshing out the DEPENDS and adding a systemd.d dir.
---
 printer/cups/CONFIGURE              |    2 ++
 printer/cups/DEPENDS                |    4 ++++
 printer/cups/systemd.d/cups.service |   15 +++++++++++++++
 3 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/printer/cups/CONFIGURE b/printer/cups/CONFIGURE
new file mode 100644
index 0000000..0065c6f
--- /dev/null
+++ b/printer/cups/CONFIGURE
@@ -0,0 +1,2 @@
+mquery USE_BANNER "Build the banner filter?" n "--enable-bannertops" "--disable-bannertops"
+mquery USE_TEXT "Build the text filter?" n "--enable-texttops" "--disable-texttops"
diff --git a/printer/cups/DEPENDS b/printer/cups/DEPENDS
index 367284a..5625531 100644
--- a/printer/cups/DEPENDS
+++ b/printer/cups/DEPENDS
@@ -12,3 +12,7 @@ optional_depends "%JPEG"     "--enable-jpeg"                 "--disable-jpeg"
 optional_depends "libpng"    "--enable-png"                  "--disable-png"      "for png graphis support"
 optional_depends "tiff"      "--enable-tiff"                 "--disable-tiff"     "for tiff graphics support"
 optional_depends "openslp"   "--enable-slp"                  "--disable-slp"      "for Service Location Protocol support"
+optional_depends "%JAVA_SDK" "--with-java"                   "--without-java"     "for Java interpreter web interfaces"
+optional_depends "perl"      "--with-perl"                   "--without-perl"     "for Perl interpreter web interfaces"
+optional_depends "%PHP"      "--with-php"                    "--without-php"      "for PHP interpreter web interfaces"
+optional_depends "Python"    "--with-python"                 "--without-python"   "for Python interpreter web interfaces"
diff --git a/printer/cups/systemd.d/cups.service b/printer/cups/systemd.d/cups.service
new file mode 100644
index 0000000..d2bb08b
--- /dev/null
+++ b/printer/cups/systemd.d/cups.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=CUPS Printing Service
+
+[Service]
+ExecStart=/usr/sbin/cupsd -f
+StandardOutput=syslog
+
+# This is evil stuff. CUPS should use proper enumeration instead of
+# retriggering these devices. CUPS folks, please fix this, otherwise Kay will
+# come after you!
+ExecStartPost=/sbin/udevadm trigger --subsystem-match=usb --attr-match=bInterfaceClass=07 --attr-match=bInterfaceSubClass=01
+ExecStartPost=/sbin/udevadm trigger --subsystem-match=usb --property-match=DEVNAME=/dev/usb/lp*
+
+[Install]
+WantedBy=multi-user.target


More information about the Lunar-commits mailing list