From 1b23ba3db910a1cabc05d2e4078a5c32af89ec3c Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 10 2020 11:30:45 +0000 Subject: Add sources defined in the spec file --- diff --git a/SPECS/cups-2.2.6-source.tar.gz b/SPECS/cups-2.2.6-source.tar.gz new file mode 100644 index 0000000..836ea71 Binary files /dev/null and b/SPECS/cups-2.2.6-source.tar.gz differ diff --git a/SPECS/cups.logrotate b/SPECS/cups.logrotate new file mode 100644 index 0000000..773c70f --- /dev/null +++ b/SPECS/cups.logrotate @@ -0,0 +1,5 @@ +/var/log/cups/*_log { + missingok + notifempty + sharedscripts +} diff --git a/SPECS/cupsprinter.png b/SPECS/cupsprinter.png new file mode 100644 index 0000000..324df1c Binary files /dev/null and b/SPECS/cupsprinter.png differ diff --git a/SPECS/macros.cups b/SPECS/macros.cups new file mode 100644 index 0000000..5b560d9 --- /dev/null +++ b/SPECS/macros.cups @@ -0,0 +1 @@ +%_cups_serverbin %(/usr/bin/cups-config --serverbin) diff --git a/SPECS/ncp.backend b/SPECS/ncp.backend new file mode 100755 index 0000000..d57ada1 --- /dev/null +++ b/SPECS/ncp.backend @@ -0,0 +1,51 @@ +#!/bin/sh +# This is a modified version of 'ncpprint'. It can now be used as a CUPS +# backend. +# Modifications: +# Copyright (C) 2002 Red Hat, inc +# Copyright (C) 2002 Tim Waugh +# Before modification: shipped as /usr/share/printconf/util/ncpprint + +if [ -z "$*" ] +then + # This is where we would enumerate all the URIs we support. + # Patches welcome. + exit 0 +fi + +FILE=$6 +if [ -z "$FILE" ] +then + FILE=- +fi + +# $DEVICE_URI is 'ncp://[user:password@]server/queue' +URI=${DEVICE_URI#*://} +queue=${URI#*/} +URI=${URI%/$queue} +server=${URI#*@} +URI=${URI%$server} +URI=${URI%@} +if [ -n "$URI" ] +then + user=${URI%:*} + URI=${URI#$user} + password=${URI#:} +fi + +#echo user: ${user-(none)} +#echo password: ${password-(none)} +#echo server: $server +#echo queue: $queue + +if [ -n "$user" ] +then + if [ -n "$password" ] + then + /usr/bin/nprint -S "$server" -q "$queue" -U "$user" -P "$password" -N "$FILE" 2>/dev/null + else + /usr/bin/nprint -S "$server" -q "$queue" -U "$user" -n -N "$FILE" 2>/dev/null + fi +else + /usr/bin/nprint -S "$server" -q "$queue" -N "$FILE" 2>/dev/null +fi