FreeBSD Bugzilla – Attachment 201522 Details for
Bug 235308
print/cloud-print-connector: Add service/daemon script
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
gcp service patch
gcp.patch (text/plain), 2.21 KB, created by
Robert James Hernandez
on 2019-01-30 07:50:28 UTC
(
hide
)
Description:
gcp service patch
Filename:
MIME Type:
Creator:
Robert James Hernandez
Created:
2019-01-30 07:50:28 UTC
Size:
2.21 KB
patch
obsolete
>commit db86d0d0141302b75e38a35978a6542ad2afa034 >Author: Robert James Hernandez <rob@sarcasticadmin.com> >Date: Tue Jan 29 23:39:30 2019 -0800 > > Adding pkg-message and service for gcp-print-connector > >diff --git a/print/cloud-print-connector/Makefile b/print/cloud-print-connector/Makefile >index f049edfe1a0c..6f6314dad807 100644 >--- a/print/cloud-print-connector/Makefile >+++ b/print/cloud-print-connector/Makefile >@@ -18,6 +18,7 @@ LIB_DEPENDS= libcups.so:print/cups \ > > USES= compiler pkgconfig > USE_GITHUB= yes >+USE_RC_SUBR= gcp-cups-connectord > GH_TUPLE= google:cloud-print-connector:7d5f127:DEFAULT/src/github.com/google/cloud-print-connector \ > urfave:cli:8e01ec4:cli/src/github.com/urfave/cli \ > satori:go.uuid:36e9d2e:gouuid/src/github.com/satori/go.uuid \ >diff --git a/print/cloud-print-connector/files/gcp-cups-connectord.in b/print/cloud-print-connector/files/gcp-cups-connectord.in >new file mode 100644 >index 000000000000..f0c173ab4d10 >--- /dev/null >+++ b/print/cloud-print-connector/files/gcp-cups-connectord.in >@@ -0,0 +1,28 @@ >+#!/bin/sh >+# >+# PROVIDE: gcp_cups_connectord >+# REQUIRE: networking >+# KEYWORD: >+ >+. /etc/rc.subr >+ >+name="gcp_cups_connectord" >+rcvar="gcp_cups_connectord_enable" >+pidfile="/var/run/${name}.pid" >+command="/usr/sbin/daemon" >+bin="/usr/local/bin/gcp-cups-connector" >+start_precmd="${name}_prestart" >+ >+gcp_cups_connectord_prestart() { >+ if [ -z "${rc_flags}" ];then >+ rc_flags="-P ${pidfile} -f ${bin} -config-filename /usr/local/etc/gcp-cups-connector.config.json" >+ else >+ rc_flags="-P ${pidfile} -f ${bin} ${rc_flags}" >+ fi >+ return 0 >+} >+ >+load_rc_config $name >+: ${name_enable:=no} >+ >+run_rc_command "$1" >diff --git a/print/cloud-print-connector/pkg-message b/print/cloud-print-connector/pkg-message >new file mode 100644 >index 000000000000..86f1a9c18d46 >--- /dev/null >+++ b/print/cloud-print-connector/pkg-message >@@ -0,0 +1,6 @@ >+Run the following command to create a config file called gcp-cups-connector.config.json before the starting service: >+ >+# gcp-connector-util init --log-file-name "/var/log/cloud-print-connectord" >+# mv /root/gcp-cups-connector.config.json /usr/local/etc/gcp-cups-connector.config.json >+ >+More info at: https://github.com/google/cloud-print-connector/wiki/Configuration
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 235308
: 201522 |
201534