Bug 190086 - [patch] print/cups-filters missing rc script for cups-browsed
Summary: [patch] print/cups-filters missing rc script for cups-browsed
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-21 20:50 UTC by Rafael Ostertag
Modified: 2014-05-22 13:50 UTC (History)
0 users

See Also:


Attachments
cups-filters.diff (1.38 KB, patch)
2014-05-21 20:50 UTC, Rafael Ostertag
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Ostertag 2014-05-21 20:50:00 UTC
This is a follow-up to PR190085.

print/cups-filters provides cups-browsed, but no rc script to start it.

Fix: This patch adds the missing pieces.
How-To-Repeat: n/a
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-21 20:50:04 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2014-05-21 20:50:04 UTC
Maintainer of print/cups-filters,

Please note that PR ports/190086 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/190086

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Naram Qashat 2014-05-22 00:58:32 UTC
I approve of the patch.

Thanks,
Naram Qashat
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2014-05-22 04:36:30 UTC
State Changed
From-To: feedback->open

Maintainer approved.
Comment 5 dfilter service freebsd_committer freebsd_triage 2014-05-22 13:48:47 UTC
Author: bsam
Date: Thu May 22 12:48:42 2014
New Revision: 354832
URL: http://svnweb.freebsd.org/changeset/ports/354832
QAT: https://qat.redports.org/buildarchive/r354832/

Log:
  print/cups-filters: add missing rc script
  
  . add imissing rc script;  [1]
  . bump PORTREVISION.
  
  PR:		ports/190086  [1]
  Submitted by:	Rafael Ostertag <rafi@guengel.ch>  [1]
  Approved by:	Naram Qashat <cyberbotx@cyberbotx.com> (maintainer)  [1]

Added:
  head/print/cups-filters/files/cups_browsed.in   (contents, props changed)
Modified:
  head/print/cups-filters/Makefile

Modified: head/print/cups-filters/Makefile
==============================================================================
--- head/print/cups-filters/Makefile	Thu May 22 12:40:17 2014	(r354831)
+++ head/print/cups-filters/Makefile	Thu May 22 12:48:42 2014	(r354832)
@@ -2,6 +2,7 @@
 
 PORTNAME=	cups-filters
 PORTVERSION=	1.0.53
+PORTREVISION=	1
 CATEGORIES=	print
 MASTER_SITES=	http://www.openprinting.org/download/cups-filters/
 
@@ -24,6 +25,7 @@ USES=		compiler:c++11-lib pathfix pkgcon
 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}

Added: head/print/cups-filters/files/cups_browsed.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/cups-filters/files/cups_browsed.in	Thu May 22 12:48:42 2014	(r354832)
@@ -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"
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 6 Boris Samorodov freebsd_committer freebsd_triage 2014-05-22 13:50:14 UTC
State Changed
From-To: open->closed

Committed, thanks!