svn commit: r354832 - in head/print/cups-filters: . files
Boris Samorodov
bsam at FreeBSD.org
Thu May 22 12:48:43 UTC 2014
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 at guengel.ch> [1]
Approved by: Naram Qashat <cyberbotx at 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"
More information about the svn-ports-head
mailing list