Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 May 2014 21:40:33 +0200 (CEST)
From:      Rafael Ostertag <rafi@guengel.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/190086: [patch] print/cups-filters missing rc script for cups-browsed
Message-ID:  <201405211940.s4LJeXKC013190@beastie.kruemel.home>
Resent-Message-ID: <201405211950.s4LJo0jB081801@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         190086
>Category:       ports
>Synopsis:       [patch] print/cups-filters missing rc script for cups-browsed
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 21 19:50:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Rafael Ostertag
>Release:        FreeBSD 10.0-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD beastie.kruemel.home 10.0-RELEASE-p3 FreeBSD 10.0-RELEASE-p3 #1 r266266: Fri May 16 20:59:55 CEST 2014 root@beastie.kruemel.home:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
This is a follow-up to PR190085.

print/cups-filters provides cups-browsed, but no rc script to start it.
>How-To-Repeat:
n/a
>Fix:
This patch adds the missing pieces.

--- cups-filters.diff begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 354755)
+++ Makefile	(working copy)
@@ -24,6 +24,7 @@
 SHEBANG_FILES=	filter/textonly
 USE_GNOME=	glib20
 USE_GHOSTSCRIPT=	yes
+USE_RC_SUBR=	cups_browsed
 GNU_CONFIGURE=	yes
 CUPS_SOCKET=	/var/run/cups.sock
 CONFIGURE_ARGS=	--with-cups-domainsocket=${CUPS_SOCKET}
Index: files/cups_browsed.in
===================================================================
--- files/cups_browsed.in	(revision 0)
+++ files/cups_browsed.in	(working copy)
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: cups_browsed
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following to /etc/rc.conf[.local] to enable this service
+#
+# cups_browsed_enable (bool):	Set to NO by default.
+#				Set it to YES to enable cups_browsed.
+#
+
+. /etc/rc.subr
+
+name=cups_browsed
+rcvar=cups_browsed_enable
+
+load_rc_config ${name}
+
+ : ${cups_browsed_enable:=NO}
+
+command=/usr/sbin/daemon
+pidfile=/var/run/cups-browsed.pid
+command_args="-p ${pidfile} %%PREFIX%%/sbin/cups-browsed"
+procname="%%PREFIX%%/sbin/cups-browsed"
+
+run_rc_command "$1"

Property changes on: files/cups_browsed.in
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
--- cups-filters.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405211940.s4LJeXKC013190>